blob: c16a420729f5a834a0438eee6f367f9b084fffa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/sword-module.eclass,v 1.3 2011/12/27 17:55:12 fauli 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"
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
|