aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2019-09-27 17:48:05 +0200
committerMarco Leise <marco.leise@gmx.de>2019-09-27 17:48:05 +0200
commitf8e7b7c0cebeccef364e2da597e76c42669364b3 (patch)
tree2a4aefafdde924749c80e0539fd37387b59d0963 /dev-util
parentonedrive-2.3.9 (diff)
downloaddlang-f8e7b7c0cebeccef364e2da597e76c42669364b3.tar.gz
dlang-f8e7b7c0cebeccef364e2da597e76c42669364b3.tar.bz2
dlang-f8e7b7c0cebeccef364e2da597e76c42669364b3.zip
dmd-2.088 & dub-1.17
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dlang-tools/Manifest1
-rw-r--r--dev-util/dlang-tools/dlang-tools-2.088.0.ebuild54
-rw-r--r--dev-util/dub/Manifest1
-rw-r--r--dev-util/dub/dub-1.17.0.ebuild39
-rw-r--r--dev-util/dub/files/dub-1.17.0-gdc-dmd-pathfix.patch16
5 files changed, 111 insertions, 0 deletions
diff --git a/dev-util/dlang-tools/Manifest b/dev-util/dlang-tools/Manifest
index 96bc079..19538e5 100644
--- a/dev-util/dlang-tools/Manifest
+++ b/dev-util/dlang-tools/Manifest
@@ -22,6 +22,7 @@ DIST dlang-tools-2.084.1.tar.gz 113129 BLAKE2B eaa013e5d4c05561d3c91a2b597b3cc98
DIST dlang-tools-2.085.1.tar.gz 116351 BLAKE2B 0d5f0b1bcd4b7f98eeac6ca2214789b3c0c76617f7982df7dc1efcc18f25d322899f55a27c4556a4d742c60e7f484a57b50f066b88dc1a2697b99066a94c7a90 SHA512 8149d0f38d000012eab18c2bb85ff6f0d1f9211fd367684b6efe507e24fbca9c773a7b51c89195a37f4d12995d7005d9a7f4aadbaf402ecd7ba2db7bc4499903
DIST dlang-tools-2.086.1.tar.gz 116540 BLAKE2B 5a2e19f72fd8dd608e15dd5d5d4d6fe2296d7308fb926a064b1a438d8a698141e1acf0c9a829f65612e48d4b5b4c28336f8f3dc59b1a68cc856db13b80b1ee9d SHA512 9cb59613e43c31fcab4807451a6cb434226d3a0ff5ee9239f6d83fbceab8ef112dcf63e1545d93fb59980fccb55ee120aa0a724e18405b83efff7c913d229ef8
DIST dlang-tools-2.087.1.tar.gz 117096 BLAKE2B 3384882ff647c459d2a2380d35cf355eaeb0828d0b965ce4aa2bc7b8652662b3f38b137b01f60d33df0400982ec1c96a1d2d3b6363ccbfe4f52d01d88dccbb93 SHA512 af5adf9971ed818ca93f7d0e462d7d3f91920caacc77c4b26cc828ef00ee28ee2bb56574c4c7f8692853af2e2d32495e49bf1fca4956652df4452eac099b52cd
+DIST dlang-tools-2.088.0.tar.gz 117098 BLAKE2B 1b202aa34c0a0d34a9b415cd450da2310cb0d4fbf4d32c4ebe9d6d56dbff6534e026cb7260cfed68630be21b118c79c953109818948afc543b1bb075d9cee250 SHA512 767fa0e7c66a5e1932d96c2fadc49846db623501c62a59c3679e1c76a21154a9e03fa5d4ca9acecf8ef0bcb4c7f4e252a271e9f474b34627a28a6e643b8aeb7d
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.088.0.ebuild b/dev-util/dlang-tools/dlang-tools-2.088.0.ebuild
new file mode 100644
index 0000000..16a8df2
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.088.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 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 669f7eb..df15b75 100644
--- a/dev-util/dub/Manifest
+++ b/dev-util/dub/Manifest
@@ -1 +1,2 @@
DIST dub-1.16.0.tar.gz 1280193 BLAKE2B c569e2b189609d64801478f219139463552717b82d12b69792f0488ed52ffaefbe3b9ccfcec56c8324e03851a92b0a33f55730b759e56ecd8c322155980185c0 SHA512 e088fcdb0930439606c7575183d96cc4d743109d0d513f3606ae1ac1df41d4862aff8bfd36be90228aed4c4fc2f46528cb7a650ec6f988f146b051a10ccce177
+DIST dub-1.17.0.tar.gz 1280689 BLAKE2B b7236bce2e2cc1218a8043ae95087876e6fa67e696e3320c2ba089451870eccc3f7d7aafb89d7ec192fad4bc5de89eab15f79c1e128ca7c12c1c906b4151ba1c SHA512 8907e7b66d5a5c3d6013a2073a61cdab2a9276454b9c63628b30bb787cee2a7f785bf5ee1db781bf241fe4196a792f74682872ad55bb42349ae5452ce0ffec92
diff --git a/dev-util/dub/dub-1.17.0.ebuild b/dev-util/dub/dub-1.17.0.ebuild
new file mode 100644
index 0000000..237a2db
--- /dev/null
+++ b/dev-util/dub/dub-1.17.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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.17.0-gdc-dmd-pathfix.patch b/dev-util/dub/files/dub-1.17.0-gdc-dmd-pathfix.patch
new file mode 100644
index 0000000..497ef50
--- /dev/null
+++ b/dev-util/dub/files/dub-1.17.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;