Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/darts/
Date: Sun, 29 Sep 2019 02:56:54
Message-Id: 1569725774.618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c.floppym@gentoo
1 commit: 618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Sat Sep 28 03:01:59 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 02:56:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618f64cb
7
8 dev-libs/darts: Use sources from Darts-clone (fork of Darts).
9
10 Fixes: https://bugs.gentoo.org/692950
11 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
12 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
13
14 dev-libs/darts/Manifest | 1 +
15 .../darts/darts-0.32h_pre20181117064816.ebuild | 57 ++++++++++++++++++++++
16 dev-libs/darts/darts-9999.ebuild | 57 ++++++++++++++++++++++
17 dev-libs/darts/metadata.xml | 11 +++--
18 4 files changed, 122 insertions(+), 4 deletions(-)
19
20 diff --git a/dev-libs/darts/Manifest b/dev-libs/darts/Manifest
21 index 5a6424dbf09..0b686560203 100644
22 --- a/dev-libs/darts/Manifest
23 +++ b/dev-libs/darts/Manifest
24 @@ -1 +1,2 @@
25 DIST darts-0.32.tar.gz 234001 BLAKE2B e40f16e6ead25809d981c98924867903e1d0f3734682b61ad1be40a10a4212795dfdef55a0eb6f9d0f60ef7676ed27929a6812bf8f57972dcf00875e99d9917b SHA512 b9af8ce60688f5858dac2cac35a8666848dba6729f9f4364786123a1c0484e56c8b981ec04e59653afbcf20cce3b326a49243095213efb525b5669472ac7358e
26 +DIST darts-0.32h_pre20181117064816.tar.gz 38856 BLAKE2B db4bf7ca88ceb81dcaee4494708d3f469dfc4f1ce53aa731f291d4b7d73f2c48a9e8d97caf32fd0bdd66aaba1c9e3e2e0289a5f2fdf7f5f1f2351c3808d6a98c SHA512 092cc833fff937365117f5b780f09a1ffdd25104ab57e36f7cba25a9a6bee289c105cae997a50b61b5b542c1c34d71bddf132d0ca14d563198b57caa9af2ac22
27
28 diff --git a/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild b/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild
29 new file mode 100644
30 index 00000000000..a379bd2b6cb
31 --- /dev/null
32 +++ b/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild
33 @@ -0,0 +1,57 @@
34 +# Copyright 2003-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +WANT_LIBTOOL="none"
39 +
40 +inherit autotools
41 +
42 +if [[ "${PV}" == "9999" ]]; then
43 + inherit git-r3
44 +
45 + EGIT_REPO_URI="https://github.com/s-yata/darts-clone"
46 +else
47 + DARTS_CLONE_GIT_REVISION="e40ce4627526985a7767444b6ed6893ab6ff8983"
48 +fi
49 +
50 +DESCRIPTION="Darts-clone (Double-ARray Trie System) C++ library"
51 +# Original upstream: http://chasen.org/~taku/software/darts/
52 +HOMEPAGE="https://github.com/s-yata/darts-clone https://code.google.com/archive/p/darts-clone/"
53 +if [[ "${PV}" == "9999" ]]; then
54 + SRC_URI=""
55 +else
56 + SRC_URI="https://github.com/s-yata/darts-clone/archive/${DARTS_CLONE_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
57 +fi
58 +
59 +LICENSE="BSD-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
62 +IUSE=""
63 +
64 +BDEPEND=""
65 +DEPEND=""
66 +RDEPEND=""
67 +
68 +if [[ "${PV}" != "9999" ]]; then
69 + S="${WORKDIR}/darts-clone-${DARTS_CLONE_GIT_REVISION}"
70 +fi
71 +
72 +src_prepare() {
73 + default
74 + eaclocal
75 + eautoconf
76 + eautomake
77 +}
78 +
79 +src_install() {
80 + default
81 +
82 + local language source_file target_file
83 + for source_file in doc/*/*.md; do
84 + language="${source_file#*/}"
85 + language="${language%%/*}"
86 + target_file="${source_file##*/}"
87 + target_file="${target_file%.md}.${language}.md"
88 + newdoc "${source_file}" "${target_file}"
89 + done
90 +}
91
92 diff --git a/dev-libs/darts/darts-9999.ebuild b/dev-libs/darts/darts-9999.ebuild
93 new file mode 100644
94 index 00000000000..556c583634b
95 --- /dev/null
96 +++ b/dev-libs/darts/darts-9999.ebuild
97 @@ -0,0 +1,57 @@
98 +# Copyright 2003-2019 Gentoo Authors
99 +# Distributed under the terms of the GNU General Public License v2
100 +
101 +EAPI="7"
102 +WANT_LIBTOOL="none"
103 +
104 +inherit autotools
105 +
106 +if [[ "${PV}" == "9999" ]]; then
107 + inherit git-r3
108 +
109 + EGIT_REPO_URI="https://github.com/s-yata/darts-clone"
110 +else
111 + DARTS_CLONE_GIT_REVISION=""
112 +fi
113 +
114 +DESCRIPTION="Darts-clone (Double-ARray Trie System) C++ library"
115 +# Original upstream: http://chasen.org/~taku/software/darts/
116 +HOMEPAGE="https://github.com/s-yata/darts-clone https://code.google.com/archive/p/darts-clone/"
117 +if [[ "${PV}" == "9999" ]]; then
118 + SRC_URI=""
119 +else
120 + SRC_URI="https://github.com/s-yata/darts-clone/archive/${DARTS_CLONE_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
121 +fi
122 +
123 +LICENSE="BSD-2"
124 +SLOT="0"
125 +KEYWORDS=""
126 +IUSE=""
127 +
128 +BDEPEND=""
129 +DEPEND=""
130 +RDEPEND=""
131 +
132 +if [[ "${PV}" != "9999" ]]; then
133 + S="${WORKDIR}/darts-clone-${DARTS_CLONE_GIT_REVISION}"
134 +fi
135 +
136 +src_prepare() {
137 + default
138 + eaclocal
139 + eautoconf
140 + eautomake
141 +}
142 +
143 +src_install() {
144 + default
145 +
146 + local language source_file target_file
147 + for source_file in doc/*/*.md; do
148 + language="${source_file#*/}"
149 + language="${language%%/*}"
150 + target_file="${source_file##*/}"
151 + target_file="${target_file%.md}.${language}.md"
152 + newdoc "${source_file}" "${target_file}"
153 + done
154 +}
155
156 diff --git a/dev-libs/darts/metadata.xml b/dev-libs/darts/metadata.xml
157 index c921b96adf6..bb2998c433a 100644
158 --- a/dev-libs/darts/metadata.xml
159 +++ b/dev-libs/darts/metadata.xml
160 @@ -1,8 +1,11 @@
161 <?xml version="1.0" encoding="UTF-8"?>
162 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
163 <pkgmetadata>
164 -<maintainer type="project">
165 - <email>cjk@g.o</email>
166 - <name>Cjk</name>
167 -</maintainer>
168 + <maintainer type="project">
169 + <email>cjk@g.o</email>
170 + <name>Cjk</name>
171 + </maintainer>
172 + <upstream>
173 + <remote-id type="github">s-yata/darts-clone</remote-id>
174 + </upstream>
175 </pkgmetadata>