summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-01-24 02:55:46 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-01-24 02:58:00 +0100
commitdcc505f81c1070e7d1838c78902fd55d9c358412 (patch)
treee37e3c4f60e1b1bd841e886791d93305defaa7b1 /media-libs/libmediainfo
parentmedia-libs/libmediainfo: Drop 20.03 and 20.08 (diff)
downloadgentoo-dcc505f81c1070e7d1838c78902fd55d9c358412.tar.gz
gentoo-dcc505f81c1070e7d1838c78902fd55d9c358412.tar.bz2
gentoo-dcc505f81c1070e7d1838c78902fd55d9c358412.zip
media-libs/libmediainfo: Drop IUSE=static-libs, BDEPEND, use edos2unix
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libmediainfo')
-rw-r--r--media-libs/libmediainfo/files/libmediainfo-20.09-pkgconfig.patch10
-rw-r--r--media-libs/libmediainfo/libmediainfo-20.09-r1.ebuild88
2 files changed, 98 insertions, 0 deletions
diff --git a/media-libs/libmediainfo/files/libmediainfo-20.09-pkgconfig.patch b/media-libs/libmediainfo/files/libmediainfo-20.09-pkgconfig.patch
new file mode 100644
index 000000000000..4d88ebae78a5
--- /dev/null
+++ b/media-libs/libmediainfo/files/libmediainfo-20.09-pkgconfig.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,6 +28,7 @@
+ AC_LIBTOOL_WIN32_DLL
+ AC_PROG_LIBTOOL
+ AC_PROG_INSTALL
++PKG_PROG_PKG_CONFIG
+
+ dnl #########################################################################
+ dnl Configure
diff --git a/media-libs/libmediainfo/libmediainfo-20.09-r1.ebuild b/media-libs/libmediainfo/libmediainfo-20.09-r1.ebuild
new file mode 100644
index 000000000000..9da3548cd7e6
--- /dev/null
+++ b/media-libs/libmediainfo/libmediainfo-20.09-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="MediaInfo"
+inherit autotools edos2unix flag-o-matic
+
+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"
+
+# tests try to fetch data from online sources
+RESTRICT="test"
+
+RDEPEND="
+ dev-libs/tinyxml2:=
+ >=media-libs/libzen-0.4.37
+ sys-libs/zlib
+ curl? ( net-misc/curl )
+ mms? ( >=media-libs/libmms-0.6.1 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+"
+
+PATCHES=( "${FILESDIR}"/${P}-pkgconfig.patch )
+
+S="${WORKDIR}"/${MY_PN}Lib/Project/GNU/Library
+
+src_prepare() {
+ default
+
+ sed -i 's:-O2::' configure.ac || die
+ append-cppflags -DMEDIAINFO_LIBMMS_DESCRIBE_SUPPORT=0
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ --disable-static \
+ --disable-staticlibs \
+ --with-libtinyxml2 \
+ $(use_with curl libcurl) \
+ $(use_with mms libmms)
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ cd "${WORKDIR}"/${MY_PN}Lib/Source/Doc || die
+ 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
+
+ find "${ED}" -name '*.la' -delete || die
+}