summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2019-09-28 03:01:59 +0000
committerMike Gilbert <floppym@gentoo.org>2019-09-28 22:56:14 -0400
commit618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c (patch)
tree2df81e30183db355fc6a090923996df19d6d3cdd /dev-libs/darts/darts-0.32h_pre20181117064816.ebuild
parentapp-i18n/librime: Depend on dev-libs/boost[nls]. (diff)
downloadgentoo-618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c.tar.gz
gentoo-618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c.tar.bz2
gentoo-618f64cbe4c3bfb29e70881dc0f2c9a2a88f086c.zip
dev-libs/darts: Use sources from Darts-clone (fork of Darts).
Fixes: https://bugs.gentoo.org/692950 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/darts/darts-0.32h_pre20181117064816.ebuild')
-rw-r--r--dev-libs/darts/darts-0.32h_pre20181117064816.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild b/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild
new file mode 100644
index 000000000000..a379bd2b6cb6
--- /dev/null
+++ b/dev-libs/darts/darts-0.32h_pre20181117064816.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2003-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+WANT_LIBTOOL="none"
+
+inherit autotools
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/s-yata/darts-clone"
+else
+ DARTS_CLONE_GIT_REVISION="e40ce4627526985a7767444b6ed6893ab6ff8983"
+fi
+
+DESCRIPTION="Darts-clone (Double-ARray Trie System) C++ library"
+# Original upstream: http://chasen.org/~taku/software/darts/
+HOMEPAGE="https://github.com/s-yata/darts-clone https://code.google.com/archive/p/darts-clone/"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/s-yata/darts-clone/archive/${DARTS_CLONE_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+BDEPEND=""
+DEPEND=""
+RDEPEND=""
+
+if [[ "${PV}" != "9999" ]]; then
+ S="${WORKDIR}/darts-clone-${DARTS_CLONE_GIT_REVISION}"
+fi
+
+src_prepare() {
+ default
+ eaclocal
+ eautoconf
+ eautomake
+}
+
+src_install() {
+ default
+
+ local language source_file target_file
+ for source_file in doc/*/*.md; do
+ language="${source_file#*/}"
+ language="${language%%/*}"
+ target_file="${source_file##*/}"
+ target_file="${target_file%.md}.${language}.md"
+ newdoc "${source_file}" "${target_file}"
+ done
+}