aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2021-07-07 17:20:30 +0200
committerMarco Leise <marco.leise@gmx.de>2021-07-07 17:20:30 +0200
commit655df3bb62bdc3ad0c9b9b7c8ac41578e42721d9 (patch)
treeab2bdaa3eef67f034c6eb0f265f4c19747b31d02 /dev-util
parentstabilization sweep (diff)
downloaddlang-655df3bb62bdc3ad0c9b9b7c8ac41578e42721d9.tar.gz
dlang-655df3bb62bdc3ad0c9b9b7c8ac41578e42721d9.tar.bz2
dlang-655df3bb62bdc3ad0c9b9b7c8ac41578e42721d9.zip
dscanner-0.11.1
Signed-off-by: Marco Leise <marco.leise@gmx.de>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dscanner/Manifest2
-rw-r--r--dev-util/dscanner/dscanner-0.11.1.ebuild81
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/dscanner/Manifest b/dev-util/dscanner/Manifest
index 027fdfd..fbc7dc6 100644
--- a/dev-util/dscanner/Manifest
+++ b/dev-util/dscanner/Manifest
@@ -1,5 +1,7 @@
DIST containers-f4e79375539554b3793adf1c557361a64a073524.tar.gz 55265 BLAKE2B 208ba1baf12a6f690861bc2798c0b94f46f8155509832613f4d2308826c14ee951a7bb3e45bcea852e4747308c267bb1d37cf5383ecea80ebf2dabf5ca017b51 SHA512 d1779a060b3c846ad70942b5c7f8d05733d58964a4585913a3515d8dfe2dcc811a57af1d7bdb6e3606ccce1ba637f9f029de07213fddea00e2305c9d75293be1
+DIST containers-fc1625a5a0c253272b80addfb4107928495fd647.tar.gz 55220 BLAKE2B 67851802c64c2e22c40688e050e8ba3825d6152df0fed2130d3585b77264ddd0ff0444c199d95330116887d6711935b82cdba392e557acf22d353b094c4be8a4 SHA512 ff13091bd8ccd2fbfdb18284d81cf3789f208cc3e9f07f36cfb87122efb36b364c3201c695c9b0267705576561270a6f2a9ec91ce8776a7d683db4bf36ca328b
DIST dscanner-0.11.0.tar.gz 90627 BLAKE2B 794abf01fe0c2f9929c5bc9cc8a86021504f0d74114df5876f1aff41f937c5c008d8f1f995c93aae661eaae50da1ddf69654748367c86eef51491f900cc699a1 SHA512 31261713deab15ccb00ddbb4a4d19fba3b58d34b611a7b840f8851b72cf3350148a2b4e472bb3c48d325b5b4720f4d4580b0a179361a27159d9204934801603e
+DIST dscanner-0.11.1.tar.gz 90803 BLAKE2B b90ed5b8067d675c2e25d35e967fdd7313fa5dd5758e179aa687c228aa91d099f2231758cbb12941cb73594d6024f8baf7f8b4ebc0f1c730a6e7d18eb8b16b73 SHA512 321ded16f9cf35835fb779ad0fd5bf2b89b861842798100e0b28d0b70027b01e92500621e6d3797ee31eeef86f1deaf36b419b04e4dc7fbae6efe4a292d47a3a
DIST dsymbol-b8920c2a4593e24d1ced91f8f0bce9e50f598e4d.tar.gz 34794 BLAKE2B e863b47e51263c564d38695b35dd8c225c69d657d5aaf7c09eb240d999b91aa2fd3cf0911e4265467b1c314e3c7365bf4a109eac6190c4326a8a12eef4e6d56b SHA512 fcb6dce5c28c87dee1bc850646b739841e3e6c23108d7e47545750cc810b6aede661ae18895459a82518d38864ed6aee1c5bed390a40057b12c54808791bfcd5
DIST inifiled-cecaff8037a60db2a51c9bded4802c87d938a44e.tar.gz 8251 BLAKE2B fa0bb78c11f69e257a0974c16188475d50fcf2a56138fc288d6262be91604b8e706bfab2572b2d0e358c8366b400a2c5a3af6ba87d5243825ddf26a5a03fbfe2 SHA512 9a3c66eca2b48350c798fd0a54d37c8714d6a499e8412983f1bda2f00cda6fe1439bfbc6766d32529f3d7cc708a0528c52c077f9169727b492616691833c52d0
DIST libddoc-9cf851e4476bdadccd96f3589e16ab9f9881c76d.tar.gz 20108 BLAKE2B 18b98b4fc9fdb409184b3d337147625953c1b78442ca956fcc774857c16006518d746c43cd93ab00fea10bee4beaa72c10d13590064a520877770fd882361684 SHA512 b684d63d4db647f7366154e7631917842ccaac2c95a09ab58065db08b176352a44b674c788bd726e3c83d78dbc5c2134d468cfb7cb212c5dff65b5442174ade6
diff --git a/dev-util/dscanner/dscanner-0.11.1.ebuild b/dev-util/dscanner/dscanner-0.11.1.ebuild
new file mode 100644
index 0000000..da5ec99
--- /dev/null
+++ b/dev-util/dscanner/dscanner-0.11.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2021 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="fc1625a5a0c253272b80addfb4107928495fd647"
+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
+}