aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2018-10-29 21:42:27 +0100
committerMarco Leise <marco.leise@gmx.de>2018-10-29 21:42:27 +0100
commita794a5d1cd6e372c86c197aa4f83f2b44d51f46d (patch)
treeef983d33ddd8de06cc2c29b89e5f63dc5c85af75 /dev-util/dfmt
parentFix eselect-dlang to consider two digit minor versions of ldc2 more recent th... (diff)
downloaddlang-a794a5d1cd6e372c86c197aa4f83f2b44d51f46d.tar.gz
dlang-a794a5d1cd6e372c86c197aa4f83f2b44d51f46d.tar.bz2
dlang-a794a5d1cd6e372c86c197aa4f83f2b44d51f46d.zip
dfmt-0.8.3
Diffstat (limited to 'dev-util/dfmt')
-rw-r--r--dev-util/dfmt/Manifest1
-rw-r--r--dev-util/dfmt/dfmt-0.8.3.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-util/dfmt/Manifest b/dev-util/dfmt/Manifest
index 3bc2f46..7388416 100644
--- a/dev-util/dfmt/Manifest
+++ b/dev-util/dfmt/Manifest
@@ -1,5 +1,6 @@
DIST dfmt-0.8.1.tar.gz 75454 BLAKE2B 8c6e5da7ca67b52af878ddbee5e495d891b73cc4a16d6e1a50438d6194c47e9118c78f834171de77e207ed3ef20e703fefdca1fe2cacf29c8bf04b0a62c0f5bf SHA512 51024002a21cd073596e669156d659fb87e5d77c575a3b352848318fb7c96635cb39b1c41305a367623482f360815c1384a2f99ff970039fae09ada7aac50ec6
DIST dfmt-0.8.2.tar.gz 76382 BLAKE2B c10c6de5ef58103dabc9b5d7269ec85cf6dfbe9df7df230204bb843a1ab8ac88ca728217aca58a73adc6371ec31a82b35ece81ab20a8b1258b657a0738892598 SHA512 6a42b040b595bf93442a69fccba0966342467e290c0a911f5b0d722da6cb2fbb8427a5bb47dcb3ff43c80b8084b2a5f674d9a37627b13877eb0c46ec7c3c373a
+DIST dfmt-0.8.3.tar.gz 80934 BLAKE2B 1592ff906e50a61d57d5a8c4460884ef575ffea292eb5528045de7980995e86176bcce229c2121b9150f5c4ea297d0f1e49c7d32c25936c6cb274b1f2bfd9a72 SHA512 aac50e05201367d7fe043d823b8ffb808b0955ac726fd5323837a40c71ba5bbd7006144cbb6e42c2f57028d8a4b3964bd7522455b839f01049d80f8e568727fa
DIST libdparse-086cf06051bb1f33c94891ba6c39a57f164ee296.tar.gz 115377 BLAKE2B ac33fa90edbdfa5a663933f8dcf384aaab95568565ce10fd476b0645bb8603bde68642a5aad619e330af1de4657a804efc4f958b3b85f0d227d068e5f55ce339 SHA512 1fc19e7e41a1a9275e4b25f1e9f48a16437843ed442dab759545f2b5f44d3bd128be9c8ece227086c3a95e2197d2794d2972db003ba412cb973a4d53adeb52ca
DIST libdparse-4f3c9ed6455cc5409c2a570576f8bd994763d652.tar.gz 115108 BLAKE2B a7d0ceacd920b7bae2105a6911654826bf59f27ac1c103ff268cb1c1bef1a7ae4fb9fc67f5a076af150068bd9b08a8ee38d9671add0d7bdd46990b218291af56 SHA512 be237c0f3ed39386e24d8fcc28fd2fb39fb04637d52a45009c9b882175b81863427b8d22eb791d6ac02030b17e78b45a9d65e0f5ae05ccecc8dd55d099d1d483
DIST stdx-allocator-b7778fd6bf5f9aaaa87dd27f989cefbf9b3b365f.tar.gz 103550 BLAKE2B be33b0df3a9be5a718c0f2286805946f2c20841bdf7032a4f454b7be76958a5789afaca94f430023918c25764f67fa5966f34fef1d7ca023e04a27735d5eda1b SHA512 d9a7688a45649a39d6a464a2f6a3acb0ee29b3aa17065afccc79d905701fc38fe48dd329687c065a016fc5f5291bb18e3e5b2877a286fd3e509766c7d9962e25
diff --git a/dev-util/dfmt/dfmt-0.8.3.ebuild b/dev-util/dfmt/dfmt-0.8.3.ebuild
new file mode 100644
index 0000000..0e44d78
--- /dev/null
+++ b/dev-util/dfmt/dfmt-0.8.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dfmt is a formatter for D source code"
+HOMEPAGE="https://github.com/dlang-community/dfmt"
+LICENSE="Boost-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LIBDPARSE="086cf06051bb1f33c94891ba6c39a57f164ee296"
+ALLOCATOR="b7778fd6bf5f9aaaa87dd27f989cefbf9b3b365f"
+SRC_URI="
+ https://github.com/dlang-community/dfmt/archive/v${PV}.tar.gz -> ${PN}-${PV}.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
+ "
+
+DLANG_VERSION_RANGE="2.072-"
+DLANG_PACKAGE_TYPE="single"
+
+inherit dlang bash-completion-r1
+
+src_prepare() {
+ mkdir bin || die "Failed to create 'bin' directory."
+ cat > bin/githash.txt << EOF
+v${PV}
+EOF
+ dlang_src_prepare
+}
+
+d_src_compile() {
+ local libdparse_src="../libdparse-${LIBDPARSE}/src"
+ local allocator_src="../stdx-allocator-${ALLOCATOR}/source"
+ local imports="src ${libdparse_src} ${allocator_src}"
+ local string_imports="bin"
+
+ dlang_compile_bin "bin/dfmt" "src/dfmt/main.d" "src/dfmt/config.d" "src/dfmt/editorconfig.d" \
+ "src/dfmt/ast_info.d" "src/dfmt/indentation.d" "src/dfmt/tokens.d" "src/dfmt/wrapping.d" \
+ "src/dfmt/formatter.d" "src/dfmt/globmatch_editorconfig.d" \
+ ${libdparse_src}/dparse/lexer.d ${libdparse_src}/dparse/parser.d ${libdparse_src}/dparse/ast.d \
+ ${libdparse_src}/dparse/rollback_allocator.d ${libdparse_src}/dparse/stack_buffer.d \
+ ${libdparse_src}/std/experimental/lexer.d \
+ ${allocator_src}/stdx/allocator/common.d ${allocator_src}/stdx/allocator/mallocator.d \
+ ${allocator_src}/stdx/allocator/package.d ${allocator_src}/stdx/allocator/gc_allocator.d
+}
+
+d_src_test() {
+ cd tests && ./test.sh
+}
+
+d_src_install() {
+ dobin bin/dfmt
+ dodoc README.md LICENSE.txt
+ dobashcomp bash-completion/completions/dfmt
+}