blob: 5984ccca0632627c1d98d7f412b79f5c2748254b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/wx4j/wx4j-0.2.0.ebuild,v 1.2 2005/07/15 13:27:53 axxo Exp $
inherit eutils java-pkg
DESCRIPTION="A blending of the wxWindows C++ class library with Java"
HOMEPAGE="http://www.wx4j.org/"
SRC_URI="mirror://sourceforge/wx4j/${P}.tar.bz2"
LICENSE="BSD"
SLOT="1"
KEYWORDS="-amd64 ~x86 ~ppc" #segfaults on amd64
IUSE="examples gtk2 source"
RDEPEND=">=virtual/jre-1.4
=x11-libs/wxGTK-2.4*
gtk2? ( >=x11-libs/gtk+-2.0
>=x11-libs/pango-1.2
>=dev-libs/glib-2.0 )
!gtk2? ( =x11-libs/gtk+-1.2*
=dev-libs/glib-1.2* )
>=dev-lang/swig-1.3.21"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}
gtk2? ( dev-util/pkgconfig )
>=dev-java/ant-1.6.2-r6"
src_unpack() {
unpack ${A}
cd ${S}
cp project/build.properties.dist build.properties
epatch ${FILESDIR}/${P}-build.patch
}
src_compile() {
local antflags="build"
ant ${antflags} || die "compilation failed"
}
src_install() {
java-pkg_dojar dist/wx4j/lib/*.jar
java-pkg_doso dist/wx4j/lib/libwx4j.so
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r project/samples/java/* ${D}/usr/share/doc/${PF}/examples
fi
use source && java-pkg_dosrc project/wx4j/java/*
}
|