From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 065CE13835A for ; Sun, 24 Jan 2021 01:58:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19813E096B; Sun, 24 Jan 2021 01:58:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1F2CE096B for ; Sun, 24 Jan 2021 01:58:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 57C25340FAF for ; Sun, 24 Jan 2021 01:58:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B30064A4 for ; Sun, 24 Jan 2021 01:58:20 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1611453480.dcc505f81c1070e7d1838c78902fd55d9c358412.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libmediainfo/files/, media-libs/libmediainfo/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libmediainfo/files/libmediainfo-20.09-pkgconfig.patch media-libs/libmediainfo/libmediainfo-20.09-r1.ebuild X-VCS-Directories: media-libs/libmediainfo/ media-libs/libmediainfo/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: dcc505f81c1070e7d1838c78902fd55d9c358412 X-VCS-Branch: master Date: Sun, 24 Jan 2021 01:58:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 889bd732-94dd-4017-922c-629af0316c2e X-Archives-Hash: 809b9d7818a4bf299ccdc953c7366178 commit: dcc505f81c1070e7d1838c78902fd55d9c358412 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jan 24 01:55:46 2021 +0000 Commit: Andreas Sturmlechner gentoo 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 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 +}