aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2019-07-06 04:34:21 +0200
committerMarco Leise <marco.leise@gmx.de>2019-07-06 04:34:21 +0200
commit07e1b47b458e9fc4ea8d983767cd780b2cefc39c (patch)
treea42a0f538f8b02aa4f2099e0e96ebd9925d4ab8e /dev-util
parentonedrive-2.3.7 (diff)
downloaddlang-07e1b47b458e9fc4ea8d983767cd780b2cefc39c.tar.gz
dlang-07e1b47b458e9fc4ea8d983767cd780b2cefc39c.tar.bz2
dlang-07e1b47b458e9fc4ea8d983767cd780b2cefc39c.zip
dmd-2.087.0 & dub-1.16.0
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dlang-tools/Manifest1
-rw-r--r--dev-util/dlang-tools/dlang-tools-2.087.0.ebuild54
-rw-r--r--dev-util/dub/Manifest1
-rw-r--r--dev-util/dub/dub-1.16.0.ebuild39
-rw-r--r--dev-util/dub/files/dub-1.16.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 023b008..a780b48 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.0.tar.gz 116402 BLAKE2B a1f8cce87526f02ae5b0b6966297ebdf8d0683e03007fc79280e5b55d655b43b24881edf8887f5d912193a0c65ef0c001cf650b1f6d99b6249cd0fea7295201a SHA512 648b87f42dbe2ade401467aff92cb6e0eef90a52a9931dc99ca8c14c0675d679909fb57ea7bb534160ce6ad53f100b69be6c953938d06f11c5e63a3bd1884f81
DIST dlang-tools-2.086.1.tar.gz 116540 BLAKE2B 5a2e19f72fd8dd608e15dd5d5d4d6fe2296d7308fb926a064b1a438d8a698141e1acf0c9a829f65612e48d4b5b4c28336f8f3dc59b1a68cc856db13b80b1ee9d SHA512 9cb59613e43c31fcab4807451a6cb434226d3a0ff5ee9239f6d83fbceab8ef112dcf63e1545d93fb59980fccb55ee120aa0a724e18405b83efff7c913d229ef8
+DIST dlang-tools-2.087.0.tar.gz 117091 BLAKE2B 82dd722cbacdc2f6f742c65bddd887292c05342e0d7bceab042113851649ee1f710ea8bb2fc4c60221031546853764b4825e6f2d63976aac13335232052106a5 SHA512 b71686f2eecddb43a0331cd7af63e01d0baa2c714751fac30e5cbd1cb6c1f723b360890f1c39f240dbd87291b10ec0ae8ec9978371fd41968f9be4f7a13ff00e
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.087.0.ebuild b/dev-util/dlang-tools/dlang-tools-2.087.0.ebuild
new file mode 100644
index 0000000..f4042c9
--- /dev/null
+++ b/dev-util/dlang-tools/dlang-tools-2.087.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 Gentoo Foundation
+# 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.075-"
+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 b01ccb7..e770cbf 100644
--- a/dev-util/dub/Manifest
+++ b/dev-util/dub/Manifest
@@ -1 +1,2 @@
DIST dub-1.15.0.tar.gz 1281863 BLAKE2B 8e77c0539ff40daa45a72854bd2dc9d7ea2248f93f891c0a60e6b8e5549c46372f292ffda81807407e91e3d475f7569f25c35f46db7f877a4fdce669e678cf31 SHA512 c29f2e7b0ef3337748d21cadd31b29e40202e76685becdc1e8f774cae2cc3509fcfc06a00164862d684529c05e66167e5fdb2a205e095aa48147a531f57cca3a
+DIST dub-1.16.0.tar.gz 1280193 BLAKE2B c569e2b189609d64801478f219139463552717b82d12b69792f0488ed52ffaefbe3b9ccfcec56c8324e03851a92b0a33f55730b759e56ecd8c322155980185c0 SHA512 e088fcdb0930439606c7575183d96cc4d743109d0d513f3606ae1ac1df41d4862aff8bfd36be90228aed4c4fc2f46528cb7a650ec6f988f146b051a10ccce177
diff --git a/dev-util/dub/dub-1.16.0.ebuild b/dev-util/dub/dub-1.16.0.ebuild
new file mode 100644
index 0000000..0232509
--- /dev/null
+++ b/dev-util/dub/dub-1.16.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Foundation
+# 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.16.0-gdc-dmd-pathfix.patch b/dev-util/dub/files/dub-1.16.0-gdc-dmd-pathfix.patch
new file mode 100644
index 0000000..497ef50
--- /dev/null
+++ b/dev-util/dub/files/dub-1.16.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;