diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /eclass/sword-module.eclass |
reinit the tree, so we can have metadata
Diffstat (limited to 'eclass/sword-module.eclass')
-rw-r--r-- | eclass/sword-module.eclass | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/eclass/sword-module.eclass b/eclass/sword-module.eclass new file mode 100644 index 000000000000..6e8d38c769d7 --- /dev/null +++ b/eclass/sword-module.eclass @@ -0,0 +1,33 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# +# 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" +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 |