summaryrefslogtreecommitdiff
blob: c602d9c693094e4efa4102eb7502f9903e8707ec (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/entity/entity-0.7.2-r1.ebuild,v 1.9 2002/10/05 05:39:10 drobbins Exp $

IUSE="sdl gnome ssl opengl python tcltk perl"

S=${WORKDIR}/${P}
DESCRIPTION="An XML Framework"
SRC_URI="http://www.entity.cx/Download/files/${P}.tar.gz"
HOMEPAGE="http://www.entity.cx"

DEPEND=">=media-libs/imlib-1.9.10-r1
	>=dev-libs/libpcre-3.2
	tcltk? ( >=dev-lang/tk-8.1.1 )
	perl? ( >=sys-devel/perl-5.6 )
	python? ( >=dev-lang/python-2.0-r4 )
	sdl? ( >=media-libs/libsdl-1.1.7 )
	ssl? ( >=dev-libs/openssl-0.9.6 )
	opengl? ( <x11-libs/gtkglarea-1.99.0 )
	gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 )"

SLOT="0"
LICENSE="MIT"
KEYWORDS="x86 sparc sparc64"


src_compile() {

	local myconf
	use tcltk \
		&& myconf="--enable-tcl=module --with-tcl=/usr/lib" \
		|| myconf="--enable-tcl=no"
	
	use perl \
		&& myconf="${myconf} --enable-perl=static" \
		|| myconf="${myconf} --enable-perl=no"
	
	use python \
		&& myconf="${myconf} --enable-python=static" \
		|| myconf="${myconf} --enable-python=no"
	
	use ssl \
		&& myconf="${myconf} --enable-openssl"
	
	use sdl \
		&& myconf="${myconf} --enable-sdl"
	
	use gnome \
		&& myconf="${myconf} --enable-gnome --enable-gdkimlib"
	
	use opengl \
		&& myconf="${myconf} --enable-gtkgl"

	DEBIAN_ENTITY_MAGIC="voodoo" CFLAGS="$CFLAGS -I/usr/X11R6/include" \
		econf \
			--enable-exec-class=yes \
			--enable-gtk=module \
			--enable-c=module \
			--enable-javascript=yes \
			--with-included-njs \
			--enable-csinc \
			${myconf} || die

	make \
	LDFLAGS="-L/usr/lib/python2.0/config/ -lpython2.0 `python-config --libs`" \
		|| die
}

src_install () {
	make DESTDIR=${D} LD_LIBRARY_PATH=${D}/usr/lib install || die

	insinto /usr/share/entity/stembuilder
	doins stembuilder/*.e
	chmod +x ${D}/usr/share/entity/stembuilder/stembuilder.e
	insinto /usr/share/entity/apps
	doins apps/*.e
	chmod +x ${D}/usr/share/entity/apps/{enview,ev}.e
	exeinto /usr/share/entity/examples
	doexe examples/*.e
	insinto /usr/share/entity/stembuilder/images
	doins stembuilder/images/*.xpm

	dodoc AUTHORS COPYING ChangeLog LICENSE NEWS README TODO 
	docinto txt
	dodoc docs/README* docs/*.txt docs/*.ascii
	dohtml -r docs
	docinto print
	dodoc docs/*.ps
	docinto sgml
	dodoc docs/*.sgml
}