blob: 8e7fee5c43c1c84a5414334400f1d29c22aec9e6 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/php-java-bridge/php-java-bridge-2.0.8.ebuild,v 1.4 2005/11/29 01:48:35 weeve Exp $
PHP_EXT_NAME="java"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
inherit php-ext-source-r1
KEYWORDS="~ppc64 ~sparc ~x86"
DESCRIPTION="The PHP/Java bridge is a PHP module wich connects the PHP object system with the Java or ECMA 335 object system."
HOMEPAGE="http://php-java-bridge.sourceforge.net/"
SRC_URI="mirror://sourceforge/php-java-bridge/${PN}_${PV}.tar.bz2"
LICENSE="PHP-3"
SLOT="0"
IUSE=""
DEPEND="${DEPEND}
>=dev-util/re2c-0.9.9
dev-java/java-config
=virtual/jdk-1.4*"
need_php_by_category
pkg_setup() {
has_php
# we need session support in PHP for this to compile
require_php_with_use session
# if the user has compiled the internal Java extension, he can't use this package
if built_with_use =${PHP_PKG} java-internal ; then
eerror
eerror "You have built ${PHP_PKG} to use the internal Java extension."
eerror "If you want to use the php-java-bridge package, you must rebuild"
eerror "your PHP with the 'java-external' USE flag instead."
eerror
die "PHP built to use internal Java extension"
fi
}
src_compile() {
has_php
my_conf="--disable-servlet --with-java=`java-config --jdk-home`"
php-ext-source-r1_src_compile
}
src_install() {
php-ext-source-r1_src_install
insinto "${EXT_DIR}"
doins modules/JavaBridge.jar
doins modules/RunJavaBridge
doins modules/libnatcJavaBridge.a
doins modules/libnatcJavaBridge.so
dodoc-php ChangeLog README README.GNU_JAVA PROTOCOL.TXT
}
|