summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-05-17 14:58:38 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-05-17 15:18:09 +0200
commit4af6f37ed058cb536433545073fdbbb6abb48415 (patch)
tree596dff7d6bd1a75470e36712a00377fc103b53ce /dev-scheme/guile-reader
parentdev-scheme/guile-gi: add static-libs USE flag (diff)
downloadgentoo-4af6f37ed058cb536433545073fdbbb6abb48415.tar.gz
gentoo-4af6f37ed058cb536433545073fdbbb6abb48415.tar.bz2
gentoo-4af6f37ed058cb536433545073fdbbb6abb48415.zip
dev-scheme/guile-reader: add static-libs USE flag
Closes: https://bugs.gentoo.org/845165 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme/guile-reader')
-rw-r--r--dev-scheme/guile-reader/guile-reader-0.6.3-r1.ebuild (renamed from dev-scheme/guile-reader/guile-reader-0.6.3.ebuild)17
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-scheme/guile-reader/guile-reader-0.6.3.ebuild b/dev-scheme/guile-reader/guile-reader-0.6.3-r1.ebuild
index fe10ccab8ab0..2b8ba2e95e8a 100644
--- a/dev-scheme/guile-reader/guile-reader-0.6.3.ebuild
+++ b/dev-scheme/guile-reader/guile-reader-0.6.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,10 +7,11 @@ DESCRIPTION="Simple framework for building readers for GNU Guile"
HOMEPAGE="https://www.nongnu.org/guile-reader/"
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="strip"
+IUSE="static-libs"
RDEPEND=">=dev-scheme/guile-2.0.0:="
DEPEND="${RDEPEND}"
@@ -26,3 +27,15 @@ src_prepare() {
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112
find "${S}" -name "*.scm" -exec touch {} + || die
}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if ! use static-libs ; then
+ find "${ED}" -type f -name '*.la' -delete || die
+ fi
+}