summaryrefslogtreecommitdiff
path: root/eclass/freedict.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /eclass/freedict.eclass
reinit the tree, so we can have metadata
Diffstat (limited to 'eclass/freedict.eclass')
-rw-r--r--eclass/freedict.eclass49
1 files changed, 49 insertions, 0 deletions
diff --git a/eclass/freedict.eclass b/eclass/freedict.eclass
new file mode 100644
index 000000000000..06419626d348
--- /dev/null
+++ b/eclass/freedict.eclass
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: freedict.eclass
+# @MAINTAINER:
+# maintainer-needed@gentoo.org
+# @AUTHOR:
+# Original author: Seemant Kulleen
+# @BLURB: Ease the installation of freedict translation dictionaries
+# @DESCRIPTION:
+# This eclass exists to ease the installation of freedict translation
+# dictionaries. The only variables which need to be defined in the actual
+# ebuilds are FORLANG and TOLANG for the source and target languages,
+# respectively.
+
+# @ECLASS-VARIABLE: FORLANG
+# @DESCRIPTION:
+# Please see above for a description.
+
+# @ECLASS-VARIABLE: TOLANG
+# @DESCRIPTION:
+# Please see above for a description.
+
+inherit eutils multilib
+
+IUSE=""
+
+MY_P=${PN/freedict-/}
+
+S="${WORKDIR}"
+DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
+HOMEPAGE="http://www.freedict.de"
+SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="app-text/dictd"
+
+# @FUNCTION: freedict_src_install
+# @DESCRIPTION:
+# The freedict src_install function, which is exported
+freedict_src_install() {
+ insinto /usr/$(get_libdir)/dict
+ doins ${MY_P}.dict.dz
+ doins ${MY_P}.index
+}
+
+EXPORT_FUNCTIONS src_install