blob: 45cf9988b6dbaff8853d4937940fa1b602c18fb5 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.1 2004/05/03 20:27:00 squinky86 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/KJV.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/StrongsGreek.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/StrongsHebrew.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/ASV.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/RSV.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/AKJV.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/ISBE.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/ISV.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/WebstersDict.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/KJVD.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/SME.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/Robinson.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/WEB.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/Packard.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/Vulgate.zip
http://www.crosswire.org/ftpmirror/pub/sword/modules/raw/Josephus.zip
offensive? (http://www.crosswire.org/ftpmirror/pub/sword/betamodules/raw/BoM.zip
http://www.crosswire.org/ftpmirror/pub/sword/betamodules/raw/Jasher.zip
http://www.crosswire.org/ftpmirror/pub/sword/betamodules/win/Quran.zip
http://www.crosswire.org/ftpmirror/pub/sword/betamodules/win/QuranShakir.zip)"
RESTRICT="nomirror"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~x86"
IUSE="offensive"
S=${WORKDIR}
RDEPEND="app-text/sword"
DEPEND="${RDEPEND}
app-arch/unzip"
src_unpack() {
# first, extract the easy ones
unpack KJV.zip > /dev/null
unpack StrongsGreek.zip > /dev/null
unpack StrongsHebrew.zip > /dev/null
unpack ASV.zip > /dev/null
unpack RSV.zip > /dev/null
unpack AKJV.zip > /dev/null
unpack ISBE.zip > /dev/null
unpack ISV.zip > /dev/null
unpack WebstersDict.zip > /dev/null
unpack KJVD.zip > /dev/null
unpack SME.zip > /dev/null
unpack Robinson.zip > /dev/null
unpack WEB.zip > /dev/null
unpack Packard.zip > /dev/null
unpack Vulgate.zip > /dev/null
unpack Josephus.zip > /dev/null
if [ "`use offensive`" ]; then
unpack BoM.zip > /dev/null
unpack Jasher.zip > /dev/null
# uh oh, the quran is only availabe for windows; extract the data
unpack Quran.zip > /dev/null
unzip ${S}/data.zip > /dev/null
unpack QuranShakir.zip > /dev/null
unzip ${S}/data.zip > /dev/null
fi
}
src_compile() {
einfo "Nothing to compile."
}
src_install () {
dodir /usr/share/sword/modules
cp -a ${S}/modules/* ${D}/usr/share/sword/modules/
dodir /usr/share/sword/mods.d
# there are windows-only modules in the offensive flag that put
# config files into /newmods instead of /mods.d
use offensive && cp ${S}/newmods/* ${D}/usr/share/sword/mods.d/
cp ${S}/mods.d/* ${D}/usr/share/sword/mods.d/
}
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/"
use offensive || {
echo
einfo "You do not have the offensive USE flag enabled."
einfo "Questionable texts were not installed. To install them,"
einfo "USE=\"offensive\" emerge sword-modules"
echo
}
}
|