From e88a0ec57cb5d48f812bd036bdc14dbfc1de8f51 Mon Sep 17 00:00:00 2001 From: Miroslav Šulc Date: Mon, 24 Aug 2020 11:51:33 +0200 Subject: media-libs/vamp-plugin-sdk: bump to 2.10 + fixed .pc files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/690676 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Miroslav Šulc --- media-libs/vamp-plugin-sdk/Manifest | 1 + .../vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild | 74 ++++++++++++++++++++++ .../vamp-plugin-sdk-2.7.1-r1.ebuild | 69 ++++++++++++++++++++ .../vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild | 66 ------------------- 4 files changed, 144 insertions(+), 66 deletions(-) create mode 100644 media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild create mode 100644 media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild delete mode 100644 media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild (limited to 'media-libs/vamp-plugin-sdk') diff --git a/media-libs/vamp-plugin-sdk/Manifest b/media-libs/vamp-plugin-sdk/Manifest index 23958ef312e6..1d04e052359b 100644 --- a/media-libs/vamp-plugin-sdk/Manifest +++ b/media-libs/vamp-plugin-sdk/Manifest @@ -1 +1,2 @@ DIST vamp-plugin-sdk-2.7.1.tar.gz 306956 BLAKE2B d8e765f54cb3544efcca4b08241afc070026adeaa4c0273cc01dae26e0ad60a976bc443184cc83413c6e32f4cf6fbee6590954e7ab12872993abb78c2541653f SHA512 91dd7cae72334718dcbdac06b1ffa3f3ba76e977b82b928ab634d9982aa15ca4e30978a7778215753c61e56831077d7634d24e65e468ab6a8a87a5957fb09bf3 +DIST {P}.tar.gz 316165 BLAKE2B ba206443d4a6f94f56c1e3b7e8f47b7c8f893d2df6601f9d26a613d56bf58fee7d0a4a996964aa0690ecf69fd1d686db28165e73a0d37880a7891c67ecaaae5f SHA512 67a71e5396eab5ce9503e9111b4cfc16fc9755cf6ae2d8dfc99ed29fd91e75eaf0de9a9c55ce8f7751f04c235eb86430856eff18f02adde54f1850a87c917ef0 diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild new file mode 100644 index 000000000000..146ca3611ef4 --- /dev/null +++ b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.10.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs multilib-minimal + +DESCRIPTION="Audio processing system for plugins to extract information from audio data" +HOMEPAGE="https://www.vamp-plugins.org" +SRC_URI="https://github.com/c4dm/${PN}/archive/${PN}-v${PV}.tar.gz -> {P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +RDEPEND="media-libs/libsndfile:0=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +S="${WORKDIR}/${PN}-${PN}-v${PV}" + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_configure() { + # multilib for default search paths + sed -i -e "s:/usr/lib/vamp:${EPREFIX}/usr/$(get_libdir)/vamp:" \ + src/vamp-hostsdk/PluginHostAdapter.cpp || die + econf +} + +multilib_src_compile() { + emake \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" + + if multilib_is_native_abi && use doc; then + cd build || die + doxygen || die "creating doxygen doc failed" + HTML_DOCS=( "${BUILD_DIR}"/build/doc/html/. ) + fi +} + +multilib_src_install() { + emake \ + DESTDIR="${D}" \ + INSTALL_SDK_LIBS="${EPREFIX}"/usr/$(get_libdir) \ + INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ + INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \ + install + + # fix .pc files + sed -Ei "s/lib$/$(get_libdir)/g" "${D}"/usr/$(get_libdir)/pkgconfig/*.pc +} + +multilib_src_install_all() { + einstalldocs + + # don't want static archives, #474768 + find "${D}" -name '*.a' -delete || die +} + +pkg_postinst() { + elog + elog "You might also want to install some Vamp plugins." + elog "See media-plugins/vamp-*" + elog +} diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild new file mode 100644 index 000000000000..47ba03d2c003 --- /dev/null +++ b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs multilib-minimal + +DESCRIPTION="Audio processing system for plugins to extract information from audio data" +HOMEPAGE="https://www.vamp-plugins.org" +SRC_URI="https://code.soundsoftware.ac.uk/attachments/download/2206/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~sparc x86" +IUSE="doc" + +RDEPEND="media-libs/libsndfile:0=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen )" + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_configure() { + # multilib for default search paths + sed -i -e "s:/usr/lib/vamp:${EPREFIX}/usr/$(get_libdir)/vamp:" \ + src/vamp-hostsdk/PluginHostAdapter.cpp || die + econf +} + +multilib_src_compile() { + emake \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" + + if multilib_is_native_abi && use doc; then + cd build || die + doxygen || die "creating doxygen doc failed" + HTML_DOCS=( "${BUILD_DIR}"/build/doc/html/. ) + fi +} + +multilib_src_install() { + emake \ + DESTDIR="${D}" \ + INSTALL_SDK_LIBS="${EPREFIX}"/usr/$(get_libdir) \ + INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ + INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \ + install + + # fix .pc files + sed -Ei "s/lib$/$(get_libdir)/g" "${D}"/usr/$(get_libdir)/pkgconfig/*.pc +} + +multilib_src_install_all() { + einstalldocs + + # don't want static archives, #474768 + find "${D}" -name '*.a' -delete || die +} + +pkg_postinst() { + elog + elog "You might also want to install some Vamp plugins." + elog "See media-plugins/vamp-*" + elog +} diff --git a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild b/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild deleted file mode 100644 index 02b99f969116..000000000000 --- a/media-libs/vamp-plugin-sdk/vamp-plugin-sdk-2.7.1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs multilib-minimal - -DESCRIPTION="Audio processing system for plugins to extract information from audio data" -HOMEPAGE="https://www.vamp-plugins.org" -SRC_URI="https://code.soundsoftware.ac.uk/attachments/download/2206/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~sparc x86" -IUSE="doc" - -RDEPEND="media-libs/libsndfile:0=[${MULTILIB_USEDEP}]" -DEPEND="${RDEPEND}" -BDEPEND="doc? ( app-doc/doxygen )" - -src_prepare() { - default - multilib_copy_sources -} - -multilib_src_configure() { - # multilib for default search paths - sed -i -e "s:/usr/lib/vamp:${EPREFIX}/usr/$(get_libdir)/vamp:" \ - src/vamp-hostsdk/PluginHostAdapter.cpp || die - econf -} - -multilib_src_compile() { - emake \ - AR="$(tc-getAR)" \ - RANLIB="$(tc-getRANLIB)" - - if multilib_is_native_abi && use doc; then - cd build || die - doxygen || die "creating doxygen doc failed" - HTML_DOCS=( "${BUILD_DIR}"/build/doc/html/. ) - fi -} - -multilib_src_install() { - emake \ - DESTDIR="${D}" \ - INSTALL_SDK_LIBS="${EPREFIX}"/usr/$(get_libdir) \ - INSTALL_PKGCONFIG="${EPREFIX}"/usr/$(get_libdir)/pkgconfig \ - INSTALL_PLUGINS="${EPREFIX}"/usr/$(get_libdir)/vamp \ - install -} - -multilib_src_install_all() { - einstalldocs - - # don't want static archives, #474768 - find "${D}" -name '*.a' -delete || die -} - -pkg_postinst() { - elog - elog "You might also want to install some Vamp plugins." - elog "See media-plugins/vamp-*" - elog -} -- cgit v1.2.3-65-gdbad