# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/sword-modules/sword-modules-20040503.ebuild,v 1.4 2004/06/24 22:52:31 agriffis Exp $ DESCRIPTION="a collection of modules for the sword project" HOMEPAGE="http://www.crosswire.org/sword/" SRC_URI="http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/GerElb.zip http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/GerElb1871.zip http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/GerLut.zip http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/GerLut1545.zip http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/GerSch.zip" RESTRICT="nomirror" LICENSE="freedist" SLOT="0" KEYWORDS="x86 ~ppc ~amd64" S=${WORKDIR} RDEPEND="app-text/sword" DEPEND="${RDEPEND} app-arch/unzip" src_unpack() { # first, extract the easy ones unpack GerElb.zip > /dev/null unpack GerElb1871.zip > /dev/null unpack GerLut.zip > /dev/null unpack GerLut1545.zip > /dev/null unpack GerSch.zip > /dev/null } src_compile() { einfo "Nothing to compile." } src_install () { dodir /usr/share/sword/modules || die cp -a ${S}/modules/* ${D}/usr/share/sword/modules/ || die dodir /usr/share/sword/mods.d || die cp ${S}/mods.d/* ${D}/usr/share/sword/mods.d/ || die # there are windows-only modules in the offensive flag that put # config files into /newmods instead of /mods.d if use offensive; then cp ${S}/newmods/* ${D}/usr/share/sword/mods.d/ || die fi } pkg_postinst() { echo einfo "You should now have modules for The SWORD Project." einfo "You can download more modules from the SWORD homepage:" einfo " http://www.crosswire.org/sword/" }