summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2008-02-23 17:09:47 +0000
committerSteve Dibb <beandog@gentoo.org>2008-02-23 17:09:47 +0000
commit176fe76e44d536b23faeeca410f3f0481983610f (patch)
tree9884776af761d8f35d3aadd5f71518066ea7865e /eclass
parentStable for HPPA. (diff)
downloadgentoo-2-176fe76e44d536b23faeeca410f3f0481983610f.tar.gz
gentoo-2-176fe76e44d536b23faeeca410f3f0481983610f.tar.bz2
gentoo-2-176fe76e44d536b23faeeca410f3f0481983610f.zip
initial commit
Diffstat (limited to 'eclass')
-rw-r--r--eclass/sword-module.eclass35
1 files changed, 35 insertions, 0 deletions
diff --git a/eclass/sword-module.eclass b/eclass/sword-module.eclass
new file mode 100644
index 000000000000..ba90bc3734e7
--- /dev/null
+++ b/eclass/sword-module.eclass
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/sword-module.eclass,v 1.1 2008/02/23 17:09:47 beandog Exp $
+
+#
+# eclass to simplify installation of Sword modules
+# Bugs to theology@gentoo.org
+#
+
+HOMEPAGE="http://www.crosswire.org/sword/modules/"
+
+# Sword packages are generally released as FooBar.zip in their 'rawzip' form
+# The files are also unversioned, so the packager will need to rename the
+# original file to something else and host it somewhere to avoid breaking
+# the digest when new versions are released.
+
+SRC_URI="mirror://gentoo/${SWORD_MODULE}-${PV}.zip"
+
+SLOT="0"
+IUSE=""
+
+S="${WORKDIR}"
+
+RDEPEND="app-text/sword
+ !app-text/sword-modules"
+DEPEND="app-arch/unzip"
+
+sword-module_src_install() {
+ insinto /usr/share/sword/modules
+ doins -r "${S}"/modules/*
+ insinto /usr/share/sword/mods.d
+ doins "${S}"/mods.d/*
+}
+
+EXPORT_FUNCTIONS src_install