Gentoo Archives: gentoo-commits

From: Marco Leise <marco.leise@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/dlang:master commit in: dev-util/dfmt/
Date: Sat, 15 Aug 2020 18:01:13
Message-Id: 1597511282.f2f23388141ffb5090cba63931294c1c7fb82073.mleise@gentoo
1 commit: f2f23388141ffb5090cba63931294c1c7fb82073
2 Author: Marco Leise <marco.leise <AT> gmx <DOT> de>
3 AuthorDate: Sat Aug 15 17:08:02 2020 +0000
4 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de>
5 CommitDate: Sat Aug 15 17:08:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=f2f23388
7
8 dscanner-0.10.0
9
10 Signed-off-by: Marco Leise <marco.leise <AT> gmx.de>
11
12 dev-util/dfmt/Manifest | 2 ++
13 dev-util/dfmt/dfmt-0.13.0.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-util/dfmt/Manifest b/dev-util/dfmt/Manifest
17 index bd5bc86..65febef 100644
18 --- a/dev-util/dfmt/Manifest
19 +++ b/dev-util/dfmt/Manifest
20 @@ -1,3 +1,5 @@
21 DIST dfmt-0.12.0.tar.gz 89416 BLAKE2B 20b18358ce6fe64c86eb8c6e440f0a855810dbc571d45497388e3e622d2fd339f75e339c7099baa15afae9730cde00cb3655cc64291834f8ceb01e57cea89d49 SHA512 1f6285824e72540bf1d41d84d8df7cf3e56e6bd3996271126a062a5f7f6532a3dcdc4e63a8bd3bdb2cb5d85eefd20c2705ded7e7c6fd4860f08573c13b719e04
22 +DIST dfmt-0.13.0.tar.gz 90119 BLAKE2B f47d0a661b8b9c571766e017cf50fc8dcbe0d0a05efc62ddb36734013986d2244d76e4977dc4893d036e297f20c818780d76ea75232168d7a652b0ba8067316f SHA512 1cea004218dc49f9c7079cc2063fccac8b9c97b9683929f2abde6aceedf1f3ad35009fd3978affaf5d33f8779918e9fcf9084a91ba21c87680a25d33bc6bc8ca
23 +DIST libdparse-1557eb079a2d5958e0a7136f942eea0922d58e8a.tar.gz 132387 BLAKE2B 180316ef25713eb723e43e13c983f2c7b8c775f7e4c984217b497505ed0f7a9b1eb351867317a1e0957dd368a71b7fe403d8a636baf8ad8240f2b39fb7bc2c69 SHA512 1dbab30db4f14d99f27672be12b63bba04534a0c69c58453441b8a654336d9a38c869a6db738442b692d4d7cfdb0f68ed0bfaaa462c58aed0bedef60ea4dfbac
24 DIST libdparse-597d9a697b1f8a51fb2f441c61d0c6cc4eadc6d1.tar.gz 124830 BLAKE2B 1a7b4246b00938c44c3e32c7d0fdda4a0d343bbafad25e3e003c4672aac1dd3677a8163750b13753aa484e6bcdd120b35fc736db6d5c0be4eb3d9c78ab6a9e8e SHA512 c3b5660d455ca3dd8d22ae996ae437583b98c00e441bedfb72a5fcf8ccd4dc579e4fc8980faab501ff757ced62c079fbc116f91c796174895b33a57f0a183bbf
25 DIST stdx-allocator-ae237cabd1843774cc78aad0729c914a3dd579db.tar.gz 103650 BLAKE2B 8d03c2dc76194b18da92261c533c402b87bda1964662070d02ceacbab3dda91a834c0c8bfe45feb1d9a3d7669f96a2a1f7b9a6b7eff7ea53069480d8de8fe15e SHA512 893e5ecefac86a64b3a91f034cc9f42aabc264d111b40accf890b505ec9d077fcaac0b29fc202400448994e4ff021263beef7716798734cb9b71b6aad1aaf394
26
27 diff --git a/dev-util/dfmt/dfmt-0.13.0.ebuild b/dev-util/dfmt/dfmt-0.13.0.ebuild
28 new file mode 100644
29 index 0000000..50ab11e
30 --- /dev/null
31 +++ b/dev-util/dfmt/dfmt-0.13.0.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DESCRIPTION="Dfmt is a formatter for D source code"
39 +HOMEPAGE="https://github.com/dlang-community/dfmt"
40 +LICENSE="Boost-1.0"
41 +
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +LIBDPARSE="1557eb079a2d5958e0a7136f942eea0922d58e8a"
45 +ALLOCATOR="ae237cabd1843774cc78aad0729c914a3dd579db"
46 +SRC_URI="
47 + https://github.com/dlang-community/dfmt/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz
48 + https://github.com/dlang-community/libdparse/archive/${LIBDPARSE}.tar.gz -> libdparse-${LIBDPARSE}.tar.gz
49 + https://github.com/dlang-community/stdx-allocator/archive/${ALLOCATOR}.tar.gz -> stdx-allocator-${ALLOCATOR}.tar.gz
50 + "
51 +
52 +DLANG_VERSION_RANGE="2.075-"
53 +DLANG_PACKAGE_TYPE="single"
54 +
55 +inherit dlang bash-completion-r1
56 +
57 +src_prepare() {
58 + mkdir bin || die "Failed to create 'bin' directory."
59 + cat > bin/githash.txt << EOF
60 +v${PV}
61 +EOF
62 + dlang_src_prepare
63 +}
64 +
65 +d_src_compile() {
66 + local libdparse_src="../libdparse-${LIBDPARSE}/src"
67 + local allocator_src="../stdx-allocator-${ALLOCATOR}/source"
68 + local imports="src ${libdparse_src} ${allocator_src}"
69 + local string_imports="bin"
70 +
71 + dlang_compile_bin "bin/dfmt" "src/dfmt/main.d" "src/dfmt/config.d" "src/dfmt/editorconfig.d" \
72 + "src/dfmt/ast_info.d" "src/dfmt/indentation.d" "src/dfmt/tokens.d" "src/dfmt/wrapping.d" \
73 + "src/dfmt/formatter.d" "src/dfmt/globmatch_editorconfig.d" \
74 + ${libdparse_src}/dparse/lexer.d ${libdparse_src}/dparse/parser.d ${libdparse_src}/dparse/ast.d \
75 + ${libdparse_src}/dparse/rollback_allocator.d ${libdparse_src}/dparse/stack_buffer.d \
76 + ${libdparse_src}/dparse/trivia.d ${libdparse_src}/std/experimental/lexer.d \
77 + ${allocator_src}/stdx/allocator/common.d ${allocator_src}/stdx/allocator/internal.d \
78 + ${allocator_src}/stdx/allocator/mallocator.d ${allocator_src}/stdx/allocator/package.d \
79 + ${allocator_src}/stdx/allocator/gc_allocator.d ${allocator_src}/stdx/allocator/typed.d
80 +}
81 +
82 +d_src_test() {
83 + cd tests && ./test.sh
84 +}
85 +
86 +d_src_install() {
87 + dobin bin/dfmt
88 + dodoc README.md LICENSE.txt
89 + dobashcomp bash-completion/completions/dfmt
90 +}