summaryrefslogtreecommitdiff
blob: edc585a9d8698761e0f3f2b53d184598a7ec4bfc (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer Spider <spider.gentoo@darkmere.wanfear.com> 
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp

# Source directory; the dir where the sources can be found
# (automatically unpacked) inside ${WORKDIR}.  Usually you can just
# leave this as-is.
S=${WORKDIR}/Propaganda

# Short one-line description of this package.
DESCRIPTION="Propaganda Volume 1-14 + E. Tiling images for your desktop"

SITE="http://www.resexcellence.com/propaganda/"
# Point to any required sources; these will be automatically
# downloaded by Portage.
SRC_URI="${SITE}Propaganda-Vol-01.tar.gz
	${SITE}Propaganda-Vol-02.tar.gz
	${SITE}Propaganda-Vol-03.tar.gz
	${SITE}Propaganda-Vol-04.tar.gz
	${SITE}Propaganda-Vol-05.tar.gz
	${SITE}Propaganda-Vol-06.tar.gz
	${SITE}Propaganda-Vol-07.tar.gz
	${SITE}Propaganda-Vol-08.tar.gz
	${SITE}Propaganda-Vol-09.tar.gz
	${SITE}Propaganda-Vol-10.tar.gz
	${SITE}Propaganda-Vol-11.tar.gz
	${SITE}Propaganda-Vol-12.tar.gz
	${SITE}Propaganda-13.tar.gz
	${SITE}Propaganda-14.tar.gz
	${SITE}Propaganda-For-E.tar.gz"
	
# Homepage, not used by Portage directly but handy for developer reference
HOMEPAGE="http://www.resexcellence.com/propaganda/index.shtml"

DEPEND=""

# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
#RDEPEND=""

src_compile() {
	rm -fr ${S}/../Propaganda-Vol-11/.finderinfo
	rm -fr ${S}/../Propaganda-Vol-11/.resource
	
	rm -fr ${S}/../Propaganda-Vol-12/.finderinfo
	rm -fr ${S}/../Propaganda-Vol-12/.resource	
	
	mv ${S}/../Propaganda-Vol-11 ${S}/Vol11
	mv ${S}/../Propaganda-Vol-12 ${S}/Vol12
	
	for NUM in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
		chmod -x ${S}/Vol${NUM}/*
		cd ${S}/Vol${NUM}
		rm *.html
		rename JPG jpg *.JPG
		chmod +x script.perl
		./script.perl *.jpg
	done
	chmod -x ${S}/Propaganda-For-E/*
	cd ${S}/Propaganda-For-E/
	rm *.html
	rename JPG jpg *.JPG
	chmod +x script.perl
	./script.perl *.jpg
	cd ${S}
	pwd
	rm -f ${S}/Vol2/\@	
	chmod ugo-w -R ${S}
	chmod ugo+r -R ${S}
}

src_install () {
	dodir /usr/share/pixmaps/
	gunzip magicbg.tar.gz
	dodoc COPYING READM*  magicbg.tar
	mv -f ${S} ${D}/usr/share/pixmaps || die
}