aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2020-08-15 18:31:45 +0200
committerMarco Leise <marco.leise@gmx.de>2020-08-15 18:55:23 +0200
commitd6206be2635d981e916d90f27e0b94b689eccb71 (patch)
tree394ee7d02975ab6e14a37ab149aab73ac0774ef6
parentUpdated homepages of various ebuilds. (diff)
downloaddlang-d6206be2635d981e916d90f27e0b94b689eccb71.tar.gz
dlang-d6206be2635d981e916d90f27e0b94b689eccb71.tar.bz2
dlang-d6206be2635d981e916d90f27e0b94b689eccb71.zip
dcd-0.13.1
Signed-off-by: Marco Leise <marco.leise@gmx.de>
-rw-r--r--dev-util/dcd/Manifest5
-rw-r--r--dev-util/dcd/dcd-0.13.1.ebuild102
2 files changed, 107 insertions, 0 deletions
diff --git a/dev-util/dcd/Manifest b/dev-util/dcd/Manifest
index c11a1a4..2c0f9e0 100644
--- a/dev-util/dcd/Manifest
+++ b/dev-util/dcd/Manifest
@@ -1,6 +1,11 @@
DIST DCD-0.12.0.tar.gz 135294 BLAKE2B 87ba696325f205435004dd9bcfe036108e0cf35a1086cd30b7eb045a34e00f432dcab64ca019618883edfe3c6f277893f4b810b1ab72efa129606c3d978f69df SHA512 caadc5d497d6a209fda23523164247c1b921cebbe641fb6b5cedcecd20075d9283407f132886a369b15286c327e6a9e6015f290c31283e2a49a0e676b4cf82a9
+DIST DCD-0.13.1.tar.gz 136095 BLAKE2B ae0ee1acec1201d724feb178b58483651cf5498b7c9aa66036afe153972a9e889f400d7d86612d021faa576d64587892f6a2a068b9a8e4ebe241414c727d7016 SHA512 c52540b4ba02c7bca77beca74ae482cd0b046fe7e16498e30600a1ca03f997a365eacb7450a1c13ae4ab3c9c8bfe6c65a8aa899697755f4596804ff636a86784
DIST containers-a978c3cda3f6ec3ba7449ec5c08dd5cd4dd79c6e.tar.gz 54657 BLAKE2B 67d496d6c56ee4bd1b5a9febe2251183d1e8db4e0f2b60e7529b0d5b9540331f6376ade38ccc698658872f650b6f2f8da2cc6df34b4bae49ad85565af4731b81 SHA512 39b6bd03ca3b4013ff4e340e980d85b05db00d227a43c225ef60871b83d18df5af79acccb3bdf0182fd974b12b483bab23fb28328d84302dd590eeb82992f0ed
+DIST containers-f4e79375539554b3793adf1c557361a64a073524.tar.gz 55265 BLAKE2B 208ba1baf12a6f690861bc2798c0b94f46f8155509832613f4d2308826c14ee951a7bb3e45bcea852e4747308c267bb1d37cf5383ecea80ebf2dabf5ca017b51 SHA512 d1779a060b3c846ad70942b5c7f8d05733d58964a4585913a3515d8dfe2dcc811a57af1d7bdb6e3606ccce1ba637f9f029de07213fddea00e2305c9d75293be1
DIST dsymbol-f4a481cdc23b58ce544c2e91a39d5c0d406b67ac.tar.gz 31621 BLAKE2B a0ad6d5e9392ca239a0aa67cbcbc3210eff1b33d7a2d82d8df300635ab76bdd9a607ab47be2af0b5b812839814c529ea1bab2e8c2a9ae6bd2ccfc8386fc7b623 SHA512 38a74593a2ded9360b42d87ae47e343475dfcde6de67d14ca76814361166210745c0035b6ff6f4ca46f62fd09b569eb0de02b0c8e5b7db486c3b89db7f4483f9
+DIST dsymbol-f9a3d302527a9e50140991562648a147b6f5a78e.tar.gz 34796 BLAKE2B c9fb476a348b030d7c57e43b0e21fb8db255ba4b350f7bde6315750ed5888eef9ce32ec68428f55e321bf6e9f167433ce3279185ff0ce0b899fbf5257b4d40c5 SHA512 2133f1c8dc966920496b7851f9ae094f10170117d1d9961f96c5382df126c3f72a8eb678dbc106bac5f3b4c1f97848428bf9004656c57d1c1c5f2697b7d2a4da
+DIST libdparse-1393ee4d0c8e50011e641e06d64c429841fb3c2b.tar.gz 137198 BLAKE2B e2d4122f63847fe9c0aa7591f5d5cfb9b8708c02c45b02b24fbb488f17a9dc0986ab0525a573e6e4e43daa3a1b8880edc93e0b6061fd5486a39e8fd45f516dd4 SHA512 8339e339d667f7fbd524f12c89a824f95a2151ce126fae33bbf940f76dcc460d42c0c412fa169867eaa056dabb1ef2aaa89b95b47219294edfc166aafa48c89c
DIST libdparse-5270739bcd1962418784c7760773e24d28b6009b.tar.gz 123594 BLAKE2B 879a21435ba622974a2c6d1bf7db7deb6fbaff07838325c6a7d0958272066b12b3fa6f96274126b6380a0da675d172ff07b1e0907ac6d3184d5842c86091717f SHA512 90ee5887b89ef1597a618761d6a974ad947946b5e7eaf56df883ab58a9d983279cbedc5ccfa01446576c3e74e4d4c8ac467585bb1b96ad7059ddf78dfc4557ff
DIST msgpack-d-19d9245e315a85763754ded6912c2375c9226e04.tar.gz 143902 BLAKE2B be7f122a85af0e6313a9590496f6fa1a910ac1f092c378c050efb2ee54e39caf2a8b6200297fcb251b16b27caefd4be78cd16a8542bfa8875fbaca6472c9b6b5 SHA512 3f391c5f1b6c04bfcde96c97d2325d946df3bbeeac752bcca267d2c737f8752342dc415517e61691729787f766384edc796b82fac23b55191b4f84a50f931777
+DIST msgpack-d-480f3bf9ee80ccf6695ed900cfcc1850ba8da991.tar.gz 143848 BLAKE2B 44ac6f1efbbdb455af694cc476524535bebe993777a8c47d93a7cff21d825c2b8ce4caaf0d9f072f1e37869a9e50821abbd60e23a38546e0522047809cd0695a SHA512 76f7049c9f9f4128b9e9691e224c2ff5d8ee5400bf0796cc362386f0bc6f2359bb1694606923aec21eab539f65b93b828c2e018dee22358b91713365dd443e4d
DIST stdx-allocator-d6e6ce4a838e0dad43ef13f050f96627339cdccd.tar.gz 103648 BLAKE2B c08925df810761bb4825d6058375dcc5415f4838403b3668aeff5c1be93c7d04b49c1994da27aa498cd0f4abd1ff923e8d906ae53c922f94bc63dac334b7f138 SHA512 3a41f95505e92d79a6b966d21d96fe5b5bb2b2f3762b09998b27334684d815a82a3e705935faa1b543a93ffb274c67b9110b2b1b7364f7d405bd65d05b819271
diff --git a/dev-util/dcd/dcd-0.13.1.ebuild b/dev-util/dcd/dcd-0.13.1.ebuild
new file mode 100644
index 0000000..1f9f451
--- /dev/null
+++ b/dev-util/dcd/dcd-0.13.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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="f4e79375539554b3793adf1c557361a64a073524"
+DSYMBOL="f9a3d302527a9e50140991562648a147b6f5a78e"
+LIBDPARSE="1393ee4d0c8e50011e641e06d64c429841fb3c2b"
+MSGPACK="480f3bf9ee80ccf6695ed900cfcc1850ba8da991"
+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.082-"
+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."
+}