Gentoo Archives: gentoo-commits

From: Marco Leise <marco.leise@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/dlang:master commit in: eclass/, dev-lang/ldc2/
Date: Sun, 06 Feb 2022 15:50:24
Message-Id: 1643917012.b4fe786e4168fdc2a4367d1f7014e446df6e9ef3.mleise@gentoo
1 commit: b4fe786e4168fdc2a4367d1f7014e446df6e9ef3
2 Author: Niko Böckerman <niko.bockerman <AT> protonmail <DOT> com>
3 AuthorDate: Thu Feb 3 19:30:13 2022 +0000
4 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
5 CommitDate: Thu Feb 3 19:36:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=b4fe786e
7
8 Remove old ldc2 versions after llvm:10 removal
9
10 All versions of LLVM in slot 10 have been removed from Gentoo tree.
11 Remove all ldc2 versions that don't support older LLVM versions. And
12 remove llvm:10 slot support from remaining ldc2 ebuilds.
13
14 Signed-off-by: Niko Böckerman <niko.bockerman <AT> protonmail.com>
15
16 dev-lang/ldc2/Manifest | 4 --
17 dev-lang/ldc2/ldc2-1.20.1-r1.ebuild | 75 ----------------------------------
18 dev-lang/ldc2/ldc2-1.20.1-r2.ebuild | 81 -------------------------------------
19 dev-lang/ldc2/ldc2-1.21.0-r1.ebuild | 75 ----------------------------------
20 dev-lang/ldc2/ldc2-1.21.0-r2.ebuild | 81 -------------------------------------
21 dev-lang/ldc2/ldc2-1.22.0-r1.ebuild | 81 -------------------------------------
22 dev-lang/ldc2/ldc2-1.22.0.ebuild | 75 ----------------------------------
23 dev-lang/ldc2/ldc2-1.23.0-r1.ebuild | 81 -------------------------------------
24 dev-lang/ldc2/ldc2-1.23.0.ebuild | 75 ----------------------------------
25 dev-lang/ldc2/ldc2-1.24.0-r1.ebuild | 81 -------------------------------------
26 dev-lang/ldc2/ldc2-1.24.0-r2.ebuild | 1 -
27 dev-lang/ldc2/ldc2-1.24.0.ebuild | 75 ----------------------------------
28 dev-lang/ldc2/ldc2-1.25.1-r1.ebuild | 1 -
29 dev-lang/ldc2/ldc2-1.25.1.ebuild | 81 -------------------------------------
30 dev-lang/ldc2/ldc2-1.26.0-r1.ebuild | 1 -
31 dev-lang/ldc2/ldc2-1.26.0.ebuild | 81 -------------------------------------
32 eclass/dlang-compilers.eclass | 4 --
33 17 files changed, 953 deletions(-)
34
35 diff --git a/dev-lang/ldc2/Manifest b/dev-lang/ldc2/Manifest
36 index 2a2a28f..4767a40 100644
37 --- a/dev-lang/ldc2/Manifest
38 +++ b/dev-lang/ldc2/Manifest
39 @@ -1,7 +1,3 @@
40 -DIST ldc-1.20.1-src.tar.gz 7283975 BLAKE2B ceb75e767562936606a5fc8383dd089a8daefd04e6fbcd8c6b360fccad50ecb7c6656d60c5351b11a3580d01bdb45101ed50ff6c7a9791af1fd25be160e9a037 SHA512 bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53
41 -DIST ldc-1.21.0-src.tar.gz 7355981 BLAKE2B 46f3289e3e39d8c3b2a4985e1de4b5ef0e218188af5095cb2007bb83eec2bdaf6c590786d7b655a1f886c7f46703db2c049cf054c0fac438f943a702d3ac7a3b SHA512 5759cb0ad04d2e62a075748b40efb30261c1ebefbc129024cddccf60ab59c211f20b87a0fe22b0a714a0435f53d54a722229cd8ad4ede7bfbf492809f23c679a
42 -DIST ldc-1.22.0-src.tar.gz 7434646 BLAKE2B 317c9ebb3f75e495c939fadd24abbbea4baa2f9bf547894067d373adc48dfefd47c5bcc2136ac67ecd2bbbe2bf0cf879cfc9b978d9ff75d68ede7b0686dbfee9 SHA512 81c59e96b181fbe4a499d84a816ee4fbdbc8b6170fe87dc42e8a315e72d0be4a7f42b939084e5a529572987bcdc495926d83ca517aff8a7e5632767cf46d67d8
43 -DIST ldc-1.23.0-src.tar.gz 7438736 BLAKE2B 42cad99be83ce6c8d08819e6e2c6aca161f1243a239da1e692551e7b140069aacb12bbf38b4dc727eab4814bba9d8dafbb16ea2c938ea49db907275c2149b2bd SHA512 dbade9a120bb30d0c691f5c4c6c7e06be0cf3575b9bd63a921e9a768a22aef10293cc4058c7da348707856e1d363419c91e38a893d13408e9b5be4ae85544bb0
44 DIST ldc-1.24.0-src.tar.gz 7522065 BLAKE2B 65069835528466c4a39ebf08245fa7fcc9348ee620bab933d23157af0702c0ac4f5b3c1692b1eff83ba81ba2b8be6f086935527585c55e1ecb4ea42f965befe6 SHA512 c6f06d80617e5f7789f9e0e349a21e380d0bb6898983f0c2e2aaaec32e23ea0f69c039b6f0c03b8015782b837c890a6ff1051bfa332a6af7c79fc3479446dfb1
45 DIST ldc-1.25.1-src.tar.gz 7625687 BLAKE2B 02eacb06c334608d4b649d8fdffdef03cd1645a2d237063c888728c840a8c939df1c1ff9aefe3efab395358a7757dd287d1efa7a704b37f0b2661c8c1b5faaca SHA512 a087f48ec8f559eea17f88f9c00893c84db17bfcb10590011f43d6d1573a30286067207133ad6d249897fe51cb22829c2ddf00bf23210f01aa059b1f87790fae
46 DIST ldc-1.26.0-src.tar.gz 7650063 BLAKE2B d132dc842e27a93fc76810e17db1d67f856530ca7e6948c795ec5f943e4be32513b4a956aa9217df4acd45806bc81ff855ebab757aa3f6a1943fa7c394b3e3ce SHA512 7bb2aa464f5ba834c07f67743f4af01db6588d56611d6c9e250a6908ebe93a0dcd9d3a79f8f252fc92eeb4826bfa62de6c51c4db03ff80e60a8d993e4451f573
47
48 diff --git a/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild b/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild
49 deleted file mode 100644
50 index e79765a..0000000
51 --- a/dev-lang/ldc2/ldc2-1.20.1-r1.ebuild
52 +++ /dev/null
53 @@ -1,75 +0,0 @@
54 -# Copyright 1999-2021 Gentoo Authors
55 -# Distributed under the terms of the GNU General Public License v2
56 -
57 -EAPI=7
58 -
59 -inherit multilib-build cmake llvm
60 -
61 -MY_PV="${PV//_/-}"
62 -MY_P="ldc-${MY_PV}-src"
63 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
64 -S=${WORKDIR}/${MY_P}
65 -
66 -DESCRIPTION="LLVM D Compiler"
67 -HOMEPAGE="https://github.com/ldc-developers/ldc"
68 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
69 -LICENSE="BSD"
70 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
71 -
72 -IUSE="static-libs"
73 -
74 -# We support LLVM 3.9 through 10.
75 -RDEPEND="|| (
76 - sys-devel/llvm:10
77 - )
78 - <sys-devel/llvm-11:=
79 - >=app-eselect/eselect-dlang-20140709"
80 -DEPEND="${RDEPEND}"
81 -LLVM_MAX_SLOT=10
82 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
83 -
84 -# For now, we support amd64 multilib. Anyone is free to add more support here.
85 -MULTILIB_COMPAT=( abi_x86_{32,64} )
86 -
87 -DLANG_VERSION_RANGE="2.075-"
88 -DLANG_PACKAGE_TYPE="single"
89 -
90 -inherit dlang
91 -
92 -detect_hardened() {
93 - gcc --version | grep -o Hardened
94 -}
95 -
96 -src_prepare() {
97 - cmake_src_prepare
98 -}
99 -
100 -d_src_configure() {
101 - # Make sure libphobos2 is installed into ldc2's directory.
102 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
103 - local mycmakeargs=(
104 - -DD_VERSION=2
105 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
106 - -DD_COMPILER="${DMD}"
107 - -DLDC_WITH_LLD=OFF
108 - )
109 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
110 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
111 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' )
112 - cmake_src_configure
113 -}
114 -
115 -d_src_install() {
116 - cmake_src_install
117 -
118 - rm -rf "${ED}"/usr/share/bash-completion
119 -}
120 -
121 -pkg_postinst() {
122 - # Update active ldc2
123 - "${ROOT}"/usr/bin/eselect dlang update ldc2
124 -}
125 -
126 -pkg_postrm() {
127 - "${ROOT}"/usr/bin/eselect dlang update ldc2
128 -}
129
130 diff --git a/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild b/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild
131 deleted file mode 100644
132 index 5a2b5c6..0000000
133 --- a/dev-lang/ldc2/ldc2-1.20.1-r2.ebuild
134 +++ /dev/null
135 @@ -1,81 +0,0 @@
136 -# Copyright 1999-2021 Gentoo Authors
137 -# Distributed under the terms of the GNU General Public License v2
138 -
139 -EAPI=7
140 -
141 -inherit multilib-build cmake llvm
142 -
143 -MY_PV="${PV//_/-}"
144 -MY_P="ldc-${MY_PV}-src"
145 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
146 -S=${WORKDIR}/${MY_P}
147 -
148 -DESCRIPTION="LLVM D Compiler"
149 -HOMEPAGE="https://github.com/ldc-developers/ldc"
150 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
151 -LICENSE="BSD"
152 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
153 -
154 -IUSE="static-libs"
155 -
156 -# We support LLVM 3.9 through 10.
157 -RDEPEND="dev-util/ninja
158 - || (
159 - sys-devel/llvm:10
160 - )
161 - <sys-devel/llvm-11:=
162 - >=app-eselect/eselect-dlang-20140709"
163 -DEPEND="${RDEPEND}"
164 -LLVM_MAX_SLOT=10
165 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
166 -
167 -# For now, we support amd64 multilib. Anyone is free to add more support here.
168 -MULTILIB_COMPAT=( abi_x86_{32,64} )
169 -
170 -DLANG_VERSION_RANGE="2.075-"
171 -DLANG_PACKAGE_TYPE="single"
172 -
173 -inherit dlang
174 -
175 -detect_hardened() {
176 - gcc --version | grep -o Hardened
177 -}
178 -
179 -src_prepare() {
180 - cmake_src_prepare
181 -}
182 -
183 -d_src_configure() {
184 - # Make sure libphobos2 is installed into ldc2's directory.
185 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
186 - local mycmakeargs=(
187 - -DD_VERSION=2
188 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
189 - -DD_COMPILER="${DMD}"
190 - -DLDC_WITH_LLD=OFF
191 - )
192 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
193 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
194 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
195 - cmake_src_configure
196 -}
197 -
198 -d_src_compile()
199 -{
200 - cmake_src_compile
201 -}
202 -
203 -d_src_install() {
204 - cmake_src_install
205 -
206 - rm -rf "${ED}"/usr/share/bash-completion
207 -}
208 -
209 -pkg_postinst() {
210 - # Update active ldc2
211 - "${ROOT}"/usr/bin/eselect dlang update ldc2
212 -}
213 -
214 -pkg_postrm() {
215 - "${ROOT}"/usr/bin/eselect dlang update ldc2
216 -}
217
218 diff --git a/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild
219 deleted file mode 100644
220 index e79765a..0000000
221 --- a/dev-lang/ldc2/ldc2-1.21.0-r1.ebuild
222 +++ /dev/null
223 @@ -1,75 +0,0 @@
224 -# Copyright 1999-2021 Gentoo Authors
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI=7
228 -
229 -inherit multilib-build cmake llvm
230 -
231 -MY_PV="${PV//_/-}"
232 -MY_P="ldc-${MY_PV}-src"
233 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
234 -S=${WORKDIR}/${MY_P}
235 -
236 -DESCRIPTION="LLVM D Compiler"
237 -HOMEPAGE="https://github.com/ldc-developers/ldc"
238 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
239 -LICENSE="BSD"
240 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
241 -
242 -IUSE="static-libs"
243 -
244 -# We support LLVM 3.9 through 10.
245 -RDEPEND="|| (
246 - sys-devel/llvm:10
247 - )
248 - <sys-devel/llvm-11:=
249 - >=app-eselect/eselect-dlang-20140709"
250 -DEPEND="${RDEPEND}"
251 -LLVM_MAX_SLOT=10
252 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
253 -
254 -# For now, we support amd64 multilib. Anyone is free to add more support here.
255 -MULTILIB_COMPAT=( abi_x86_{32,64} )
256 -
257 -DLANG_VERSION_RANGE="2.075-"
258 -DLANG_PACKAGE_TYPE="single"
259 -
260 -inherit dlang
261 -
262 -detect_hardened() {
263 - gcc --version | grep -o Hardened
264 -}
265 -
266 -src_prepare() {
267 - cmake_src_prepare
268 -}
269 -
270 -d_src_configure() {
271 - # Make sure libphobos2 is installed into ldc2's directory.
272 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
273 - local mycmakeargs=(
274 - -DD_VERSION=2
275 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
276 - -DD_COMPILER="${DMD}"
277 - -DLDC_WITH_LLD=OFF
278 - )
279 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
280 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
281 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' )
282 - cmake_src_configure
283 -}
284 -
285 -d_src_install() {
286 - cmake_src_install
287 -
288 - rm -rf "${ED}"/usr/share/bash-completion
289 -}
290 -
291 -pkg_postinst() {
292 - # Update active ldc2
293 - "${ROOT}"/usr/bin/eselect dlang update ldc2
294 -}
295 -
296 -pkg_postrm() {
297 - "${ROOT}"/usr/bin/eselect dlang update ldc2
298 -}
299
300 diff --git a/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild
301 deleted file mode 100644
302 index 5a2b5c6..0000000
303 --- a/dev-lang/ldc2/ldc2-1.21.0-r2.ebuild
304 +++ /dev/null
305 @@ -1,81 +0,0 @@
306 -# Copyright 1999-2021 Gentoo Authors
307 -# Distributed under the terms of the GNU General Public License v2
308 -
309 -EAPI=7
310 -
311 -inherit multilib-build cmake llvm
312 -
313 -MY_PV="${PV//_/-}"
314 -MY_P="ldc-${MY_PV}-src"
315 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
316 -S=${WORKDIR}/${MY_P}
317 -
318 -DESCRIPTION="LLVM D Compiler"
319 -HOMEPAGE="https://github.com/ldc-developers/ldc"
320 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
321 -LICENSE="BSD"
322 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
323 -
324 -IUSE="static-libs"
325 -
326 -# We support LLVM 3.9 through 10.
327 -RDEPEND="dev-util/ninja
328 - || (
329 - sys-devel/llvm:10
330 - )
331 - <sys-devel/llvm-11:=
332 - >=app-eselect/eselect-dlang-20140709"
333 -DEPEND="${RDEPEND}"
334 -LLVM_MAX_SLOT=10
335 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
336 -
337 -# For now, we support amd64 multilib. Anyone is free to add more support here.
338 -MULTILIB_COMPAT=( abi_x86_{32,64} )
339 -
340 -DLANG_VERSION_RANGE="2.075-"
341 -DLANG_PACKAGE_TYPE="single"
342 -
343 -inherit dlang
344 -
345 -detect_hardened() {
346 - gcc --version | grep -o Hardened
347 -}
348 -
349 -src_prepare() {
350 - cmake_src_prepare
351 -}
352 -
353 -d_src_configure() {
354 - # Make sure libphobos2 is installed into ldc2's directory.
355 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
356 - local mycmakeargs=(
357 - -DD_VERSION=2
358 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
359 - -DD_COMPILER="${DMD}"
360 - -DLDC_WITH_LLD=OFF
361 - )
362 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
363 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
364 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
365 - cmake_src_configure
366 -}
367 -
368 -d_src_compile()
369 -{
370 - cmake_src_compile
371 -}
372 -
373 -d_src_install() {
374 - cmake_src_install
375 -
376 - rm -rf "${ED}"/usr/share/bash-completion
377 -}
378 -
379 -pkg_postinst() {
380 - # Update active ldc2
381 - "${ROOT}"/usr/bin/eselect dlang update ldc2
382 -}
383 -
384 -pkg_postrm() {
385 - "${ROOT}"/usr/bin/eselect dlang update ldc2
386 -}
387
388 diff --git a/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild
389 deleted file mode 100644
390 index 5a2b5c6..0000000
391 --- a/dev-lang/ldc2/ldc2-1.22.0-r1.ebuild
392 +++ /dev/null
393 @@ -1,81 +0,0 @@
394 -# Copyright 1999-2021 Gentoo Authors
395 -# Distributed under the terms of the GNU General Public License v2
396 -
397 -EAPI=7
398 -
399 -inherit multilib-build cmake llvm
400 -
401 -MY_PV="${PV//_/-}"
402 -MY_P="ldc-${MY_PV}-src"
403 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
404 -S=${WORKDIR}/${MY_P}
405 -
406 -DESCRIPTION="LLVM D Compiler"
407 -HOMEPAGE="https://github.com/ldc-developers/ldc"
408 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
409 -LICENSE="BSD"
410 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
411 -
412 -IUSE="static-libs"
413 -
414 -# We support LLVM 3.9 through 10.
415 -RDEPEND="dev-util/ninja
416 - || (
417 - sys-devel/llvm:10
418 - )
419 - <sys-devel/llvm-11:=
420 - >=app-eselect/eselect-dlang-20140709"
421 -DEPEND="${RDEPEND}"
422 -LLVM_MAX_SLOT=10
423 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
424 -
425 -# For now, we support amd64 multilib. Anyone is free to add more support here.
426 -MULTILIB_COMPAT=( abi_x86_{32,64} )
427 -
428 -DLANG_VERSION_RANGE="2.075-"
429 -DLANG_PACKAGE_TYPE="single"
430 -
431 -inherit dlang
432 -
433 -detect_hardened() {
434 - gcc --version | grep -o Hardened
435 -}
436 -
437 -src_prepare() {
438 - cmake_src_prepare
439 -}
440 -
441 -d_src_configure() {
442 - # Make sure libphobos2 is installed into ldc2's directory.
443 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
444 - local mycmakeargs=(
445 - -DD_VERSION=2
446 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
447 - -DD_COMPILER="${DMD}"
448 - -DLDC_WITH_LLD=OFF
449 - )
450 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
451 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
452 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
453 - cmake_src_configure
454 -}
455 -
456 -d_src_compile()
457 -{
458 - cmake_src_compile
459 -}
460 -
461 -d_src_install() {
462 - cmake_src_install
463 -
464 - rm -rf "${ED}"/usr/share/bash-completion
465 -}
466 -
467 -pkg_postinst() {
468 - # Update active ldc2
469 - "${ROOT}"/usr/bin/eselect dlang update ldc2
470 -}
471 -
472 -pkg_postrm() {
473 - "${ROOT}"/usr/bin/eselect dlang update ldc2
474 -}
475
476 diff --git a/dev-lang/ldc2/ldc2-1.22.0.ebuild b/dev-lang/ldc2/ldc2-1.22.0.ebuild
477 deleted file mode 100644
478 index e79765a..0000000
479 --- a/dev-lang/ldc2/ldc2-1.22.0.ebuild
480 +++ /dev/null
481 @@ -1,75 +0,0 @@
482 -# Copyright 1999-2021 Gentoo Authors
483 -# Distributed under the terms of the GNU General Public License v2
484 -
485 -EAPI=7
486 -
487 -inherit multilib-build cmake llvm
488 -
489 -MY_PV="${PV//_/-}"
490 -MY_P="ldc-${MY_PV}-src"
491 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
492 -S=${WORKDIR}/${MY_P}
493 -
494 -DESCRIPTION="LLVM D Compiler"
495 -HOMEPAGE="https://github.com/ldc-developers/ldc"
496 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
497 -LICENSE="BSD"
498 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
499 -
500 -IUSE="static-libs"
501 -
502 -# We support LLVM 3.9 through 10.
503 -RDEPEND="|| (
504 - sys-devel/llvm:10
505 - )
506 - <sys-devel/llvm-11:=
507 - >=app-eselect/eselect-dlang-20140709"
508 -DEPEND="${RDEPEND}"
509 -LLVM_MAX_SLOT=10
510 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
511 -
512 -# For now, we support amd64 multilib. Anyone is free to add more support here.
513 -MULTILIB_COMPAT=( abi_x86_{32,64} )
514 -
515 -DLANG_VERSION_RANGE="2.075-"
516 -DLANG_PACKAGE_TYPE="single"
517 -
518 -inherit dlang
519 -
520 -detect_hardened() {
521 - gcc --version | grep -o Hardened
522 -}
523 -
524 -src_prepare() {
525 - cmake_src_prepare
526 -}
527 -
528 -d_src_configure() {
529 - # Make sure libphobos2 is installed into ldc2's directory.
530 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
531 - local mycmakeargs=(
532 - -DD_VERSION=2
533 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
534 - -DD_COMPILER="${DMD}"
535 - -DLDC_WITH_LLD=OFF
536 - )
537 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
538 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
539 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' )
540 - cmake_src_configure
541 -}
542 -
543 -d_src_install() {
544 - cmake_src_install
545 -
546 - rm -rf "${ED}"/usr/share/bash-completion
547 -}
548 -
549 -pkg_postinst() {
550 - # Update active ldc2
551 - "${ROOT}"/usr/bin/eselect dlang update ldc2
552 -}
553 -
554 -pkg_postrm() {
555 - "${ROOT}"/usr/bin/eselect dlang update ldc2
556 -}
557
558 diff --git a/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild
559 deleted file mode 100644
560 index 322787b..0000000
561 --- a/dev-lang/ldc2/ldc2-1.23.0-r1.ebuild
562 +++ /dev/null
563 @@ -1,81 +0,0 @@
564 -# Copyright 1999-2021 Gentoo Authors
565 -# Distributed under the terms of the GNU General Public License v2
566 -
567 -EAPI=7
568 -
569 -inherit multilib-build cmake llvm
570 -
571 -MY_PV="${PV//_/-}"
572 -MY_P="ldc-${MY_PV}-src"
573 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
574 -S=${WORKDIR}/${MY_P}
575 -
576 -DESCRIPTION="LLVM D Compiler"
577 -HOMEPAGE="https://github.com/ldc-developers/ldc"
578 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
579 -LICENSE="BSD"
580 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
581 -
582 -IUSE="static-libs"
583 -
584 -# We support LLVM 6.0 through 10.
585 -RDEPEND="dev-util/ninja
586 - || (
587 - sys-devel/llvm:10
588 - )
589 - <sys-devel/llvm-11:=
590 - >=app-eselect/eselect-dlang-20140709"
591 -DEPEND="${RDEPEND}"
592 -LLVM_MAX_SLOT=10
593 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
594 -
595 -# For now, we support amd64 multilib. Anyone is free to add more support here.
596 -MULTILIB_COMPAT=( abi_x86_{32,64} )
597 -
598 -DLANG_VERSION_RANGE="2.075-"
599 -DLANG_PACKAGE_TYPE="single"
600 -
601 -inherit dlang
602 -
603 -detect_hardened() {
604 - gcc --version | grep -o Hardened
605 -}
606 -
607 -src_prepare() {
608 - cmake_src_prepare
609 -}
610 -
611 -d_src_configure() {
612 - # Make sure libphobos2 is installed into ldc2's directory.
613 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
614 - local mycmakeargs=(
615 - -DD_VERSION=2
616 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
617 - -DD_COMPILER="${DMD}"
618 - -DLDC_WITH_LLD=OFF
619 - )
620 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
621 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
622 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
623 - cmake_src_configure
624 -}
625 -
626 -d_src_compile()
627 -{
628 - cmake_src_compile
629 -}
630 -
631 -d_src_install() {
632 - cmake_src_install
633 -
634 - rm -rf "${ED}"/usr/share/bash-completion
635 -}
636 -
637 -pkg_postinst() {
638 - # Update active ldc2
639 - "${ROOT}"/usr/bin/eselect dlang update ldc2
640 -}
641 -
642 -pkg_postrm() {
643 - "${ROOT}"/usr/bin/eselect dlang update ldc2
644 -}
645
646 diff --git a/dev-lang/ldc2/ldc2-1.23.0.ebuild b/dev-lang/ldc2/ldc2-1.23.0.ebuild
647 deleted file mode 100644
648 index 965d16c..0000000
649 --- a/dev-lang/ldc2/ldc2-1.23.0.ebuild
650 +++ /dev/null
651 @@ -1,75 +0,0 @@
652 -# Copyright 1999-2021 Gentoo Authors
653 -# Distributed under the terms of the GNU General Public License v2
654 -
655 -EAPI=7
656 -
657 -inherit multilib-build cmake llvm
658 -
659 -MY_PV="${PV//_/-}"
660 -MY_P="ldc-${MY_PV}-src"
661 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
662 -S=${WORKDIR}/${MY_P}
663 -
664 -DESCRIPTION="LLVM D Compiler"
665 -HOMEPAGE="https://github.com/ldc-developers/ldc"
666 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
667 -LICENSE="BSD"
668 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
669 -
670 -IUSE="static-libs"
671 -
672 -# We support LLVM 6.0 through 10.
673 -RDEPEND="|| (
674 - sys-devel/llvm:10
675 - )
676 - <sys-devel/llvm-11:=
677 - >=app-eselect/eselect-dlang-20140709"
678 -DEPEND="${RDEPEND}"
679 -LLVM_MAX_SLOT=10
680 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
681 -
682 -# For now, we support amd64 multilib. Anyone is free to add more support here.
683 -MULTILIB_COMPAT=( abi_x86_{32,64} )
684 -
685 -DLANG_VERSION_RANGE="2.075-"
686 -DLANG_PACKAGE_TYPE="single"
687 -
688 -inherit dlang
689 -
690 -detect_hardened() {
691 - gcc --version | grep -o Hardened
692 -}
693 -
694 -src_prepare() {
695 - cmake_src_prepare
696 -}
697 -
698 -d_src_configure() {
699 - # Make sure libphobos2 is installed into ldc2's directory.
700 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
701 - local mycmakeargs=(
702 - -DD_VERSION=2
703 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
704 - -DD_COMPILER="${DMD}"
705 - -DLDC_WITH_LLD=OFF
706 - )
707 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
708 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
709 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' )
710 - cmake_src_configure
711 -}
712 -
713 -d_src_install() {
714 - cmake_src_install
715 -
716 - rm -rf "${ED}"/usr/share/bash-completion
717 -}
718 -
719 -pkg_postinst() {
720 - # Update active ldc2
721 - "${ROOT}"/usr/bin/eselect dlang update ldc2
722 -}
723 -
724 -pkg_postrm() {
725 - "${ROOT}"/usr/bin/eselect dlang update ldc2
726 -}
727
728 diff --git a/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild
729 deleted file mode 100644
730 index 322787b..0000000
731 --- a/dev-lang/ldc2/ldc2-1.24.0-r1.ebuild
732 +++ /dev/null
733 @@ -1,81 +0,0 @@
734 -# Copyright 1999-2021 Gentoo Authors
735 -# Distributed under the terms of the GNU General Public License v2
736 -
737 -EAPI=7
738 -
739 -inherit multilib-build cmake llvm
740 -
741 -MY_PV="${PV//_/-}"
742 -MY_P="ldc-${MY_PV}-src"
743 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
744 -S=${WORKDIR}/${MY_P}
745 -
746 -DESCRIPTION="LLVM D Compiler"
747 -HOMEPAGE="https://github.com/ldc-developers/ldc"
748 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
749 -LICENSE="BSD"
750 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
751 -
752 -IUSE="static-libs"
753 -
754 -# We support LLVM 6.0 through 10.
755 -RDEPEND="dev-util/ninja
756 - || (
757 - sys-devel/llvm:10
758 - )
759 - <sys-devel/llvm-11:=
760 - >=app-eselect/eselect-dlang-20140709"
761 -DEPEND="${RDEPEND}"
762 -LLVM_MAX_SLOT=10
763 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
764 -
765 -# For now, we support amd64 multilib. Anyone is free to add more support here.
766 -MULTILIB_COMPAT=( abi_x86_{32,64} )
767 -
768 -DLANG_VERSION_RANGE="2.075-"
769 -DLANG_PACKAGE_TYPE="single"
770 -
771 -inherit dlang
772 -
773 -detect_hardened() {
774 - gcc --version | grep -o Hardened
775 -}
776 -
777 -src_prepare() {
778 - cmake_src_prepare
779 -}
780 -
781 -d_src_configure() {
782 - # Make sure libphobos2 is installed into ldc2's directory.
783 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
784 - local mycmakeargs=(
785 - -DD_VERSION=2
786 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
787 - -DD_COMPILER="${DMD}"
788 - -DLDC_WITH_LLD=OFF
789 - )
790 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
791 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
792 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
793 - cmake_src_configure
794 -}
795 -
796 -d_src_compile()
797 -{
798 - cmake_src_compile
799 -}
800 -
801 -d_src_install() {
802 - cmake_src_install
803 -
804 - rm -rf "${ED}"/usr/share/bash-completion
805 -}
806 -
807 -pkg_postinst() {
808 - # Update active ldc2
809 - "${ROOT}"/usr/bin/eselect dlang update ldc2
810 -}
811 -
812 -pkg_postrm() {
813 - "${ROOT}"/usr/bin/eselect dlang update ldc2
814 -}
815
816 diff --git a/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
817 index 181f1b5..3efe36f 100644
818 --- a/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
819 +++ b/dev-lang/ldc2/ldc2-1.24.0-r2.ebuild
820 @@ -21,7 +21,6 @@ IUSE="static-libs"
821 # We support LLVM 6.0 through 10.
822 RDEPEND="dev-util/ninja
823 || (
824 - sys-devel/llvm:10
825 sys-devel/llvm:11
826 )
827 <sys-devel/llvm-12:=
828
829 diff --git a/dev-lang/ldc2/ldc2-1.24.0.ebuild b/dev-lang/ldc2/ldc2-1.24.0.ebuild
830 deleted file mode 100644
831 index 965d16c..0000000
832 --- a/dev-lang/ldc2/ldc2-1.24.0.ebuild
833 +++ /dev/null
834 @@ -1,75 +0,0 @@
835 -# Copyright 1999-2021 Gentoo Authors
836 -# Distributed under the terms of the GNU General Public License v2
837 -
838 -EAPI=7
839 -
840 -inherit multilib-build cmake llvm
841 -
842 -MY_PV="${PV//_/-}"
843 -MY_P="ldc-${MY_PV}-src"
844 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
845 -S=${WORKDIR}/${MY_P}
846 -
847 -DESCRIPTION="LLVM D Compiler"
848 -HOMEPAGE="https://github.com/ldc-developers/ldc"
849 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
850 -LICENSE="BSD"
851 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
852 -
853 -IUSE="static-libs"
854 -
855 -# We support LLVM 6.0 through 10.
856 -RDEPEND="|| (
857 - sys-devel/llvm:10
858 - )
859 - <sys-devel/llvm-11:=
860 - >=app-eselect/eselect-dlang-20140709"
861 -DEPEND="${RDEPEND}"
862 -LLVM_MAX_SLOT=10
863 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
864 -
865 -# For now, we support amd64 multilib. Anyone is free to add more support here.
866 -MULTILIB_COMPAT=( abi_x86_{32,64} )
867 -
868 -DLANG_VERSION_RANGE="2.075-"
869 -DLANG_PACKAGE_TYPE="single"
870 -
871 -inherit dlang
872 -
873 -detect_hardened() {
874 - gcc --version | grep -o Hardened
875 -}
876 -
877 -src_prepare() {
878 - cmake_src_prepare
879 -}
880 -
881 -d_src_configure() {
882 - # Make sure libphobos2 is installed into ldc2's directory.
883 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
884 - local mycmakeargs=(
885 - -DD_VERSION=2
886 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
887 - -DD_COMPILER="${DMD}"
888 - -DLDC_WITH_LLD=OFF
889 - )
890 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
891 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
892 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=', "-relocation-model=pic"' )
893 - cmake_src_configure
894 -}
895 -
896 -d_src_install() {
897 - cmake_src_install
898 -
899 - rm -rf "${ED}"/usr/share/bash-completion
900 -}
901 -
902 -pkg_postinst() {
903 - # Update active ldc2
904 - "${ROOT}"/usr/bin/eselect dlang update ldc2
905 -}
906 -
907 -pkg_postrm() {
908 - "${ROOT}"/usr/bin/eselect dlang update ldc2
909 -}
910
911 diff --git a/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
912 index 1171863..a68973a 100644
913 --- a/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
914 +++ b/dev-lang/ldc2/ldc2-1.25.1-r1.ebuild
915 @@ -21,7 +21,6 @@ IUSE="static-libs"
916 # We support LLVM 6.0 through 10.
917 RDEPEND="dev-util/ninja
918 || (
919 - sys-devel/llvm:10
920 sys-devel/llvm:11
921 sys-devel/llvm:12
922 )
923
924 diff --git a/dev-lang/ldc2/ldc2-1.25.1.ebuild b/dev-lang/ldc2/ldc2-1.25.1.ebuild
925 deleted file mode 100644
926 index 322787b..0000000
927 --- a/dev-lang/ldc2/ldc2-1.25.1.ebuild
928 +++ /dev/null
929 @@ -1,81 +0,0 @@
930 -# Copyright 1999-2021 Gentoo Authors
931 -# Distributed under the terms of the GNU General Public License v2
932 -
933 -EAPI=7
934 -
935 -inherit multilib-build cmake llvm
936 -
937 -MY_PV="${PV//_/-}"
938 -MY_P="ldc-${MY_PV}-src"
939 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
940 -S=${WORKDIR}/${MY_P}
941 -
942 -DESCRIPTION="LLVM D Compiler"
943 -HOMEPAGE="https://github.com/ldc-developers/ldc"
944 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
945 -LICENSE="BSD"
946 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
947 -
948 -IUSE="static-libs"
949 -
950 -# We support LLVM 6.0 through 10.
951 -RDEPEND="dev-util/ninja
952 - || (
953 - sys-devel/llvm:10
954 - )
955 - <sys-devel/llvm-11:=
956 - >=app-eselect/eselect-dlang-20140709"
957 -DEPEND="${RDEPEND}"
958 -LLVM_MAX_SLOT=10
959 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
960 -
961 -# For now, we support amd64 multilib. Anyone is free to add more support here.
962 -MULTILIB_COMPAT=( abi_x86_{32,64} )
963 -
964 -DLANG_VERSION_RANGE="2.075-"
965 -DLANG_PACKAGE_TYPE="single"
966 -
967 -inherit dlang
968 -
969 -detect_hardened() {
970 - gcc --version | grep -o Hardened
971 -}
972 -
973 -src_prepare() {
974 - cmake_src_prepare
975 -}
976 -
977 -d_src_configure() {
978 - # Make sure libphobos2 is installed into ldc2's directory.
979 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
980 - local mycmakeargs=(
981 - -DD_VERSION=2
982 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
983 - -DD_COMPILER="${DMD}"
984 - -DLDC_WITH_LLD=OFF
985 - )
986 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
987 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
988 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
989 - cmake_src_configure
990 -}
991 -
992 -d_src_compile()
993 -{
994 - cmake_src_compile
995 -}
996 -
997 -d_src_install() {
998 - cmake_src_install
999 -
1000 - rm -rf "${ED}"/usr/share/bash-completion
1001 -}
1002 -
1003 -pkg_postinst() {
1004 - # Update active ldc2
1005 - "${ROOT}"/usr/bin/eselect dlang update ldc2
1006 -}
1007 -
1008 -pkg_postrm() {
1009 - "${ROOT}"/usr/bin/eselect dlang update ldc2
1010 -}
1011
1012 diff --git a/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
1013 index 1171863..a68973a 100644
1014 --- a/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
1015 +++ b/dev-lang/ldc2/ldc2-1.26.0-r1.ebuild
1016 @@ -21,7 +21,6 @@ IUSE="static-libs"
1017 # We support LLVM 6.0 through 10.
1018 RDEPEND="dev-util/ninja
1019 || (
1020 - sys-devel/llvm:10
1021 sys-devel/llvm:11
1022 sys-devel/llvm:12
1023 )
1024
1025 diff --git a/dev-lang/ldc2/ldc2-1.26.0.ebuild b/dev-lang/ldc2/ldc2-1.26.0.ebuild
1026 deleted file mode 100644
1027 index 322787b..0000000
1028 --- a/dev-lang/ldc2/ldc2-1.26.0.ebuild
1029 +++ /dev/null
1030 @@ -1,81 +0,0 @@
1031 -# Copyright 1999-2021 Gentoo Authors
1032 -# Distributed under the terms of the GNU General Public License v2
1033 -
1034 -EAPI=7
1035 -
1036 -inherit multilib-build cmake llvm
1037 -
1038 -MY_PV="${PV//_/-}"
1039 -MY_P="ldc-${MY_PV}-src"
1040 -SRC_URI="https://github.com/ldc-developers/ldc/releases/download/v${MY_PV}/${MY_P}.tar.gz"
1041 -S=${WORKDIR}/${MY_P}
1042 -
1043 -DESCRIPTION="LLVM D Compiler"
1044 -HOMEPAGE="https://github.com/ldc-developers/ldc"
1045 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
1046 -LICENSE="BSD"
1047 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
1048 -
1049 -IUSE="static-libs"
1050 -
1051 -# We support LLVM 6.0 through 10.
1052 -RDEPEND="dev-util/ninja
1053 - || (
1054 - sys-devel/llvm:10
1055 - )
1056 - <sys-devel/llvm-11:=
1057 - >=app-eselect/eselect-dlang-20140709"
1058 -DEPEND="${RDEPEND}"
1059 -LLVM_MAX_SLOT=10
1060 -PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch"
1061 -
1062 -# For now, we support amd64 multilib. Anyone is free to add more support here.
1063 -MULTILIB_COMPAT=( abi_x86_{32,64} )
1064 -
1065 -DLANG_VERSION_RANGE="2.075-"
1066 -DLANG_PACKAGE_TYPE="single"
1067 -
1068 -inherit dlang
1069 -
1070 -detect_hardened() {
1071 - gcc --version | grep -o Hardened
1072 -}
1073 -
1074 -src_prepare() {
1075 - cmake_src_prepare
1076 -}
1077 -
1078 -d_src_configure() {
1079 - # Make sure libphobos2 is installed into ldc2's directory.
1080 - export LIBDIR_${ABI}="${LIBDIR_HOST}"
1081 - local mycmakeargs=(
1082 - -DD_VERSION=2
1083 - -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
1084 - -DD_COMPILER="${DMD}"
1085 - -DLDC_WITH_LLD=OFF
1086 - )
1087 - use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
1088 - use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON )
1089 - detect_hardened && mycmakeargs+=( -DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-relocation-model=pic",' )
1090 - cmake_src_configure
1091 -}
1092 -
1093 -d_src_compile()
1094 -{
1095 - cmake_src_compile
1096 -}
1097 -
1098 -d_src_install() {
1099 - cmake_src_install
1100 -
1101 - rm -rf "${ED}"/usr/share/bash-completion
1102 -}
1103 -
1104 -pkg_postinst() {
1105 - # Update active ldc2
1106 - "${ROOT}"/usr/bin/eselect dlang update ldc2
1107 -}
1108 -
1109 -pkg_postrm() {
1110 - "${ROOT}"/usr/bin/eselect dlang update ldc2
1111 -}
1112
1113 diff --git a/eclass/dlang-compilers.eclass b/eclass/dlang-compilers.eclass
1114 index f74b9a4..8810153 100644
1115 --- a/eclass/dlang-compilers.eclass
1116 +++ b/eclass/dlang-compilers.eclass
1117 @@ -57,10 +57,6 @@ dlang-compilers_declare_versions() {
1118
1119 # LDC
1120 __dlang_ldc2_frontend=(
1121 - ["1.20"]="2.090 amd64 ~arm ~arm64 ~ppc64 x86"
1122 - ["1.21"]="2.091 amd64 ~arm ~arm64 ~ppc64 x86"
1123 - ["1.22"]="2.092 amd64 ~arm ~arm64 ~ppc64 x86"
1124 - ["1.23"]="2.093 amd64 ~arm ~arm64 ~ppc64 x86"
1125 ["1.24"]="2.094 amd64 ~arm ~arm64 ~ppc64 x86"
1126 ["1.25"]="2.095 ~amd64 ~arm ~arm64 ~ppc64 ~x86"
1127 ["1.26"]="2.096 ~amd64 ~arm ~arm64 ~ppc64 ~x86"