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