1 |
commit: 0ef06777f92aeb050948e8a9eca5070436fcc12f |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 10:09:28 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 10:10:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef06777 |
7 |
|
8 |
dev-ada/gnatcoll-bindings: remove python usage |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
.../gnatcoll-bindings-2019-r2.ebuild | 79 ++++++++++++++++++ |
14 |
.../gnatcoll-bindings-2020-r1.ebuild | 93 ++++++++++++++++++++++ |
15 |
2 files changed, 172 insertions(+) |
16 |
|
17 |
diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..b3c1737ca2f |
20 |
--- /dev/null |
21 |
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2019-r2.ebuild |
22 |
@@ -0,0 +1,79 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+ADA_COMPAT=( gnat_201{6,7,8,9} ) |
29 |
+inherit ada multilib multiprocessing |
30 |
+ |
31 |
+MYP=${P}-20190430-1928C |
32 |
+ |
33 |
+DESCRIPTION="GNAT Component Collection" |
34 |
+HOMEPAGE="http://libre.adacore.com" |
35 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8afa31e87a8f1d425054 |
36 |
+ -> ${MYP}-src.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-3" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="gmp iconv readline +shared static-libs static-pic syslog" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ ${ADA_DEPS} |
45 |
+ dev-ada/gnatcoll-core[${ADA_USEDEP},shared?,static-libs?,static-pic?] |
46 |
+ gmp? ( dev-libs/gmp:* )" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
49 |
+ |
50 |
+REQUIRED_USE=" |
51 |
+ ${ADA_REQUIRED_USE}" |
52 |
+ |
53 |
+S="${WORKDIR}"/${MYP}-src |
54 |
+ |
55 |
+src_compile() { |
56 |
+ build () { |
57 |
+ gprbuild -j$(makeopts_jobs) -m -p -v \ |
58 |
+ -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ |
59 |
+ -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \ |
60 |
+ -XGNATCOLL_ICONV_OPT= \ |
61 |
+ -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" |
62 |
+ } |
63 |
+ for kind in shared static-libs static-pic ; do |
64 |
+ if use $kind; then |
65 |
+ lib=${kind%-libs} |
66 |
+ lib=${lib/shared/relocatable} |
67 |
+ for dir in gmp iconv readline syslog ; do |
68 |
+ if use $dir; then |
69 |
+ build $dir $lib |
70 |
+ fi |
71 |
+ done |
72 |
+ fi |
73 |
+ done |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ build () { |
78 |
+ gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \ |
79 |
+ -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ |
80 |
+ -XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2 |
81 |
+ } |
82 |
+ for kind in shared static-libs static-pic ; do |
83 |
+ if use $kind; then |
84 |
+ lib=${kind%-libs} |
85 |
+ lib=${lib/shared/relocatable} |
86 |
+ for dir in gmp iconv readline syslog ; do |
87 |
+ if use $dir; then |
88 |
+ build $dir $lib |
89 |
+ fi |
90 |
+ done |
91 |
+ fi |
92 |
+ done |
93 |
+ if use iconv; then |
94 |
+ sed -i \ |
95 |
+ -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \ |
96 |
+ "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \ |
97 |
+ || die |
98 |
+ fi |
99 |
+ rm -r "${D}"/usr/share/gpr/manifests || die |
100 |
+ einstalldocs |
101 |
+} |
102 |
|
103 |
diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild |
104 |
new file mode 100644 |
105 |
index 00000000000..e6fbbad6182 |
106 |
--- /dev/null |
107 |
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2020-r1.ebuild |
108 |
@@ -0,0 +1,93 @@ |
109 |
+# Copyright 1999-2021 Gentoo Authors |
110 |
+# Distributed under the terms of the GNU General Public License v2 |
111 |
+ |
112 |
+EAPI=7 |
113 |
+ |
114 |
+#PYTHON_COMPAT=( python2_7 ) |
115 |
+ADA_COMPAT=( gnat_201{6,7,8,9} ) |
116 |
+#inherit ada multilib multiprocessing python-single-r1 |
117 |
+inherit ada multilib multiprocessing |
118 |
+ |
119 |
+MYP=${PN}-20.0-20191009-1B2EA |
120 |
+ |
121 |
+DESCRIPTION="GNAT Component Collection" |
122 |
+HOMEPAGE="http://libre.adacore.com" |
123 |
+SRC_URI="https://community.download.adacore.com/v1/3c54db553121bf88877e2f56ac4fca36765186eb?filename=${MYP}-src.tar.gz |
124 |
+ -> ${MYP}-src.tar.gz" |
125 |
+ |
126 |
+LICENSE="GPL-3" |
127 |
+SLOT="0" |
128 |
+KEYWORDS="~amd64 ~x86" |
129 |
+#IUSE="gmp iconv python readline +shared static-libs static-pic syslog" |
130 |
+IUSE="gmp iconv readline +shared static-libs static-pic syslog" |
131 |
+ |
132 |
+#RDEPEND="python? ( ${PYTHON_DEPS} ) |
133 |
+RDEPEND=" |
134 |
+ ${ADA_DEPS} |
135 |
+ dev-ada/gnatcoll-core[${ADA_USEDEP},shared?,static-libs?,static-pic?] |
136 |
+ gmp? ( dev-libs/gmp:* )" |
137 |
+DEPEND="${RDEPEND} |
138 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
139 |
+ |
140 |
+#REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
141 |
+REQUIRED_USE=" |
142 |
+ ${ADA_REQUIRED_USE}" |
143 |
+ |
144 |
+S="${WORKDIR}"/${MYP}-src |
145 |
+ |
146 |
+pkg_setup() { |
147 |
+# use python && python-single-r1_pkg_setup |
148 |
+ ada_pkg_setup |
149 |
+} |
150 |
+ |
151 |
+src_compile() { |
152 |
+ build () { |
153 |
+ gprbuild -j$(makeopts_jobs) -m -p -v \ |
154 |
+ -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ |
155 |
+ -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \ |
156 |
+ -XGNATCOLL_ICONV_OPT= \ |
157 |
+ -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" |
158 |
+# -XGNATCOLL_ICONV_OPT= -XGNATCOLL_PYTHON_CFLAGS="-I$(python_get_includedir)" \ |
159 |
+# -XGNATCOLL_PYTHON_LIBS=$(python_get_library_path) \ |
160 |
+ } |
161 |
+ for kind in shared static-libs static-pic ; do |
162 |
+ if use $kind; then |
163 |
+ lib=${kind%-libs} |
164 |
+ lib=${lib/shared/relocatable} |
165 |
+# for dir in gmp iconv python readline syslog ; do |
166 |
+ for dir in gmp iconv readline syslog ; do |
167 |
+ if use $dir; then |
168 |
+ build $dir $lib |
169 |
+ fi |
170 |
+ done |
171 |
+ fi |
172 |
+ done |
173 |
+} |
174 |
+ |
175 |
+src_install() { |
176 |
+ build () { |
177 |
+ gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \ |
178 |
+ -XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \ |
179 |
+ -XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2 |
180 |
+ } |
181 |
+ for kind in shared static-libs static-pic ; do |
182 |
+ if use $kind; then |
183 |
+ lib=${kind%-libs} |
184 |
+ lib=${lib/shared/relocatable} |
185 |
+# for dir in gmp iconv python readline syslog ; do |
186 |
+ for dir in gmp iconv readline syslog ; do |
187 |
+ if use $dir; then |
188 |
+ build $dir $lib |
189 |
+ fi |
190 |
+ done |
191 |
+ fi |
192 |
+ done |
193 |
+ if use iconv; then |
194 |
+ sed -i \ |
195 |
+ -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \ |
196 |
+ "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \ |
197 |
+ || die |
198 |
+ fi |
199 |
+ rm -r "${D}"/usr/share/gpr/manifests || die |
200 |
+ einstalldocs |
201 |
+} |