Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mirror.msu.net/pub/gentoo-portage/eclass/sword-module.eclass
Дата изменения: Sun Aug 9 03:38:18 2015
Дата индексирования: Sun Apr 10 06:21:35 2016
Кодировка:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

#
# 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