* [gentoo-commits] repo/user/dlang:master commit in: eclass/, dev-util/dlang-tools/, dev-lang/dmd/, dev-util/dub/, ...
@ 2020-04-06 2:42 Marco Leise
0 siblings, 0 replies; only message in thread
From: Marco Leise @ 2020-04-06 2:42 UTC (permalink / raw
To: gentoo-commits
commit: d2fd5250b3f515d43ecd6cfeeef88c47753d8df3
Author: Marco Leise <marco.leise <AT> gmx <DOT> de>
AuthorDate: Mon Mar 9 15:38:02 2020 +0000
Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
CommitDate: Mon Mar 9 15:38:02 2020 +0000
URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=d2fd5250
dmd-2.091.0 & dub-1.20.0
Signed-off-by: Marco Leise <marco.leise <AT> gmx.de>
dev-lang/dmd/Manifest | 1 +
dev-lang/dmd/dmd-2.091.0.ebuild | 20 ++++++++
dev-util/dlang-tools/Manifest | 1 +
dev-util/dlang-tools/dlang-tools-2.091.0.ebuild | 54 ++++++++++++++++++++++
dev-util/dub/Manifest | 1 +
dev-util/dub/dub-1.20.0.ebuild | 39 ++++++++++++++++
.../dub/files/dub-1.20.0-gdc-dmd-pathfix.patch | 16 +++++++
eclass/dmd.eclass | 2 +-
8 files changed, 133 insertions(+), 1 deletion(-)
diff --git a/dev-lang/dmd/Manifest b/dev-lang/dmd/Manifest
index 59563b3..0e27663 100644
--- a/dev-lang/dmd/Manifest
+++ b/dev-lang/dmd/Manifest
@@ -27,3 +27,4 @@ DIST dmd.2.088.1.linux.tar.xz 25122116 BLAKE2B e573a97cf9f547a3017a0b904523f4877
DIST dmd.2.089.1.linux.tar.xz 25877024 BLAKE2B 38fdbac595a6d9ea7548ee331aacefec530594be750a1b3dbfad7af8a5e310d6fb5e774106adfaa0d0c33cfec8e94c7a29f4c3c5c3088cc827f6ccd8a3472e56 SHA512 8a5343060d7f28394be81d8732997d96a23522c87912f2c8d0979375297467068d093ab4ef2b92b0ce8be941b5c65061660eef8d1e9252c626197014ac4331a9
DIST dmd.2.090.0.linux.tar.xz 25586392 BLAKE2B ca07a292dd27766b6ce08423bf3f943b177cae7393f3d5e3f5322b694fb40852b4deb6fbc90c68506f52a2be6b39a2bc1003da186247dcbdd9f80f066091fd19 SHA512 bdfa7a9b6c41aad1555e36469746bf1d5c567ec59b291ea5c8d03597677bcbb3d0fa7f3649242494fd6021681343601418ccbbe4be0667ab87b58ee77a903468
DIST dmd.2.090.1.linux.tar.xz 25595804 BLAKE2B addd21fc482aa90d816593312aa6490949e54c3f8f36989eec193e9b09412022afe5d1f7006153f9b258a2c96fed9266ef5a9a94ca9c999cbc3ec1230937dec8 SHA512 ebc769d9c4c784b7e59730606e57bbde8dbfaea07be2492a0e475e0818f0ef4aaf3cb2bc8b1be066cc14479d9a3dd0d9655e0b0025c79383dbbbe9b2f2caf04f
+DIST dmd.2.091.0.linux.tar.xz 24161356 BLAKE2B 4604b9398afd5648fbee3ee26a6c48b1219cc24ee27f601e42820f83956ee7577c178487e4c71721b6730f1ae802c290f8887e416112ae974af56951d7e920d3 SHA512 2ac90f267f58a561553abfd7ddb9214f743b846758fcb0cb1439aea790da2a6dcb2ead7b5d2c2c7012c516bae92b0183596ba52aa070e89a5ef1a2c1d597982c
diff --git a/dev-lang/dmd/dmd-2.091.0.ebuild b/dev-lang/dmd/dmd-2.091.0.ebuild
new file mode 100644
index 0000000..6b582a8
--- /dev/null
+++ b/dev-lang/dmd/dmd-2.091.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KEYWORDS="-* ~amd64 ~x86"
+YEAR=2020
+DLANG_VERSION_RANGE="2.076-"
+
+inherit dmd
+
+PATCHES=(
+ "${FILESDIR}/2.083-link-32-bit-shared-lib-with-ld.bfd.patch"
+)
+
+dmd_src_prepare_extra() {
+ # Copy default DDOC theme file into resource directory
+ mkdir "dmd/res" || die "Failed to create 'dmd/res' directory"
+ cp "${FILESDIR}/2.086-default_ddoc_theme.ddoc" "dmd/res/default_ddoc_theme.ddoc" || die "Failed to copy 'default_ddoc_theme.ddoc' file into 'src/res' directory."
+}
diff --git a/dev-util/dlang-tools/Manifest b/dev-util/dlang-tools/Manifest
index b430718..8a0b8b7 100644
--- a/dev-util/dlang-tools/Manifest
+++ b/dev-util/dlang-tools/Manifest
@@ -26,6 +26,7 @@ DIST dlang-tools-2.088.1.tar.gz 117104 BLAKE2B 2920cb8950fb0e921665bab161584c35a
DIST dlang-tools-2.089.1.tar.gz 117693 BLAKE2B 6e499fd01bda7a58036b08f30319549ca2c786ea348ac93d045019fde745a3b30179af0d7c3999af8bd09f15d86876e43927cf069a70dc5120ebc08eb82a84c3 SHA512 ffc1eb9d42f167d2a519a052fdc87fb3db576d9b549dac80c993859f597dfbc492e783129b9c94dc664e33817bacf09b040d0cb2efbc679971ba768163eb4e42
DIST dlang-tools-2.090.0.tar.gz 117713 BLAKE2B efe720acfa306f6dc29e42ff13d23c3298aeed00429913b962b246143c688b4d839936e859c07d4d624430a5043c69205aef363face14875292ee52d968f6006 SHA512 b861fc11fe7ed105439984c79001fdef63da4d03fe751f0b43eb478a38afeab3599ffb41f39451faea71e4bb44e3d871a9ce41d45d8e19f4e59d5565efd6264e
DIST dlang-tools-2.090.1.tar.gz 117709 BLAKE2B 8a714a5bd6860bf4a856fbbde2a7188b404b819e11f9ed815688b9acb5fa6e95a95c0fb4aa407495da89a0e3b19dba584be1d90f3c60c2af95090d6e81f221d6 SHA512 82f6d3fd4a7f6fd013425894ec5f817c960764479649c97139a019802fc5c2a83671102f1b2a9427e88446055e5a1a4fa884a4b86400a84107b2d5ca322b7a32
+DIST dlang-tools-2.091.0.tar.gz 117712 BLAKE2B af1ccb162f5e2a9c95bf5e5b879ff670cadd1ac8fd4320c168745f40c1d57c5711348dbfda4a6a6cacede1c332b9878a46b6d1ac565792395181a01f727550b8 SHA512 b484074e22b7f7a6a6f1cc3cd184d5373474808eba1b195c275858905273335d033ed02b7b1fc993ecc6ef42d91fc1b3f2fc1ee32d5d2497ed7c992b46d13100
DIST dlang.org-2.064.2.tar.gz 963131 BLAKE2B a7cf0d43a1cd531722bda717882a34e01c0186f0832a12064bf0600aede0a0913190724011f0b13c76cf794434e1c82490f48e9fda66409aa2820adc7c8a40f9 SHA512 a1284955764385539dcd8949cd851100af9be47908e85d8cfd897d6409903763919dc082fc0ca88fbaaf49647168357656aee82717a375ed45407eb15ccd44cf
DIST dlang.org-2.065.0.tar.gz 1005429 BLAKE2B 01fc8ec0c5148f910e2923be556208c08a18f00453ffa1f1a22d6725db6489b6f9022cd170caa3a05078baddde353ee819984da5efa53547e78006d2f0a97b9c SHA512 0fb185603766b54c3b9dc57824b18ec7ea9f37281610729860543630f4546591f9523bff48eee5414235d2ee656201c444e6d2efc44ba66a052b98a0d9b4729e
DIST dlang.org-2.066.1.tar.gz 1024075 BLAKE2B cfdb4922c38d9f0ced941eeb4578d71f09d65201d2f89cfc73e46ae73f0939c74fa92d7f003b87a28f814c5b2cc0dda6855b86e64fd86be3920c129f8c20df6a SHA512 d3838cc2ab6236d57c17f92fa5eaef8458176715985aecbea9653cc772725e1b9f813c9ffc8e06490e08c1031826ab84d1fcfbd88008791cac3257db814e3dc8
diff --git a/dev-util/dlang-tools/dlang-tools-2.091.0.ebuild b/dev-util/dlang-tools/dlang-tools-2.091.0.ebuild
new file mode 100644
index 0000000..6b8a8e1
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.091.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Ancilliary tools for the D programming language compiler"
+HOMEPAGE="http://dlang.org/"
+LICENSE="Boost-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+TOOLS="ddemangle detab dustmite rdmd"
+IUSE="+ddemangle detab dustmite +rdmd"
+REQUIRED_USE="|| ( ${TOOLS} )"
+
+inherit eapi7-ver
+
+DLANG_SLOT="$(ver_cut 1-2)"
+RESTRICT="mirror"
+
+BETA="$(ver_cut 4)"
+VERSION="$(ver_cut 1-3)"
+
+if [[ -n "${BETA}" ]]; then
+ VERSION="${VERSION}-b${BETA:4}"
+fi
+SRC_URI="https://codeload.github.com/dlang/tools/tar.gz/v${VERSION} -> dlang-tools-${VERSION}.tar.gz"
+
+DLANG_VERSION_RANGE="2.076-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit eutils dlang
+
+S="${WORKDIR}/tools-${VERSION}"
+
+d_src_compile() {
+ use ddemangle && dlang_compile_bin ddemangle ddemangle.d
+ use detab && dlang_compile_bin detab detab.d
+ use dustmite && dlang_compile_bin dustmite DustMite/dustmite.d DustMite/splitter.d
+ use rdmd && dlang_compile_bin rdmd rdmd.d
+}
+
+d_src_install() {
+ for tool in ${TOOLS}; do
+ if use "${tool}"; then
+ dobin "${tool}"
+ fi
+ done
+
+ # file icons
+ for size in 16 22 24 32 48 256; do
+ newicon --size "${size}" --context mimetypes "${FILESDIR}/icons/${size}/dmd-source.png" text-x-dsrc.png
+ done
+}
diff --git a/dev-util/dub/Manifest b/dev-util/dub/Manifest
index 89ddd6c..8cac731 100644
--- a/dev-util/dub/Manifest
+++ b/dev-util/dub/Manifest
@@ -1 +1,2 @@
DIST dub-1.19.0.tar.gz 1283024 BLAKE2B 7deace0bf350e5f9b1f3fd6570c41ccb48dcf80cd501ec9bcea8b0e0737f16177eaefa0b34eba9b947283e77fd80c7f5d84dcc46904ebecdce50b1d73928a3ec SHA512 65e31f967939914790e65515fc460510336857aa6273db1a8e75681bf1182d25019f70ca050aa221679e9ccdd10edd3757f1629cd0686af6b584c8439057edc8
+DIST dub-1.20.0.tar.gz 1270037 BLAKE2B 33da3da316c2fc2b51b3d0febfd47c7f48e866195b47c6acbe621f46898f72961f78ec4b3cc61d0274f29b51378da77f2e0278b40ddaa8bca2296c4c8df7c6a8 SHA512 4ad750ab8b968005d1510f1ab6125d8167c67e1d2374b0f7df4d3624139430fedfa45d88b0ded64577981e0ffd863554eb4ee2b736eb22354d5ace4b0da589a8
diff --git a/dev-util/dub/dub-1.20.0.ebuild b/dev-util/dub/dub-1.20.0.ebuild
new file mode 100644
index 0000000..23205f6
--- /dev/null
+++ b/dev-util/dub/dub-1.20.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Package and build management system for D"
+HOMEPAGE="http://code.dlang.org/"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug"
+
+GITHUB_URI="https://codeload.github.com/dlang"
+SRC_URI="${GITHUB_URI}/${PN}/tar.gz/v${PV} -> ${PN}-${PV}.tar.gz"
+PATCHES="${FILESDIR}/${P}-gdc-dmd-pathfix.patch"
+
+DLANG_VERSION_RANGE="2.076-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit dlang
+
+DEPEND="net-misc/curl"
+RDEPEND="${DEPEND}"
+
+d_src_compile() {
+ local imports=source versions="DubApplication DubUseCurl" libs="curl z"
+ dlang_compile_bin bin/dub $(<build-files.txt)
+}
+
+d_src_test() {
+ echo "Test phase disabled due to multiple problems."
+ #DUB="${S}/bin/dub" test/run-unittest.sh || die "Test phase failed"
+}
+
+d_src_install() {
+ dobin bin/dub
+ dodoc README.md
+}
diff --git a/dev-util/dub/files/dub-1.20.0-gdc-dmd-pathfix.patch b/dev-util/dub/files/dub-1.20.0-gdc-dmd-pathfix.patch
new file mode 100644
index 0000000..497ef50
--- /dev/null
+++ b/dev-util/dub/files/dub-1.20.0-gdc-dmd-pathfix.patch
@@ -0,0 +1,16 @@
+diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d
+--- a/source/dub/generators/build.d
++++ b/source/dub/generators/build.d
+@@ -119,10 +119,10 @@ class BuildGenerator : ProjectGenerator {
+ auto build_id = computeBuildID(config, buildsettings, settings);
+
+ // make all paths relative to shrink the command line
+- string makeRelative(string path) { return shrinkPath(NativePath(path), cwd); }
++ /+string makeRelative(string path) { return shrinkPath(NativePath(path), cwd); }
+ foreach (ref f; buildsettings.sourceFiles) f = makeRelative(f);
+ foreach (ref p; buildsettings.importPaths) p = makeRelative(p);
+- foreach (ref p; buildsettings.stringImportPaths) p = makeRelative(p);
++ foreach (ref p; buildsettings.stringImportPaths) p = makeRelative(p);+/
+
+ // perform the actual build
+ bool cached = false;
diff --git a/eclass/dmd.eclass b/eclass/dmd.eclass
index 18d260f..c77ece4 100644
--- a/eclass/dmd.eclass
+++ b/eclass/dmd.eclass
@@ -130,7 +130,7 @@ dmd_src_compile() {
dmd_ge 2.071 && HOST_CXX="HOST_CXX" || HOST_CXX="HOST_CC"
# 2.072 and 2.073 have support for LTO, but would need a Makefile patch.
# From 2.088 on, the build fails with it active.
- dmd_ge 2.074 && ! dmd_eq 2.088 && ! dmd_eq 2.089 && ! dmd_eq 2.090 && LTO="ENABLE_LTO=1"
+ dmd_ge 2.074 && ! dmd_eq 2.088 && ! dmd_eq 2.089 && ! dmd_eq 2.090 && ! dmd_eq 2.091 && LTO="ENABLE_LTO=1"
# 2.080 and below used RELEASE instead of ENABLE_RELEASE
dmd_ge 2.081 && ENABLE_RELEASE="ENABLE_RELEASE" || ENABLE_RELEASE="RELEASE"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-06 2:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 2:42 [gentoo-commits] repo/user/dlang:master commit in: eclass/, dev-util/dlang-tools/, dev-lang/dmd/, dev-util/dub/, Marco Leise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox