aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2020-08-15 19:15:28 +0200
committerMarco Leise <marco.leise@gmx.de>2020-08-15 19:15:28 +0200
commit2b76b80189c26e3eaa952ee6fc2b1801c82679d6 (patch)
treee2fd09ea6d8aff273f5511ecb4692c0cfb0daecf /dev-util
parentdscanner-0.10.0 (diff)
downloaddlang-2b76b80189c26e3eaa952ee6fc2b1801c82679d6.tar.gz
dlang-2b76b80189c26e3eaa952ee6fc2b1801c82679d6.tar.bz2
dlang-2b76b80189c26e3eaa952ee6fc2b1801c82679d6.zip
dscanner-0.10.0
Signed-off-by: Marco Leise <marco.leise@gmx.de>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dscanner/Manifest4
-rw-r--r--dev-util/dscanner/dscanner-0.10.0.ebuild81
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-util/dscanner/Manifest b/dev-util/dscanner/Manifest
index 33de5c8..d2f32cb 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.9.0.tar.gz 89372 BLAKE2B a1f958aa4a9319bd6aa856b0d54d22dde2bc84c392f5f50fcf17d61641a7a258091ea8a13516919583b5f02dbc37a79021a4aae68443fe46ed7a3732a1be3d6f SHA512 4d2564590a48231d4c1dd8a4126d5b640bd83e90e7189ceac33c2727f981f690e94079411f7f3cbb727be780069cebeacdd38fa6b78b4516cec4e23a8eb12aff
+DIST dsymbol-71168a8449958e1807a8ba22c8a4df15456bae83.tar.gz 34626 BLAKE2B d86a413f81411d07b5376d93f295e7b26267bab70cbd5df327cff6d5f40ece8a52b2cfb1d1804696c12f8fab26aa5d7fe74cebc8a81a28b86b6c509ce8fbfb14 SHA512 a435e24582658998757914189664b253bcaefcf330b2ce272bd6904e71bdfa994d37bea2b4b73808f50565f8f5b23de52f00af710b5e2aac446d7b0a6a762c06
DIST dsymbol-ceea154b0047f71e4ffec224096ce87015578a8a.tar.gz 32569 BLAKE2B d4b9e1a6c127f3a429f84b43364080137cc194d761f9b94f9803dd01e5d854de6d544194d95b76183482c9546c7405a32806ff9078658f3250a889d7eb778d21 SHA512 f480f8659fd1728dd314ad77e47090b95becddadaf4a01eb8040e7e24f471612ac9a972baf8f0f4a617e97c3ead8fe1900c674d07e762c7b470cffc1a8159058
DIST inifiled-cecaff8037a60db2a51c9bded4802c87d938a44e.tar.gz 8251 BLAKE2B fa0bb78c11f69e257a0974c16188475d50fcf2a56138fc288d6262be91604b8e706bfab2572b2d0e358c8366b400a2c5a3af6ba87d5243825ddf26a5a03fbfe2 SHA512 9a3c66eca2b48350c798fd0a54d37c8714d6a499e8412983f1bda2f00cda6fe1439bfbc6766d32529f3d7cc708a0528c52c077f9169727b492616691833c52d0
+DIST libddoc-4ced25fa73bbcdbe801191147b32fdc94e947dd5.tar.gz 20106 BLAKE2B 34e5e36601e6cc8f526d35f58c401df6cb5c3259c0ccb88591c98b1d505c1438e99de1009c3cff6ca0960a494d6571ed395193b906da7dcf859e572e0d2651f0 SHA512 80bd1c9b38fe3f57c7c7428f63e1d3ed8b73c43b79d728bb189bbec95dd4ee203c6c9f52a6615475cee2de907a0ef888cf67d9551acd725f1ec15dfa83f68eb3
DIST libddoc-d50190b7e33b11d7fec05e504549f0f285bd2232.tar.gz 21319 BLAKE2B eafda40a7ca16b90d2c39ae9edbb2a8fa8e87a75089e31d4bc59ea2dd2127b4b7f5e9fc68be0f0e2c2b74c71e0875291a08b363ccbd569c733c3800690c02d6f SHA512 6c6519442cd63879bed5b6ebce27ff607fae04b3b3d44c84a767ca304506262f2e967feaa8c358ca62cfc0a56bb91bf7d4c8a1f9a442c11a4489bf17f1cf28a4
DIST libdparse-597d9a697b1f8a51fb2f441c61d0c6cc4eadc6d1.tar.gz 124830 BLAKE2B 1a7b4246b00938c44c3e32c7d0fdda4a0d343bbafad25e3e003c4672aac1dd3677a8163750b13753aa484e6bcdd120b35fc736db6d5c0be4eb3d9c78ab6a9e8e SHA512 c3b5660d455ca3dd8d22ae996ae437583b98c00e441bedfb72a5fcf8ccd4dc579e4fc8980faab501ff757ced62c079fbc116f91c796174895b33a57f0a183bbf
+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.10.0.ebuild b/dev-util/dscanner/dscanner-0.10.0.ebuild
new file mode 100644
index 0000000..0c81fdd
--- /dev/null
+++ b/dev-util/dscanner/dscanner-0.10.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="71168a8449958e1807a8ba22c8a4df15456bae83"
+INIFILED="cecaff8037a60db2a51c9bded4802c87d938a44e"
+LIBDDOC="4ced25fa73bbcdbe801191147b32fdc94e947dd5"
+LIBDPARSE="f9a82848fe98a84f38a66df950514c3556e7fb2d"
+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
+}