From bc494e9350dd8d2182afcc91a367e728470d9ba2 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Tue, 5 Mar 2024 20:44:49 +0000 Subject: dev-libs/libconcord: add 1.5, drop 1.4 --- dev-libs/libconcord/Manifest | 2 +- dev-libs/libconcord/libconcord-1.4.ebuild | 102 ----------------------------- dev-libs/libconcord/libconcord-1.5.ebuild | 104 ++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 103 deletions(-) delete mode 100644 dev-libs/libconcord/libconcord-1.4.ebuild create mode 100644 dev-libs/libconcord/libconcord-1.5.ebuild (limited to 'dev-libs') diff --git a/dev-libs/libconcord/Manifest b/dev-libs/libconcord/Manifest index f10e14c5..ed434376 100644 --- a/dev-libs/libconcord/Manifest +++ b/dev-libs/libconcord/Manifest @@ -1 +1 @@ -DIST libconcord-1.4.tar.gz 122724 BLAKE2B c4fb2ef81956a252509a3acfe41d3d48416a2fb09384c1481d67ed3f63b140731222cdd71c7ce15681e8f82ab253efabf0b465fb440d45a74ad0e153665ac8f6 SHA512 bf4645791f35e9328a72b56c2cf20be30980e9f70379be0e24494b0f86e14869ff86d789f0e90341f5ab0abc6e747f91d3bc0ec20f730c33473fc54c39cf543b +DIST libconcord-1.5.tar.gz 123823 BLAKE2B 5968898c72972a1893576643b62c411761084bec71147d8740138edf63032bb9cd1e0c8d174b97249386339ae85ec6c4d65a88b8be4181dd6658cce0a36ea2e0 SHA512 37e34eb52ff11702d277b22cab0d8a64860b6a8d390c1566983b9e4da8e5ad82c596ff67404dbf66ea3c8da3f8fc8df8fc8008101a6f4c2656bd089f23e1de86 diff --git a/dev-libs/libconcord/libconcord-1.4.ebuild b/dev-libs/libconcord/libconcord-1.4.ebuild deleted file mode 100644 index ab16706d..00000000 --- a/dev-libs/libconcord/libconcord-1.4.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) -inherit autotools xdg-utils perl-module distutils-r1 - -DESCRIPTION="Library for programming the Logitech Harmony universal remote" -HOMEPAGE="https://www.phildev.net/concordance" -SRC_URI="https://github.com/jaymzh/concordance/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="perl python static-libs" - -DEPEND="perl? ( >=dev-lang/swig-2:= ) - python? ( ${PYTHON_DEPS} )" -RDEPEND="dev-libs/hidapi - dev-libs/libzip" - -S="${WORKDIR}/concordance-${PV}/${PN}" - -src_prepare() { - default - - eautoreconf - - if use perl ; then - cd "${S}/bindings/perl" - einfo "Prepare perl bindings in ${PWD}" - perl-module_src_prepare - swig -perl5 concord.i - cd "${S}" - fi - - if use python ; then - cd "${S}/bindings/python" - einfo "Prepare python bindings in ${PWD}" - distutils-r1_src_prepare - cd "${S}" - fi -} - -src_configure() { - econf \ - --disable-mime-update \ - $(use_enable static-libs static) - - if use perl ; then - cd "${S}/bindings/perl" - einfo "Configure perl bindings in ${PWD}" - perl-module_src_configure - cd "${S}" - fi -} - -src_compile() { - default - - if use perl ; then - cd "${S}/bindings/perl" - einfo "Compile perl bindings in ${PWD}" - mymake=( OPTIMIZE="${CFLAGS} -I${S}" ) - perl-module_src_compile - cd "${S}" - fi - - if use python ; then - cd "${S}/bindings/python" - einfo "Prepare python bindings in ${PWD}" - distutils-r1_src_compile - cd "${S}" - fi -} - -src_install() { - emake install DESTDIR="${ED}" - - dodoc README - dodoc ../Changelog ../TODO - - if use perl ; then - cd "${S}/bindings/perl" - einfo "Install perl bindings in ${PWD}" - perl-module_src_install - cd "${S}" - fi - - if use python ; then - cd "${S}/bindings/python" - einfo "Install python bindings in ${PWD}" - distutils-r1_src_install - cd "${S}" - fi -} - -pkg_postinst() { - xdg_mimeinfo_database_update -} diff --git a/dev-libs/libconcord/libconcord-1.5.ebuild b/dev-libs/libconcord/libconcord-1.5.ebuild new file mode 100644 index 00000000..7552e9aa --- /dev/null +++ b/dev-libs/libconcord/libconcord-1.5.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..12} ) +inherit autotools xdg-utils perl-module distutils-r1 + +DESCRIPTION="Library for programming the Logitech Harmony universal remote" +HOMEPAGE="https://www.phildev.net/concordance" +SRC_URI="https://github.com/jaymzh/concordance/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="perl python static-libs" + +DEPEND="net-misc/curl:= + perl? ( >=dev-lang/swig-2:= ) + python? ( ${PYTHON_DEPS} )" +RDEPEND="dev-libs/hidapi + net-misc/curl:= + dev-libs/libzip" + +S="${WORKDIR}/concordance-${PV}/${PN}" + +src_prepare() { + default + + eautoreconf + + if use perl ; then + cd "${S}/bindings/perl" + einfo "Prepare perl bindings in ${PWD}" + perl-module_src_prepare + swig -perl5 concord.i + cd "${S}" + fi + + if use python ; then + cd "${S}/bindings/python" + einfo "Prepare python bindings in ${PWD}" + distutils-r1_src_prepare + cd "${S}" + fi +} + +src_configure() { + econf \ + --disable-mime-update \ + $(use_enable static-libs static) + + if use perl ; then + cd "${S}/bindings/perl" + einfo "Configure perl bindings in ${PWD}" + perl-module_src_configure + cd "${S}" + fi +} + +src_compile() { + default + + if use perl ; then + cd "${S}/bindings/perl" + einfo "Compile perl bindings in ${PWD}" + mymake=( OPTIMIZE="${CFLAGS} -I${S}" ) + perl-module_src_compile + cd "${S}" + fi + + if use python ; then + cd "${S}/bindings/python" + einfo "Prepare python bindings in ${PWD}" + distutils-r1_src_compile + cd "${S}" + fi +} + +src_install() { + emake install DESTDIR="${ED}" + + dodoc README + dodoc ../Changelog ../TODO + + if use perl ; then + cd "${S}/bindings/perl" + einfo "Install perl bindings in ${PWD}" + perl-module_src_install + cd "${S}" + fi + + if use python ; then + cd "${S}/bindings/python" + einfo "Install python bindings in ${PWD}" + distutils-r1_src_install + cd "${S}" + fi +} + +pkg_postinst() { + xdg_mimeinfo_database_update +} -- cgit v1.2.3