summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-03-23 21:52:10 -0400
committerTim Harder <radhermit@gentoo.org>2018-03-23 21:53:27 -0400
commit48be0e5ccf9de8b0691d9199b6ba06d850b9e4cf (patch)
tree1abe4a4bddb4d78b485ff81087a5afc7d60ae0c0 /media-libs/libmediainfo
parentnet-dns/bind-tools: stable ppc wrt bug #644706 (diff)
downloadgentoo-48be0e5ccf9de8b0691d9199b6ba06d850b9e4cf.tar.gz
gentoo-48be0e5ccf9de8b0691d9199b6ba06d850b9e4cf.tar.bz2
gentoo-48be0e5ccf9de8b0691d9199b6ba06d850b9e4cf.zip
media-libs/libmediainfo: version bump to 18.03
Diffstat (limited to 'media-libs/libmediainfo')
-rw-r--r--media-libs/libmediainfo/Manifest1
-rw-r--r--media-libs/libmediainfo/libmediainfo-18.03.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/media-libs/libmediainfo/Manifest b/media-libs/libmediainfo/Manifest
index 4a5869c2bed9..45fe4486f55e 100644
--- a/media-libs/libmediainfo/Manifest
+++ b/media-libs/libmediainfo/Manifest
@@ -1 +1,2 @@
DIST libmediainfo_17.12.tar.xz 1612420 BLAKE2B 1e1bd62efe45783d4973bbe0ff264db1ed20b064dc18fe3ab4fa3614c1b41663fe6727e469ef1769b4736827f89940edd959b270ec1c673a190c9078a81f3955 SHA512 c425612ca84f4655c851332a4c13bdd75df094fa5468b2d61db512ff8431b41e94068d2f645b669dbee286ccae3979a38a5f4ebbb5cda8abdbadf0313df5680d
+DIST libmediainfo_18.03.tar.xz 1627584 BLAKE2B 02ee429fe22af753e8a62a621999b949541e2db4f83705eaf1ce90bda29062fffa76cb1e85e860c7b02d5892044fed5954635b0680965949864cb220868133aa SHA512 d903309fbf9ee78633e833372b13b9676dae2d3d0aa19e584d4972ca2c76cff5524a08201e73b2a6d97a84a0fd469c5bc136d09a27ce0363a7e743e889719c6d
diff --git a/media-libs/libmediainfo/libmediainfo-18.03.ebuild b/media-libs/libmediainfo/libmediainfo-18.03.ebuild
new file mode 100644
index 000000000000..7be3ed1e7919
--- /dev/null
+++ b/media-libs/libmediainfo/libmediainfo-18.03.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools ltprune flag-o-matic
+
+MY_PN="MediaInfo"
+DESCRIPTION="MediaInfo libraries"
+HOMEPAGE="https://mediaarea.net/mediainfo/ https://github.com/MediaArea/MediaInfoLib"
+SRC_URI="https://mediaarea.net/download/source/${PN}/${PV}/${P/-/_}.tar.xz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="curl doc mms static-libs"
+
+RDEPEND="sys-libs/zlib
+ dev-libs/tinyxml2:=
+ >=media-libs/libzen-0.4.37[static-libs=]
+ curl? ( net-misc/curl )
+ mms? ( >=media-libs/libmms-0.6.1[static-libs=] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+# tests try to fetch data from online sources
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_PN}Lib/Project/GNU/Library
+
+src_prepare() {
+ eapply -p4 "${FILESDIR}"/${PN}-0.7.63-pkgconfig.patch
+ eapply_user
+
+ sed -i 's:-O2::' configure.ac || die
+ append-cppflags -DMEDIAINFO_LIBMMS_DESCRIBE_SUPPORT=0
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ --with-libtinyxml2 \
+ $(use_with curl libcurl) \
+ $(use_with mms libmms) \
+ $(use_enable static-libs static) \
+ $(use_enable static-libs staticlibs)
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ cd "${WORKDIR}"/${MY_PN}Lib/Source/Doc
+ doxygen Doxyfile || die
+ fi
+}
+
+src_install() {
+ if use doc; then
+ local HTML_DOCS=( "${WORKDIR}"/${MY_PN}Lib/Doc/*.html )
+ fi
+
+ default
+
+ edos2unix ${PN}.pc #414545
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
+
+ for x in ./ Archive Audio Duplicate Export Image Multiple Reader Tag Text Video; do
+ insinto /usr/include/${MY_PN}/${x}
+ doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}/${x}/*.h
+ done
+
+ insinto /usr/include/${MY_PN}DLL
+ doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}DLL/*.h
+
+ dodoc "${WORKDIR}"/${MY_PN}Lib/*.txt
+
+ prune_libtool_files
+}