* [gentoo-commits] repo/gentoo:master commit in: app-dicts/duali-data/, app-text/duali/
@ 2016-08-25 21:32 Michael Orlitzky
0 siblings, 0 replies; only message in thread
From: Michael Orlitzky @ 2016-08-25 21:32 UTC (permalink / raw
To: gentoo-commits
commit: 866c7c17834da734f7f1abf8fa366dc247bac059
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 25 21:26:32 2016 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Aug 25 21:31:20 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=866c7c17
app-text/duali, app-dicts/duali-data: new revisions with EAPI=6.
These two packages needed simultaneous revisions to fix dictionary
database compilation. The app-text/duali package provides a script
(dict2db) that builds dictionary databases, and a module that uses
them. Both use the "anydbm" python module, and should not care about
the dbm backend, but the implementation details do -- they try to
guess a filename, and each dbm backend outputs a different file name.
In the new revision of duali, we require python[gdbm] to ensure that
we get at least one of the file names that we expect. The new
duali-data requires the new duali so that the databases get the
correct name, and everything is happy.
Minimal changes were needed for the duali-data ebuild, but the duali
ebuild needed to be updated to use python-single-r1 and was rewritten.
Gentoo-Bug: 380857
Package-Manager: portage-2.2.28
app-dicts/duali-data/duali-data-0.1b-r1.ebuild | 39 ++++++++++++++++++++++++
app-text/duali/duali-0.2.0-r1.ebuild | 41 ++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
diff --git a/app-dicts/duali-data/duali-data-0.1b-r1.ebuild b/app-dicts/duali-data/duali-data-0.1b-r1.ebuild
new file mode 100644
index 00000000..28d2b32
--- /dev/null
+++ b/app-dicts/duali-data/duali-data-0.1b-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Dictionary data for the Arab dictionary project duali"
+HOMEPAGE="http://www.arabeyes.org/project.php?proj=Duali"
+SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=app-text/duali-0.2.0-r1"
+RDEPEND=""
+
+src_compile() {
+ dict2db --path ./ || die 'failed to compile databases'
+}
+
+src_install() {
+ dodoc README
+
+ insinto /usr/share/duali
+ doins tableab tableac tablebc
+
+ # The dict2db script (and the spellchecker itself) use the python
+ # anydbm module, which means we kinda don't know what file suffix is
+ # going to pop out in src_compile. The fact that app-text/duali
+ # requires python[gdbm] means that we should at least get the gdbm
+ # database format (e.g. stemsdb) if not stems.db.
+ if [[ -e stems.db ]]; then
+ doins stems.db prefixes.db suffixes.db
+ else
+ doins stemsdb prefixesdb suffixesdb
+ fi
+}
diff --git a/app-text/duali/duali-0.2.0-r1.ebuild b/app-text/duali/duali-0.2.0-r1.ebuild
new file mode 100644
index 00000000..a29db3f
--- /dev/null
+++ b/app-text/duali/duali-0.2.0-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+# Duali uses "anydbm" which should even support a slow fallback;
+# however, due to implementation details it fails when the databases
+# aren't gdbm.
+PYTHON_REQ_USE="gdbm"
+
+inherit python-single-r1
+
+DESCRIPTION="Arabic dictionary based on the DICT protocol"
+HOMEPAGE="http://www.arabeyes.org/project.php?proj=Duali"
+SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}"
+PDEPEND=">=app-dicts/duali-data-0.1b-r1"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_install() {
+ python_fix_shebang duali dict2db trans2arabic arabic2trans
+ python_doexe duali dict2db trans2arabic arabic2trans
+
+ insinto /etc
+ doins duali.conf
+
+ doman doc/man/*.1
+ dodoc README ChangeLog
+
+ python_domodule pyduali
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-25 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 21:32 [gentoo-commits] repo/gentoo:master commit in: app-dicts/duali-data/, app-text/duali/ Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox