From bdd379b356b2ac8cc735677271a323ff5b7bb23a Mon Sep 17 00:00:00 2001 From: David Seifert Date: Thu, 4 Jun 2020 21:52:29 +0200 Subject: dev-libs/libdivecomputer: [QA] Disable static libs Closes: https://bugs.gentoo.org/726966 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: David Seifert --- .../libdivecomputer-0.6.0-r1.ebuild | 42 ++++++++++++++++++++++ .../libdivecomputer/libdivecomputer-0.6.0.ebuild | 33 ----------------- .../libdivecomputer/libdivecomputer-9999.ebuild | 13 +++++-- 3 files changed, 53 insertions(+), 35 deletions(-) create mode 100644 dev-libs/libdivecomputer/libdivecomputer-0.6.0-r1.ebuild delete mode 100644 dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild diff --git a/dev-libs/libdivecomputer/libdivecomputer-0.6.0-r1.ebuild b/dev-libs/libdivecomputer/libdivecomputer-0.6.0-r1.ebuild new file mode 100644 index 000000000000..74158781a3b0 --- /dev/null +++ b/dev-libs/libdivecomputer/libdivecomputer-0.6.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://github.com/libdivecomputer/libdivecomputer" + inherit autotools git-r3 +else + SRC_URI="https://www.libdivecomputer.org/releases/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Library for communication with dive computers from various manufacturers." +HOMEPAGE="https://www.libdivecomputer.org" +LICENSE="LGPL-2.1" + +SLOT="0" +IUSE="bluetooth" + +RDEPEND="virtual/libusb:1 + bluetooth? ( net-wireless/bluez )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + [[ -v EGIT_REPO_URI ]] && eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_with bluetooth bluez) +} + +src_install() { + default + + # no static archives + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild b/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild deleted file mode 100644 index 0facf2467857..000000000000 --- a/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -if [[ ${PV} = *9999* ]]; then - EGIT_REPO_URI="https://github.com/libdivecomputer/libdivecomputer" - inherit autotools git-r3 -else - SRC_URI="https://www.libdivecomputer.org/releases/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -DESCRIPTION="Library for communication with dive computers from various manufacturers." -HOMEPAGE="https://www.libdivecomputer.org" -LICENSE="LGPL-2.1" - -SLOT="0" -IUSE="bluetooth" - -RDEPEND="virtual/libusb:1 - bluetooth? ( net-wireless/bluez )" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -src_prepare() { - default - [[ -v EGIT_REPO_URI ]] && eautoreconf -} - -src_configure() { - econf $(use_with bluetooth bluez) -} diff --git a/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild b/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild index 0facf2467857..74158781a3b0 100644 --- a/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild +++ b/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" @@ -29,5 +29,14 @@ src_prepare() { } src_configure() { - econf $(use_with bluetooth bluez) + econf \ + --disable-static \ + $(use_with bluetooth bluez) +} + +src_install() { + default + + # no static archives + find "${D}" -name '*.la' -delete || die } -- cgit v1.2.3-65-gdbad