1 |
commit: b319c6e5c6112b81272c39ec2750e764d61802c9 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 26 21:47:05 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Thu May 26 21:47:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b319c6e5 |
7 |
|
8 |
dev-cpp/dtl: add 1.20 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-cpp/dtl/Manifest | 1 + |
13 |
dev-cpp/dtl/dtl-1.20.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++++++ |
14 |
dev-cpp/dtl/metadata.xml | 8 +++++++ |
15 |
3 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/dtl/Manifest b/dev-cpp/dtl/Manifest |
18 |
index 1bfa96ce0..8566de94c 100644 |
19 |
--- a/dev-cpp/dtl/Manifest |
20 |
+++ b/dev-cpp/dtl/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST dtl-1.19_p20210531.tar.gz 26011 BLAKE2B 1ac4194cf536c072c45c2e2da0f0fd26232a5bf2e7aa57e8323457b5d43222df6a8579a41e54cd941cc69e013d4dac9fd051ad33950ed89692629ef57564a5f6 SHA512 2ac1f3d9871ed39f4183ebf0d9d8a1381ef2dacc3677f525d025eb292fbf4676a5a67abe34dfa1ff12bdb66e0fa71a83b8a99130e2e8048e08d3392327e84a9a |
23 |
+DIST dtl-1.20.tar.gz 26227 BLAKE2B a52f1e8878b0bbd7204d979eaf0ba303722140c5f57259dc8592a50f0f039baa3a90c1d309ac089805736a383e9265cbd133289216fe85aaac677265a29303d2 SHA512 44cdaf190d8a103effbca8df244c652b642590795f7307f5f7fdf64fc34bdbe2fa5ab2e1a08185abf099e35b0d9158306a80a8dc24bba9eccab4c77c7b1eed5e |
24 |
|
25 |
diff --git a/dev-cpp/dtl/dtl-1.20.ebuild b/dev-cpp/dtl/dtl-1.20.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..f2b82a83b |
28 |
--- /dev/null |
29 |
+++ b/dev-cpp/dtl/dtl-1.20.ebuild |
30 |
@@ -0,0 +1,53 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
37 |
+ |
38 |
+inherit python-any-r1 scons-utils toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="diff template library written by C++" |
41 |
+HOMEPAGE="https://github.com/cubicdaiya/dtl" |
42 |
+SRC_URI="https://github.com/cubicdaiya/dtl/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="examples test" |
48 |
+ |
49 |
+DEPEND="test? ( dev-cpp/gtest )" |
50 |
+ |
51 |
+RESTRICT="!test? ( test )" |
52 |
+PATCHES=( "${FILESDIR}/${PN}-1.19_p20210531-do-not-append-O2.patch" ) |
53 |
+ |
54 |
+src_compile() { |
55 |
+ escons CC="$(tc-getCC)" |
56 |
+ if use test; then |
57 |
+ pushd test || die |
58 |
+ escons CC="$(tc-getCC)" |
59 |
+ popd || die |
60 |
+ fi |
61 |
+ if use examples; then |
62 |
+ pushd examples || die |
63 |
+ escons CC="$(tc-getCC)" |
64 |
+ popd || die |
65 |
+ fi |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ escons prefix="${T}" install |
70 |
+ insinto /usr/include/dtl |
71 |
+ doins "${T}/dtl/include"/* |
72 |
+ if use examples; then |
73 |
+ pushd examples || die |
74 |
+ rm SConstruct *.o *.cpp *.hpp || die |
75 |
+ exeinto /usr/libexec/dtl/examples |
76 |
+ doexe * |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+src_test() { |
81 |
+ pushd test || die |
82 |
+ escons check |
83 |
+} |
84 |
|
85 |
diff --git a/dev-cpp/dtl/metadata.xml b/dev-cpp/dtl/metadata.xml |
86 |
index 4f8e72c5c..11bb76780 100644 |
87 |
--- a/dev-cpp/dtl/metadata.xml |
88 |
+++ b/dev-cpp/dtl/metadata.xml |
89 |
@@ -5,4 +5,12 @@ |
90 |
<email>lssndrbarbieri@×××××.com</email> |
91 |
<name>Alessandro Barbieri</name> |
92 |
</maintainer> |
93 |
+ <upstream> |
94 |
+ <maintainer> |
95 |
+ <name>Tatsuhiko Kubo</name> |
96 |
+ <email>cubicdaiya@×××××.com</email> |
97 |
+ </maintainer> |
98 |
+ <bugs-to>https://github.com/cubicdaiya/dtl/issues</bugs-to> |
99 |
+ <remote-id type="github">cubicdaiya/dtl</remote-id> |
100 |
+ </upstream> |
101 |
</pkgmetadata> |