| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/sword-module.eclass,v 1.2 2009/05/29 18:46:24 beandog Exp $
|
| 4 |
|
| 5 |
#
|
| 6 |
# eclass to simplify installation of Sword modules
|
| 7 |
# Bugs to theology@gentoo.org
|
| 8 |
#
|
| 9 |
|
| 10 |
HOMEPAGE="http://www.crosswire.org/sword/modules/"
|
| 11 |
|
| 12 |
# Sword packages are generally released as FooBar.zip in their 'rawzip' form
|
| 13 |
# The files are also unversioned, so the packager will need to rename the
|
| 14 |
# original file to something else and host it somewhere to avoid breaking
|
| 15 |
# the digest when new versions are released.
|
| 16 |
|
| 17 |
SRC_URI="mirror://gentoo/${SWORD_MODULE}-${PV}.zip"
|
| 18 |
|
| 19 |
SLOT="0"
|
| 20 |
IUSE=""
|
| 21 |
|
| 22 |
S="${WORKDIR}"
|
| 23 |
|
| 24 |
RDEPEND="app-text/sword"
|
| 25 |
DEPEND="app-arch/unzip"
|
| 26 |
|
| 27 |
sword-module_src_install() {
|
| 28 |
insinto /usr/share/sword/modules
|
| 29 |
doins -r "${S}"/modules/*
|
| 30 |
insinto /usr/share/sword/mods.d
|
| 31 |
doins "${S}"/mods.d/*
|
| 32 |
}
|
| 33 |
|
| 34 |
EXPORT_FUNCTIONS src_install
|