aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2019-07-13 15:18:54 +0200
committerMarco Leise <marco.leise@gmx.de>2019-07-13 15:18:54 +0200
commitb95e323991e6d678e6a9e8edcbb8004a05848db3 (patch)
treea495957dd7b55cdd47420c6dd2d14c32cd5ca137 /dev-util
parentdscanner-0.8.0 (diff)
downloaddlang-b95e323991e6d678e6a9e8edcbb8004a05848db3.tar.gz
dlang-b95e323991e6d678e6a9e8edcbb8004a05848db3.tar.bz2
dlang-b95e323991e6d678e6a9e8edcbb8004a05848db3.zip
dcd-0.12.0
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dcd/Manifest4
-rw-r--r--dev-util/dcd/dcd-0.12.0.ebuild102
2 files changed, 106 insertions, 0 deletions
diff --git a/dev-util/dcd/Manifest b/dev-util/dcd/Manifest
index 248cf55..5c31697 100644
--- a/dev-util/dcd/Manifest
+++ b/dev-util/dcd/Manifest
@@ -1,6 +1,10 @@
DIST DCD-0.11.1.tar.gz 132806 BLAKE2B df3465c69747e244c2ab4ed85e0919493b257ebc603a0edfb7445512ba5c38c784534716c329698d6548d8a889028a37c17b0fdc6f6cbe6514efe7d1f3bab215 SHA512 95a330493c677109129af98d06ce0e25801b1b56ae10e5ed54f4875882868bcbe1e7d7fe11b250c00aabdb149286d7f232fc249cf8d2514a1c42f45f3f89f355
+DIST DCD-0.12.0.tar.gz 135294 BLAKE2B 87ba696325f205435004dd9bcfe036108e0cf35a1086cd30b7eb045a34e00f432dcab64ca019618883edfe3c6f277893f4b810b1ab72efa129606c3d978f69df SHA512 caadc5d497d6a209fda23523164247c1b921cebbe641fb6b5cedcecd20075d9283407f132886a369b15286c327e6a9e6015f290c31283e2a49a0e676b4cf82a9
DIST containers-257c0418f34709dd667f95b5dffabedc2b3099e4.tar.gz 54611 BLAKE2B c70ceff5ab3fd627db62922b978d41687fccb1986904cdef2cebfe2998262137f2d0b4d10665a5ffc6885f6c76eba842e50f91f43b477ac2ca26bbd23e754d89 SHA512 08e954e0e2434e130d1fe3a93364b3c18b92419bc7a9760a729f1302d6c41c6a78cd941a0129397a5351da880715e2761f7b2c8f69917706a2f3b4e0f5dce70c
+DIST containers-a978c3cda3f6ec3ba7449ec5c08dd5cd4dd79c6e.tar.gz 54657 BLAKE2B 67d496d6c56ee4bd1b5a9febe2251183d1e8db4e0f2b60e7529b0d5b9540331f6376ade38ccc698658872f650b6f2f8da2cc6df34b4bae49ad85565af4731b81 SHA512 39b6bd03ca3b4013ff4e340e980d85b05db00d227a43c225ef60871b83d18df5af79acccb3bdf0182fd974b12b483bab23fb28328d84302dd590eeb82992f0ed
DIST dsymbol-5b7f06ff005c63a2bf22db0736097ef35b9d36e7.tar.gz 31518 BLAKE2B bbcf984ac5a0ef06e41254318b38da821755df450198576e68d4d7c3c462bbe1d5412ecbf7fb08ae5ac10c1a370b66fe1df7af48de2a65afde3cb2d0cfbcd92d SHA512 2c46020244cb2ebbe2f1a2f984dd4379facc61afd66376da320ad68f73f2264ac95e847e6e5b07c1350f6a9a99bc5229a23c0fbf9b500681254734dcb95a1e0b
+DIST dsymbol-f4a481cdc23b58ce544c2e91a39d5c0d406b67ac.tar.gz 31621 BLAKE2B a0ad6d5e9392ca239a0aa67cbcbc3210eff1b33d7a2d82d8df300635ab76bdd9a607ab47be2af0b5b812839814c529ea1bab2e8c2a9ae6bd2ccfc8386fc7b623 SHA512 38a74593a2ded9360b42d87ae47e343475dfcde6de67d14ca76814361166210745c0035b6ff6f4ca46f62fd09b569eb0de02b0c8e5b7db486c3b89db7f4483f9
+DIST libdparse-5270739bcd1962418784c7760773e24d28b6009b.tar.gz 123594 BLAKE2B 879a21435ba622974a2c6d1bf7db7deb6fbaff07838325c6a7d0958272066b12b3fa6f96274126b6380a0da675d172ff07b1e0907ac6d3184d5842c86091717f SHA512 90ee5887b89ef1597a618761d6a974ad947946b5e7eaf56df883ab58a9d983279cbedc5ccfa01446576c3e74e4d4c8ac467585bb1b96ad7059ddf78dfc4557ff
DIST libdparse-aae371931a99027465952cd6fdaede4eb4743e76.tar.gz 122507 BLAKE2B ae0b500875fad7929ac5450303fe8fd1064299fb2bfd3378fd97f41aa3ca4a3d0a3c4df3be66985489a31fa56d613c031621f630b16668f7747bd8fb198c11bd SHA512 2aa54664bcaf8a974a00559354fb0115b8cc98b6cb299644b48086c70fa28ae12c90c573f030e2028ff33db7f8bb654813a8c7d1ec5078f1980a5b29ef35dda0
DIST msgpack-d-19d9245e315a85763754ded6912c2375c9226e04.tar.gz 143902 BLAKE2B be7f122a85af0e6313a9590496f6fa1a910ac1f092c378c050efb2ee54e39caf2a8b6200297fcb251b16b27caefd4be78cd16a8542bfa8875fbaca6472c9b6b5 SHA512 3f391c5f1b6c04bfcde96c97d2325d946df3bbeeac752bcca267d2c737f8752342dc415517e61691729787f766384edc796b82fac23b55191b4f84a50f931777
DIST stdx-allocator-d6e6ce4a838e0dad43ef13f050f96627339cdccd.tar.gz 103648 BLAKE2B c08925df810761bb4825d6058375dcc5415f4838403b3668aeff5c1be93c7d04b49c1994da27aa498cd0f4abd1ff923e8d906ae53c922f94bc63dac334b7f138 SHA512 3a41f95505e92d79a6b966d21d96fe5b5bb2b2f3762b09998b27334684d815a82a3e705935faa1b543a93ffb274c67b9110b2b1b7364f7d405bd65d05b819271
diff --git a/dev-util/dcd/dcd-0.12.0.ebuild b/dev-util/dcd/dcd-0.12.0.ebuild
new file mode 100644
index 0000000..236f912
--- /dev/null
+++ b/dev-util/dcd/dcd-0.12.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Auto-complete program for the D programming language"
+HOMEPAGE="https://github.com/dlang-community/DCD"
+LICENSE="GPL-3"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+CONTAINERS="a978c3cda3f6ec3ba7449ec5c08dd5cd4dd79c6e"
+DSYMBOL="f4a481cdc23b58ce544c2e91a39d5c0d406b67ac"
+LIBDPARSE="5270739bcd1962418784c7760773e24d28b6009b"
+MSGPACK="19d9245e315a85763754ded6912c2375c9226e04"
+ALLOCATOR="d6e6ce4a838e0dad43ef13f050f96627339cdccd"
+SRC_URI="
+ https://github.com/dlang-community/DCD/archive/v${PV}.tar.gz -> DCD-${PV}.tar.gz
+ https://github.com/economicmodeling/containers/archive/${CONTAINERS}.tar.gz -> containers-${CONTAINERS}.tar.gz
+ https://github.com/dlang-community/dsymbol/archive/${DSYMBOL}.tar.gz -> dsymbol-${DSYMBOL}.tar.gz
+ https://github.com/dlang-community/libdparse/archive/${LIBDPARSE}.tar.gz -> libdparse-${LIBDPARSE}.tar.gz
+ https://github.com/dlang-community/stdx-allocator/archive/${ALLOCATOR}.tar.gz -> stdx-allocator-${ALLOCATOR}.tar.gz
+ https://github.com/msgpack/msgpack-d/archive/${MSGPACK}.tar.gz -> msgpack-d-${MSGPACK}.tar.gz
+ "
+S="${WORKDIR}/DCD-${PV}"
+
+DLANG_VERSION_RANGE="2.075-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit dlang systemd bash-completion-r1
+
+src_prepare() {
+ # Default ebuild unpack function places archives side-by-side ...
+ mv -T ../stdx-allocator-${ALLOCATOR} stdx-allocator/source || die
+ mv -T ../containers-${CONTAINERS} containers || die
+ mv -T ../dsymbol-${DSYMBOL} dsymbol || die
+ mv -T ../libdparse-${LIBDPARSE} libdparse || die
+ mv -T ../msgpack-d-${MSGPACK} msgpack-d || die
+ # Stop makefile from executing git to write an unused githash.txt
+ echo "v${PV}" > githash.txt || die "Could not generate githash"
+ touch githash || die "Could not generate githash"
+ # Apply patches
+ dlang_src_prepare
+}
+
+d_src_compile() {
+ # Build client & server with the requested Dlang compiler
+ local flags="$DCFLAGS $LDFLAGS -Icontainers/src -Idsymbol/src -Ilibdparse/src -Imsgpack-d/src -Isrc -J."
+ case "$DLANG_VENDOR" in
+ DigitalMars)
+ emake \
+ DMD="$DC" \
+ DMD_CLIENT_FLAGS="$flags -ofbin/dcd-client" \
+ DMD_SERVER_FLAGS="$flags -ofbin/dcd-server" \
+ dmd
+ ;;
+ GNU)
+ emake \
+ GDC="$DC" \
+ GDC_CLIENT_FLAGS="$flags -obin/dcd-client" \
+ GDC_SERVER_FLAGS="$flags -obin/dcd-server" \
+ gdc
+ ;;
+ LDC)
+ mkdir -p bin || die "Could not create 'bin' output directory."
+ emake \
+ LDC="$DC" \
+ LDC_CLIENT_FLAGS="$flags -g -of=bin/dcd-client" \
+ LDC_SERVER_FLAGS="$flags" \
+ ldc
+ ;;
+ *)
+ die "Unsupported compiler vendor: $DLANG_VENDOR"
+ ;;
+ esac
+ # Write system include paths of host compiler into dcd.conf
+ dlang_system_imports > dcd.conf
+}
+
+d_src_test() {
+ # The tests don't work too well in a sandbox, e.g. multiple permission denied errors.
+ cd tests
+ #./run_tests.sh || die "Tests failed"
+}
+
+d_src_install() {
+ dobin bin/dcd-server
+ dobin bin/dcd-client
+ use systemd && systemd_douserunit "${FILESDIR}"/dcd-server.service
+ dobashcomp bash-completion/completions/dcd-server
+ dobashcomp bash-completion/completions/dcd-client
+ insinto /etc
+ doins dcd.conf
+ dodoc README.md
+ doman man1/dcd-client.1 man1/dcd-server.1
+}
+
+pkg_postinst() {
+ use systemd && elog "A systemd user service for 'dcd-server' has been installed."
+}