aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2020-11-16 03:01:33 +0100
committerMarco Leise <marco.leise@gmx.de>2020-11-16 05:03:47 +0100
commit5500e341c992bc56aacf51c3dedb2ae64449aff9 (patch)
tree1a0908e9436c19944d35659619f8caf59139e25d
parentdfmt-0.13.2 (diff)
downloaddlang-5500e341c992bc56aacf51c3dedb2ae64449aff9.tar.gz
dlang-5500e341c992bc56aacf51c3dedb2ae64449aff9.tar.bz2
dlang-5500e341c992bc56aacf51c3dedb2ae64449aff9.zip
dscanner-0.11.0
Signed-off-by: Marco Leise <marco.leise@gmx.de>
-rw-r--r--dev-util/dscanner/Manifest4
-rw-r--r--dev-util/dscanner/dscanner-0.11.0.ebuild81
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-util/dscanner/Manifest b/dev-util/dscanner/Manifest
index ca14e47..4b14fd9 100644
--- a/dev-util/dscanner/Manifest
+++ b/dev-util/dscanner/Manifest
@@ -1,7 +1,11 @@
DIST containers-f4e79375539554b3793adf1c557361a64a073524.tar.gz 55265 BLAKE2B 208ba1baf12a6f690861bc2798c0b94f46f8155509832613f4d2308826c14ee951a7bb3e45bcea852e4747308c267bb1d37cf5383ecea80ebf2dabf5ca017b51 SHA512 d1779a060b3c846ad70942b5c7f8d05733d58964a4585913a3515d8dfe2dcc811a57af1d7bdb6e3606ccce1ba637f9f029de07213fddea00e2305c9d75293be1
DIST dscanner-0.10.0.tar.gz 89765 BLAKE2B e4426570a2161a9c13bedf69d1d8f868764340c36e658f3726ea582f3329d5bf283674f336b30614eced4a35d84bbffdba89d10e85dd44a3b8d97461f186c821 SHA512 29d72862eba2e93c65534c427b9d57f7f4d2fcd0e2a94750e93696bca93d9ddeed35d93df2ad5d8bdc9d8e1e2424fe7df20e23793c1a650b0c3849ae08d63dd4
+DIST dscanner-0.11.0.tar.gz 90627 BLAKE2B 794abf01fe0c2f9929c5bc9cc8a86021504f0d74114df5876f1aff41f937c5c008d8f1f995c93aae661eaae50da1ddf69654748367c86eef51491f900cc699a1 SHA512 31261713deab15ccb00ddbb4a4d19fba3b58d34b611a7b840f8851b72cf3350148a2b4e472bb3c48d325b5b4720f4d4580b0a179361a27159d9204934801603e
DIST dsymbol-71168a8449958e1807a8ba22c8a4df15456bae83.tar.gz 34626 BLAKE2B d86a413f81411d07b5376d93f295e7b26267bab70cbd5df327cff6d5f40ece8a52b2cfb1d1804696c12f8fab26aa5d7fe74cebc8a81a28b86b6c509ce8fbfb14 SHA512 a435e24582658998757914189664b253bcaefcf330b2ce272bd6904e71bdfa994d37bea2b4b73808f50565f8f5b23de52f00af710b5e2aac446d7b0a6a762c06
+DIST dsymbol-b8920c2a4593e24d1ced91f8f0bce9e50f598e4d.tar.gz 34794 BLAKE2B e863b47e51263c564d38695b35dd8c225c69d657d5aaf7c09eb240d999b91aa2fd3cf0911e4265467b1c314e3c7365bf4a109eac6190c4326a8a12eef4e6d56b SHA512 fcb6dce5c28c87dee1bc850646b739841e3e6c23108d7e47545750cc810b6aede661ae18895459a82518d38864ed6aee1c5bed390a40057b12c54808791bfcd5
DIST inifiled-cecaff8037a60db2a51c9bded4802c87d938a44e.tar.gz 8251 BLAKE2B fa0bb78c11f69e257a0974c16188475d50fcf2a56138fc288d6262be91604b8e706bfab2572b2d0e358c8366b400a2c5a3af6ba87d5243825ddf26a5a03fbfe2 SHA512 9a3c66eca2b48350c798fd0a54d37c8714d6a499e8412983f1bda2f00cda6fe1439bfbc6766d32529f3d7cc708a0528c52c077f9169727b492616691833c52d0
DIST libddoc-4ced25fa73bbcdbe801191147b32fdc94e947dd5.tar.gz 20106 BLAKE2B 34e5e36601e6cc8f526d35f58c401df6cb5c3259c0ccb88591c98b1d505c1438e99de1009c3cff6ca0960a494d6571ed395193b906da7dcf859e572e0d2651f0 SHA512 80bd1c9b38fe3f57c7c7428f63e1d3ed8b73c43b79d728bb189bbec95dd4ee203c6c9f52a6615475cee2de907a0ef888cf67d9551acd725f1ec15dfa83f68eb3
+DIST libddoc-9cf851e4476bdadccd96f3589e16ab9f9881c76d.tar.gz 20108 BLAKE2B 18b98b4fc9fdb409184b3d337147625953c1b78442ca956fcc774857c16006518d746c43cd93ab00fea10bee4beaa72c10d13590064a520877770fd882361684 SHA512 b684d63d4db647f7366154e7631917842ccaac2c95a09ab58065db08b176352a44b674c788bd726e3c83d78dbc5c2134d468cfb7cb212c5dff65b5442174ade6
+DIST libdparse-6f0893f6b07ec561d382f26c81e74f7788056828.tar.gz 145629 BLAKE2B 3fa4801499abfb3ad8b2094d48f68a96338ed994be1f417df4fe9591c9c80bb3a89a3652d623be3a59a2c73054e0ed6a15de11f6e890d8ec7a0294fa517b4c66 SHA512 9329deb2fee5b36e5b7ebfd553f5efc8c190e3a7f79eb2939598ac28391c0e717d96db1c16b825cd838780f31313e48699b3d115f344137131373042f0d9a2d7
DIST libdparse-f9a82848fe98a84f38a66df950514c3556e7fb2d.tar.gz 136856 BLAKE2B b289f94d30347edfb441d43238985411224b24488f36c3bb0120cb771625d141d183430091dd072adc3d1794ce73c89f198fbe34a85123de4c28be56ce8086a2 SHA512 1454e6ff36f4f8d45c3844436655c6b8a20e12397702a2891b9b293d92339bc53ad0bb1fbb18403d359a3e12efdc0165d07ecd517616da74b73bca45d6837deb
DIST stdx-allocator-d6e6ce4a838e0dad43ef13f050f96627339cdccd.tar.gz 103648 BLAKE2B c08925df810761bb4825d6058375dcc5415f4838403b3668aeff5c1be93c7d04b49c1994da27aa498cd0f4abd1ff923e8d906ae53c922f94bc63dac334b7f138 SHA512 3a41f95505e92d79a6b966d21d96fe5b5bb2b2f3762b09998b27334684d815a82a3e705935faa1b543a93ffb274c67b9110b2b1b7364f7d405bd65d05b819271
diff --git a/dev-util/dscanner/dscanner-0.11.0.ebuild b/dev-util/dscanner/dscanner-0.11.0.ebuild
new file mode 100644
index 0000000..6047e84
--- /dev/null
+++ b/dev-util/dscanner/dscanner-0.11.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Swiss-army knife for D source code"
+HOMEPAGE="https://github.com/dlang-community/D-Scanner"
+LICENSE="Boost-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+CONTAINERS="f4e79375539554b3793adf1c557361a64a073524"
+DSYMBOL="b8920c2a4593e24d1ced91f8f0bce9e50f598e4d"
+INIFILED="cecaff8037a60db2a51c9bded4802c87d938a44e"
+LIBDDOC="9cf851e4476bdadccd96f3589e16ab9f9881c76d"
+LIBDPARSE="6f0893f6b07ec561d382f26c81e74f7788056828"
+ALLOCATOR="d6e6ce4a838e0dad43ef13f050f96627339cdccd"
+GITHUB_URI="https://codeload.github.com"
+SRC_URI="
+ ${GITHUB_URI}/dlang-community/${PN}/tar.gz/v${PV} -> ${P}.tar.gz
+ ${GITHUB_URI}/dlang-community/containers/tar.gz/${CONTAINERS} -> containers-${CONTAINERS}.tar.gz
+ ${GITHUB_URI}/dlang-community/dsymbol/tar.gz/${DSYMBOL} -> dsymbol-${DSYMBOL}.tar.gz
+ ${GITHUB_URI}/burner/inifiled/tar.gz/${INIFILED} -> inifiled-${INIFILED}.tar.gz
+ ${GITHUB_URI}/economicmodeling/libddoc/tar.gz/${LIBDDOC} -> libddoc-${LIBDDOC}.tar.gz
+ ${GITHUB_URI}/dlang-community/libdparse/tar.gz/${LIBDPARSE} -> libdparse-${LIBDPARSE}.tar.gz
+ ${GITHUB_URI}/dlang-community/stdx-allocator/tar.gz/${ALLOCATOR} -> stdx-allocator-${ALLOCATOR}.tar.gz
+ "
+S="${WORKDIR}/D-Scanner-${PV}"
+
+DLANG_VERSION_RANGE="2.075-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit dlang
+
+src_prepare() {
+ mkdir bin || die "Failed to create 'bin' directory."
+ # 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
+}
+
+compile_dscanner() {
+ local container_src="../containers-${CONTAINERS}/src"
+ local dsymbol_src="../dsymbol-${DSYMBOL}/src"
+ local inifiled_src="../inifiled-${INIFILED}/source"
+ local libddoc_src="../libddoc-${LIBDDOC}/src"
+ local libdparse_src="../libdparse-${LIBDPARSE}/src"
+ local allocator_src="../stdx-allocator-${ALLOCATOR}/source"
+ local imports="src ${container_src} ${dsymbol_src} ${inifiled_src} ${libddoc_src} ${libdparse_src} ${allocator_src}"
+ local string_imports="."
+ local versions="StdLoggerDisableWarning"
+ use debug && versions="${versions} dparse_verbose"
+
+ local src=`find src -name "*.d" -printf "%p "`
+ local lib_src=`find ${container_src} ${dsymbol_src} ${inifiled_src} ${libddoc_src} ${libdparse_src} ${allocator_src} -name "*.d" -printf "%p "`
+
+ if [ "$1" == "unittest" ]; then
+ dlang_compile_lib_a bin/dscanner-unittest-lib.a "${lib_src}"
+ DCFLAGS="${DCFLAGS} ${DLANG_UNITTEST_FLAG}" dlang_compile_bin bin/dscanner-unittest bin/dscanner-unittest-lib.a "${src}"
+ else
+ dlang_compile_bin bin/dscanner "${src} ${lib_src}"
+ fi
+}
+
+d_src_compile() {
+ compile_dscanner
+}
+
+d_src_test() {
+ compile_dscanner unittest
+ bin/dscanner-unittest || die
+}
+
+d_src_install() {
+ dobin bin/dscanner
+ dodoc README.md LICENSE_1_0.txt
+}