diff options
author | Marco Leise <marco.leise@gmx.de> | 2018-06-30 02:01:26 +0200 |
---|---|---|
committer | Marco Leise <marco.leise@gmx.de> | 2018-06-30 02:01:26 +0200 |
commit | a4a94b62e81fa059f5bf3e906c31fed161f9bdc4 (patch) | |
tree | a90116a95b2c00c6d4c43e44f9ad2d59fe09a535 | |
parent | stabilization sweep (diff) | |
download | dlang-a4a94b62e81fa059f5bf3e906c31fed161f9bdc4.tar.gz dlang-a4a94b62e81fa059f5bf3e906c31fed161f9bdc4.tar.bz2 dlang-a4a94b62e81fa059f5bf3e906c31fed161f9bdc4.zip |
dfmt-0.8.2
-rw-r--r-- | dev-util/dfmt/Manifest | 2 | ||||
-rw-r--r-- | dev-util/dfmt/dfmt-0.8.2.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/dfmt/Manifest b/dev-util/dfmt/Manifest index 426970b..e42cd93 100644 --- a/dev-util/dfmt/Manifest +++ b/dev-util/dfmt/Manifest @@ -1,6 +1,8 @@ DIST dfmt-0.7.0.tar.gz 74004 BLAKE2B b39ec3f5529ba425819f6b14705ea41078e3e1640164348e8969396db04f1ff58e846a6800e41648a8da9c220ee9fc8c0a28acb151b86d26b579b48591291d11 SHA512 7ea77715a5048948987a8b2aaed4d8c2874919b352b1847ea64b1a3cc2dc6e6fc4a6debf88dfdf07a51fd0d293022abe979aeb2e362dcc6bae05b8454cc0f7f8 DIST dfmt-0.8.0.tar.gz 74524 BLAKE2B 126685a45bbdd89b2a8f982feb6495f7d5f07ead804d47d26842670fe756e6fa46824c2d4ac939396a716669a64b82f3d66d802db12b52b82dbf14aeacbdd501 SHA512 ad2cdea4649720d659955eaf08ccc722dacb15815795ff0057ec3d6e45b22e1f5e8ac6fb52fae187d44e24bd3a889bf3ae744c606d109b90277c630704f3b685 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 libdparse-086cf06051bb1f33c94891ba6c39a57f164ee296.tar.gz 115377 BLAKE2B ac33fa90edbdfa5a663933f8dcf384aaab95568565ce10fd476b0645bb8603bde68642a5aad619e330af1de4657a804efc4f958b3b85f0d227d068e5f55ce339 SHA512 1fc19e7e41a1a9275e4b25f1e9f48a16437843ed442dab759545f2b5f44d3bd128be9c8ece227086c3a95e2197d2794d2972db003ba412cb973a4d53adeb52ca DIST libdparse-4f3c9ed6455cc5409c2a570576f8bd994763d652.tar.gz 115108 BLAKE2B a7d0ceacd920b7bae2105a6911654826bf59f27ac1c103ff268cb1c1bef1a7ae4fb9fc67f5a076af150068bd9b08a8ee38d9671add0d7bdd46990b218291af56 SHA512 be237c0f3ed39386e24d8fcc28fd2fb39fb04637d52a45009c9b882175b81863427b8d22eb791d6ac02030b17e78b45a9d65e0f5ae05ccecc8dd55d099d1d483 DIST libdparse-687c0ca751747ebe498c183da1a3ee3119d57932.tar.gz 113776 BLAKE2B 113bbbbae9f7b386541725474d1de78a2612c66308282f07d51554d54c0e57f57bb992533fe6d20424118f389f5aa04cf74cf2126e0bda7ccec9b85e7a7b32ba SHA512 426d297e310c4c962d9807ea80e5e3d6a89bab3c3212485b169dc173ad326d50651a42e01f4d38e9a3715c628fc649cc460a923df861ca629c954514fbc1b0e2 DIST stdx-allocator-b7778fd6bf5f9aaaa87dd27f989cefbf9b3b365f.tar.gz 103550 BLAKE2B be33b0df3a9be5a718c0f2286805946f2c20841bdf7032a4f454b7be76958a5789afaca94f430023918c25764f67fa5966f34fef1d7ca023e04a27735d5eda1b SHA512 d9a7688a45649a39d6a464a2f6a3acb0ee29b3aa17065afccc79d905701fc38fe48dd329687c065a016fc5f5291bb18e3e5b2877a286fd3e509766c7d9962e25 diff --git a/dev-util/dfmt/dfmt-0.8.2.ebuild b/dev-util/dfmt/dfmt-0.8.2.ebuild new file mode 100644 index 0000000..211b3a1 --- /dev/null +++ b/dev-util/dfmt/dfmt-0.8.2.ebuild @@ -0,0 +1,58 @@ +# 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="~x86 ~amd64" +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." + mkdir views || die "Failed to create 'views' directory." + cat > views/VERSION << 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="views" + + 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 +} |