commit: dcc505f81c1070e7d1838c78902fd55d9c358412 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Jan 24 01:55:46 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Jan 24 01:58:00 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcc505f8
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 <AT> gentoo.org> .../files/libmediainfo-20.09-pkgconfig.patch | 10 +++ .../libmediainfo/libmediainfo-20.09-r1.ebuild | 88 ++++++++++++++++++++++ 2 files changed, 98 insertions(+) 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 00000000000..4d88ebae78a --- /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 00000000000..9da3548cd7e --- /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 +}