From 3a2fd694f0b5c18835073ba1a7e2cc802aaa7639 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Thu, 17 Dec 2020 19:32:38 +0000 Subject: dev-libs/libconcord: version bump Package-Manager: Portage-3.0.9, Repoman-3.0.2 --- dev-libs/libconcord/Manifest | 2 +- dev-libs/libconcord/libconcord-1.2.ebuild | 88 -------------------------- dev-libs/libconcord/libconcord-1.4.ebuild | 101 ++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 89 deletions(-) delete mode 100644 dev-libs/libconcord/libconcord-1.2.ebuild create mode 100644 dev-libs/libconcord/libconcord-1.4.ebuild (limited to 'dev-libs') diff --git a/dev-libs/libconcord/Manifest b/dev-libs/libconcord/Manifest index c6076db1..f10e14c5 100644 --- a/dev-libs/libconcord/Manifest +++ b/dev-libs/libconcord/Manifest @@ -1 +1 @@ -DIST concordance-1.2.tar.bz2 1143635 BLAKE2B c6e3d1a9e84ea553f0edcd43db0f221262d20b1166148bc1b5d73ea45ad31fa0a7ecec83798905dbb05f46f9a3aada16c4753d81c11f3a5104f2aed5153431e9 SHA512 a1485d64e9489ca0ffe2e9be3f42870d878c798e197a2650ad9fa41cf89f593ae0fe1b8125df9d175b1d732930eda0bab5ed027e1bcd69f12dc56533dcfaa9fa +DIST libconcord-1.4.tar.gz 122724 BLAKE2B c4fb2ef81956a252509a3acfe41d3d48416a2fb09384c1481d67ed3f63b140731222cdd71c7ce15681e8f82ab253efabf0b465fb440d45a74ad0e153665ac8f6 SHA512 bf4645791f35e9328a72b56c2cf20be30980e9f70379be0e24494b0f86e14869ff86d789f0e90341f5ab0abc6e747f91d3bc0ec20f730c33473fc54c39cf543b diff --git a/dev-libs/libconcord/libconcord-1.2.ebuild b/dev-libs/libconcord/libconcord-1.2.ebuild deleted file mode 100644 index d90c282d..00000000 --- a/dev-libs/libconcord/libconcord-1.2.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 ) -inherit eutils xdg-utils perl-module distutils-r1 - -MY_P="concordance-${PV}" - -DESCRIPTION="Library for programming the Logitech Harmony universal remote" -HOMEPAGE="https://www.phildev.net/concordance" -SRC_URI="mirror://sourceforge/concordance/${MY_P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="perl python static-libs" - -DEPEND="perl? ( >=dev-lang/swig-2:= )" -RDEPEND="dev-libs/hidapi - dev-libs/libzip" - -S="${WORKDIR}/${MY_P}/${PN}" - -src_prepare() { - default - - 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 -} - -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 -} - -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 - - prune_libtool_files --all -} - -pkg_postinst() { - xdg_mimeinfo_database_update -} diff --git a/dev-libs/libconcord/libconcord-1.4.ebuild b/dev-libs/libconcord/libconcord-1.4.ebuild new file mode 100644 index 00000000..2fe1c5f9 --- /dev/null +++ b/dev-libs/libconcord/libconcord-1.4.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +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 +} -- cgit v1.2.3