blob: e006e953742b1497f4cb6ff1c337b8e0f5bf587d (
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
/var/paludis/repositories/gentoo/sys-fs/e2fsprogs/filesnder the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/genshi/genshi-0.5.1.ebuild,v 1.5 2008/11/16 17:46:16 maekke Exp $
NEED_PYTHON=2.3
inherit distutils subversion
MY_P="Genshi-${PV}"
DESCRIPTION="Python toolkit for stream-based generation of output for the web."
HOMEPAGE="http://genshi.edgewall.org/"
SRC_URI=""
ESVN_REPO_URI="http://svn.edgewall.org/repos/genshi/trunk"
LICENSE="BSD"
SLOT=""
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
IUSE="doc examples"
DEPEND="dev-python/setuptools"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
subversion_src_unpack
cd ${S}
rm setup.cfg
epatch ${FILESDIR}/version_info.patch
}
src_install() {
distutils_src_install
if use doc ; then
dodoc doc/*.txt
dohtml -r doc/*
fi
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
src_test() {
"${python}" setup.py test || die "test failed"
}
ibs/jpeg )
sdl? ( media-libs/libsdl )
vorbis? ( media-libs/libogg
media-libs/libvorbis )
truetype? ( >=media-libs/freetype-2.1 )
alsa? ( media-libs/alsa-lib )
mng? ( media-libs/libmng )
png? ( media-libs/libpng )
wxwindows? ( x11-libs/pango
=x11-libs/wxGTK-2.6* )
javascript? ( dev-lang/spidermonkey )
cegui? ( >=dev-games/cegui-0.5.0 )
x11-libs/libXaw
x11-libs/libXxf86vm"
DEPEND="${RDEPEND}
3ds? ( media-libs/lib3ds )
java? ( dev-java/ant-core
>=virtual/jdk-1.5 )
dev-util/ftjam
dev-lang/swig
dev-util/pkgconfig"
S=${WORKDIR}/${MY_P}
src_unpack() {
# unpack ${A}
subversion_src_unpack
cd "${S}"
# Installing doc conflict with dodoc on src_install
# Removing conflicting target
sed -i -e "/^InstallDoc/d" \
Jamfile.in \
docs/Jamfile \
|| die "sed failed"
}
src_compile() {
if useq wxwindows; then
WX_GTK_VER=2.6
need-wxwidgets gtk2
fi
# -O3 is hanging compilation of python script plugin
# trying -O2 just in case
replace-flags -O3 -O2
econf --enable-cpu-specific-optimizations=no \
--disable-separate-debug-info \
--without-lcms \
--without-caca \
--without-bullet \
--without-openal \
--without-jackasyn \
--without-mikmod \
--disable-make-emulation \
$(use_with perl) \
$(use_with python) \
$(use_with java) \
$(use_with png) \
$(use_with jpeg) \
$(use_with mng) \
$(use_with vorbis) \
$(use_with 3ds) \
$(use_with ode) \
$(use_with truetype freetype2) \
$(use_with cal3d) \
$(use_with sdl) \
$(use_with wxwindows wx) \
$(use_with cegui CEGUI) \
$(use_with cg Cg) \
$(use_with javascript js) \
$(use_with alsa asound)
#remove unwanted CFLAGS added by ./configure
sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \
Jamconfig \
|| die "sed failed"
jam -q || die "compile failed"
}
src_install() {
for installTarget in install_bin install_plugin install_lib \
install_include install_data install_config
do
jam -q -s DESTDIR="${D}" ${installTarget} \
|| die "jam ${installTarget} failed"
done
if use doc; then
jam -q -s DESTDIR="${D}" install_doc || die "jam install_doc failed"
fi
dodoc README docs/history* docs/todo_*
echo "CRYSTAL_PLUGIN=/usr/$(get_libdir)/${P}" > 90crystalspace
echo "CRYSTAL_CONFIG=/etc/${P}" >> 90crystalspace
doenvd 90crystalspace
}
pkg_postinst() {
elog "Examples coming with this package, need correct light calculation"
elog "Do the following commands, with the root account, to fix that:"
# Fill cache directory for the examples
local dir
for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \
terrain terrainf;
do
elog "p
|