From 4add1ce6ed03c5de84c75b8823273fc912ba58e8 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Tue, 17 May 2022 14:53:59 +0200 Subject: dev-scheme/guile-gi: add static-libs USE flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/845162 Signed-off-by: Maciej Barć --- dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild | 57 ++++++++++++++++++++++++++ dev-scheme/guile-gi/guile-gi-0.3.1.ebuild | 55 ------------------------- dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild | 61 ++++++++++++++++++++++++++++ dev-scheme/guile-gi/guile-gi-0.3.2.ebuild | 56 ------------------------- dev-scheme/guile-gi/guile-gi-9999.ebuild | 13 ++++-- 5 files changed, 127 insertions(+), 115 deletions(-) create mode 100644 dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild delete mode 100644 dev-scheme/guile-gi/guile-gi-0.3.1.ebuild create mode 100644 dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild delete mode 100644 dev-scheme/guile-gi/guile-gi-0.3.2.ebuild (limited to 'dev-scheme') diff --git a/dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild new file mode 100644 index 000000000000..cf870f83e265 --- /dev/null +++ b/dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile" +HOMEPAGE="https://spk121.github.io/guile-gi/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/spk121/${PN}.git" +else + SRC_URI="https://github.com/spk121/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="static-libs" +RESTRICT="strip test" # Tests fail + +DEPEND=" + >=dev-scheme/guile-2.0.9:= + dev-libs/gobject-introspection + x11-libs/gtk+:3[introspection] +" +RDEPEND="${DEPEND}" +BDEPEND="sys-apps/texinfo" + +# guile generates ELF files without use of C or machine code +# It's a portage's false positive. bug #677600 +QA_PREBUILT='*[.]go' + +src_prepare() { + default + + # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 + find "${S}" -name "*.scm" -exec touch {} + || die + + eautoreconf +} + +src_configure() { + econf --enable-introspection=yes $(use_enable static-libs static) +} + +src_install() { + default + + mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die + + if ! use static-libs ; then + find "${ED}" -type f -name '*.la' -delete || die + fi +} diff --git a/dev-scheme/guile-gi/guile-gi-0.3.1.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.1.ebuild deleted file mode 100644 index 0fd9d6ec4efe..000000000000 --- a/dev-scheme/guile-gi/guile-gi-0.3.1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile" -HOMEPAGE="https://spk121.github.io/guile-gi/" - -if [[ "${PV}" == *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/spk121/${PN}.git" -else - SRC_URI="https://github.com/spk121/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -# Tests fail -RESTRICT="strip test" -LICENSE="GPL-3" -SLOT="0" - -BDEPEND=" - sys-apps/texinfo -" -DEPEND=" - >=dev-scheme/guile-2.0.9:= - dev-libs/gobject-introspection - x11-libs/gtk+:3[introspection] -" -RDEPEND="${DEPEND}" - -# guile generates ELF files without use of C or machine code -# It's a portage's false positive. bug #677600 -QA_PREBUILT='*[.]go' - -src_prepare() { - default - - # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 - find "${S}" -name "*.scm" -exec touch {} + || die - - eautoreconf -} - -src_configure() { - econf --enable-introspection="yes" -} - -src_install() { - default - - mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}" || die -} diff --git a/dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild new file mode 100644 index 000000000000..b5423a07a2d3 --- /dev/null +++ b/dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit virtualx autotools + +DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile" +HOMEPAGE="https://spk121.github.io/guile-gi/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/spk121/${PN}.git" +else + SRC_URI="https://github.com/spk121/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="static-libs" +RESTRICT="strip" + +DEPEND=" + >=dev-scheme/guile-2.0.9:= + dev-libs/gobject-introspection + x11-libs/gtk+:3[introspection] +" +RDEPEND="${DEPEND}" +BDEPEND="sys-apps/texinfo" + +# guile generates ELF files without use of C or machine code +# It's a portage's false positive. bug #677600 +QA_PREBUILT='*[.]go' + +src_prepare() { + default + + # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 + find "${S}" -name "*.scm" -exec touch {} + || die + + eautoreconf +} + +src_configure() { + econf --enable-introspection=yes $(use_enable static-libs static) +} + +src_test() { + virtx default +} + +src_install() { + default + + mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die + + if ! use static-libs ; then + find "${ED}" -type f -name '*.la' -delete || die + fi +} diff --git a/dev-scheme/guile-gi/guile-gi-0.3.2.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.2.ebuild deleted file mode 100644 index e1dbe9e8b9ec..000000000000 --- a/dev-scheme/guile-gi/guile-gi-0.3.2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit virtualx autotools - -DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile" -HOMEPAGE="https://spk121.github.io/guile-gi/" - -if [[ "${PV}" == *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/spk121/${PN}.git" -else - SRC_URI="https://github.com/spk121/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -RESTRICT="strip" -LICENSE="GPL-3" -SLOT="0" - -DEPEND=" - >=dev-scheme/guile-2.0.9:= - dev-libs/gobject-introspection - x11-libs/gtk+:3[introspection] -" -RDEPEND="${DEPEND}" -BDEPEND="sys-apps/texinfo" - -# guile generates ELF files without use of C or machine code -# It's a portage's false positive. bug #677600 -QA_PREBUILT='*[.]go' - -src_prepare() { - default - - # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 - find "${S}" -name "*.scm" -exec touch {} + || die - - eautoreconf -} - -src_configure() { - econf --enable-introspection=yes -} - -src_test() { - virtx default -} - -src_install() { - default - - mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die -} diff --git a/dev-scheme/guile-gi/guile-gi-9999.ebuild b/dev-scheme/guile-gi/guile-gi-9999.ebuild index e1dbe9e8b9ec..b5423a07a2d3 100644 --- a/dev-scheme/guile-gi/guile-gi-9999.ebuild +++ b/dev-scheme/guile-gi/guile-gi-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -8,7 +8,7 @@ inherit virtualx autotools DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile" HOMEPAGE="https://spk121.github.io/guile-gi/" -if [[ "${PV}" == *9999* ]]; then +if [[ "${PV}" == *9999* ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/spk121/${PN}.git" else @@ -16,9 +16,10 @@ else KEYWORDS="~amd64" fi -RESTRICT="strip" LICENSE="GPL-3" SLOT="0" +IUSE="static-libs" +RESTRICT="strip" DEPEND=" >=dev-scheme/guile-2.0.9:= @@ -42,7 +43,7 @@ src_prepare() { } src_configure() { - econf --enable-introspection=yes + econf --enable-introspection=yes $(use_enable static-libs static) } src_test() { @@ -53,4 +54,8 @@ src_install() { default mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die + + if ! use static-libs ; then + find "${ED}" -type f -name '*.la' -delete || die + fi } -- cgit v1.2.3-65-gdbad