Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-gi/
Date: Tue, 17 May 2022 13:18:21
Message-Id: 1652793489.4add1ce6ed03c5de84c75b8823273fc912ba58e8.xgqt@gentoo
1 commit: 4add1ce6ed03c5de84c75b8823273fc912ba58e8
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 12:53:59 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 13:18:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4add1ce6
7
8 dev-scheme/guile-gi: add static-libs USE flag
9
10 Closes: https://bugs.gentoo.org/845162
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 ...uile-gi-0.3.1.ebuild => guile-gi-0.3.1-r1.ebuild} | 20 +++++++++++---------
14 ...uile-gi-0.3.2.ebuild => guile-gi-0.3.2-r1.ebuild} | 13 +++++++++----
15 dev-scheme/guile-gi/guile-gi-9999.ebuild | 13 +++++++++----
16 3 files changed, 29 insertions(+), 17 deletions(-)
17
18 diff --git a/dev-scheme/guile-gi/guile-gi-0.3.1.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild
19 similarity index 70%
20 rename from dev-scheme/guile-gi/guile-gi-0.3.1.ebuild
21 rename to dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild
22 index 0fd9d6ec4efe..cf870f83e265 100644
23 --- a/dev-scheme/guile-gi/guile-gi-0.3.1.ebuild
24 +++ b/dev-scheme/guile-gi/guile-gi-0.3.1-r1.ebuild
25 @@ -1,4 +1,4 @@
26 -# Copyright 1999-2021 Gentoo Authors
27 +# Copyright 1999-2022 Gentoo Authors
28 # Distributed under the terms of the GNU General Public License v2
29
30 EAPI=8
31 @@ -8,7 +8,7 @@ inherit autotools
32 DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile"
33 HOMEPAGE="https://spk121.github.io/guile-gi/"
34
35 -if [[ "${PV}" == *9999* ]]; then
36 +if [[ "${PV}" == *9999* ]] ; then
37 inherit git-r3
38 EGIT_REPO_URI="https://github.com/spk121/${PN}.git"
39 else
40 @@ -16,20 +16,18 @@ else
41 KEYWORDS="~amd64"
42 fi
43
44 -# Tests fail
45 -RESTRICT="strip test"
46 LICENSE="GPL-3"
47 SLOT="0"
48 +IUSE="static-libs"
49 +RESTRICT="strip test" # Tests fail
50
51 -BDEPEND="
52 - sys-apps/texinfo
53 -"
54 DEPEND="
55 >=dev-scheme/guile-2.0.9:=
56 dev-libs/gobject-introspection
57 x11-libs/gtk+:3[introspection]
58 "
59 RDEPEND="${DEPEND}"
60 +BDEPEND="sys-apps/texinfo"
61
62 # guile generates ELF files without use of C or machine code
63 # It's a portage's false positive. bug #677600
64 @@ -45,11 +43,15 @@ src_prepare() {
65 }
66
67 src_configure() {
68 - econf --enable-introspection="yes"
69 + econf --enable-introspection=yes $(use_enable static-libs static)
70 }
71
72 src_install() {
73 default
74
75 - mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}" || die
76 + mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
77 +
78 + if ! use static-libs ; then
79 + find "${ED}" -type f -name '*.la' -delete || die
80 + fi
81 }
82
83 diff --git a/dev-scheme/guile-gi/guile-gi-0.3.2.ebuild b/dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild
84 similarity index 80%
85 rename from dev-scheme/guile-gi/guile-gi-0.3.2.ebuild
86 rename to dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild
87 index e1dbe9e8b9ec..b5423a07a2d3 100644
88 --- a/dev-scheme/guile-gi/guile-gi-0.3.2.ebuild
89 +++ b/dev-scheme/guile-gi/guile-gi-0.3.2-r1.ebuild
90 @@ -1,4 +1,4 @@
91 -# Copyright 1999-2021 Gentoo Authors
92 +# Copyright 1999-2022 Gentoo Authors
93 # Distributed under the terms of the GNU General Public License v2
94
95 EAPI=8
96 @@ -8,7 +8,7 @@ inherit virtualx autotools
97 DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile"
98 HOMEPAGE="https://spk121.github.io/guile-gi/"
99
100 -if [[ "${PV}" == *9999* ]]; then
101 +if [[ "${PV}" == *9999* ]] ; then
102 inherit git-r3
103 EGIT_REPO_URI="https://github.com/spk121/${PN}.git"
104 else
105 @@ -16,9 +16,10 @@ else
106 KEYWORDS="~amd64"
107 fi
108
109 -RESTRICT="strip"
110 LICENSE="GPL-3"
111 SLOT="0"
112 +IUSE="static-libs"
113 +RESTRICT="strip"
114
115 DEPEND="
116 >=dev-scheme/guile-2.0.9:=
117 @@ -42,7 +43,7 @@ src_prepare() {
118 }
119
120 src_configure() {
121 - econf --enable-introspection=yes
122 + econf --enable-introspection=yes $(use_enable static-libs static)
123 }
124
125 src_test() {
126 @@ -53,4 +54,8 @@ src_install() {
127 default
128
129 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
130 +
131 + if ! use static-libs ; then
132 + find "${ED}" -type f -name '*.la' -delete || die
133 + fi
134 }
135
136 diff --git a/dev-scheme/guile-gi/guile-gi-9999.ebuild b/dev-scheme/guile-gi/guile-gi-9999.ebuild
137 index e1dbe9e8b9ec..b5423a07a2d3 100644
138 --- a/dev-scheme/guile-gi/guile-gi-9999.ebuild
139 +++ b/dev-scheme/guile-gi/guile-gi-9999.ebuild
140 @@ -1,4 +1,4 @@
141 -# Copyright 1999-2021 Gentoo Authors
142 +# Copyright 1999-2022 Gentoo Authors
143 # Distributed under the terms of the GNU General Public License v2
144
145 EAPI=8
146 @@ -8,7 +8,7 @@ inherit virtualx autotools
147 DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile"
148 HOMEPAGE="https://spk121.github.io/guile-gi/"
149
150 -if [[ "${PV}" == *9999* ]]; then
151 +if [[ "${PV}" == *9999* ]] ; then
152 inherit git-r3
153 EGIT_REPO_URI="https://github.com/spk121/${PN}.git"
154 else
155 @@ -16,9 +16,10 @@ else
156 KEYWORDS="~amd64"
157 fi
158
159 -RESTRICT="strip"
160 LICENSE="GPL-3"
161 SLOT="0"
162 +IUSE="static-libs"
163 +RESTRICT="strip"
164
165 DEPEND="
166 >=dev-scheme/guile-2.0.9:=
167 @@ -42,7 +43,7 @@ src_prepare() {
168 }
169
170 src_configure() {
171 - econf --enable-introspection=yes
172 + econf --enable-introspection=yes $(use_enable static-libs static)
173 }
174
175 src_test() {
176 @@ -53,4 +54,8 @@ src_install() {
177 default
178
179 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
180 +
181 + if ! use static-libs ; then
182 + find "${ED}" -type f -name '*.la' -delete || die
183 + fi
184 }