|
Lines 1-13
Link Here
|
| 1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2007 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild,v 1.6 2007/07/11 19:58:38 mr_bones_ Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jai-bin/sun-jai-bin-1.1.3.ebuild,v 1.6 2007/07/11 19:58:38 mr_bones_ Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit java-pkg-2 |
5 |
inherit java-pkg-2 |
| 6 |
|
6 |
|
| 7 |
MY_PV=${PV//./_} |
7 |
MY_PV=${PV//./_} |
| 8 |
DESCRIPTION="JAI is a class library for managing images." |
8 |
DESCRIPTION="JAI is a class library for managing images." |
| 9 |
HOMEPAGE="https://jai.dev.java.net/" |
9 |
HOMEPAGE="https://jai.dev.java.net/" |
| 10 |
SRC_URI="http://download.java.net/media/jai/builds/release/${MY_PV}/jai-${MY_PV}-lib-linux-i586.tar.gz" |
10 |
SRC_URI="!amd64? ( http://download.java.net/media/jai/builds/release/${MY_PV}/jai-${MY_PV}-lib-linux-i586.tar.gz ) |
|
|
11 |
amd64? ( http://download.java.net/media/jai/builds/release/${MY_PV}/jai-${MY_PV}-lib-linux-amd64.tar.gz )" |
| 11 |
LICENSE="sun-bcla-jai" |
12 |
LICENSE="sun-bcla-jai" |
| 12 |
SLOT="0" |
13 |
SLOT="0" |
| 13 |
KEYWORDS="~amd64 ~ia64 ppc ppc64 ~x86 ~x86-fbsd" |
14 |
KEYWORDS="~amd64 ~ia64 ppc ppc64 ~x86 ~x86-fbsd" |
|
Lines 31-41
Link Here
|
| 31 |
cd lib |
32 |
cd lib |
| 32 |
java-pkg_dojar *.jar |
33 |
java-pkg_dojar *.jar |
| 33 |
use x86 && java-pkg_doso *.so |
34 |
use x86 && java-pkg_doso *.so |
|
|
35 |
use amd64 && java-pkg_doso *.so |
| 34 |
} |
36 |
} |
| 35 |
|
37 |
|
| 36 |
pkg_postinst() { |
38 |
pkg_postinst() { |
| 37 |
elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}" |
39 |
elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}" |
| 38 |
elog 'To use you need to pass the following to java' |
40 |
elog 'To use you need to pass the following to java' |
| 39 |
use x86 && elog '-Djava.library.path=$(java-config -i sun-jai-bin)' |
41 |
use x86 && elog '-Djava.library.path=$(java-config -i sun-jai-bin)' |
|
|
42 |
use amd64 && elog '-Djava.library.path=$(java-config -i sun-jai-bin)' |
| 40 |
elog '-classpath $(java-config -p sun-jai-bin)' |
43 |
elog '-classpath $(java-config -p sun-jai-bin)' |
| 41 |
} |
44 |
} |