From 2233a58322e86d9adc46704f19f9e802d50434ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petteri=20R=C3=A4ty?= Date: Tue, 16 Jan 2007 17:13:38 +0000 Subject: [PATCH] Separated caucho-services from 3.0.8 to dev-java/caucho-services. Package-Manager: portage-2.1.2 --- dev-java/hessian/Manifest | 29 ++++++++-- dev-java/hessian/files/3.0.8-java5.patch | 28 ++++++++++ .../hessian/files/digest-hessian-3.0.8-r4 | 3 + dev-java/hessian/hessian-3.0.8-r4.ebuild | 55 +++++++++++++++++++ dev-java/hessian/metadata.xml | 6 +- 5 files changed, 114 insertions(+), 7 deletions(-) create mode 100644 dev-java/hessian/files/3.0.8-java5.patch create mode 100644 dev-java/hessian/files/digest-hessian-3.0.8-r4 create mode 100644 dev-java/hessian/hessian-3.0.8-r4.ebuild diff --git a/dev-java/hessian/Manifest b/dev-java/hessian/Manifest index 9c6ace571275..af1b05513754 100644 --- a/dev-java/hessian/Manifest +++ b/dev-java/hessian/Manifest @@ -1,3 +1,10 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 3.0.8-java5.patch 1691 RMD160 6f648e6db6700ba6647f4cc0d418e32c2e6ce3f4 SHA1 22229718e352ee29ab572716cca571eece0afc65 SHA256 ec5c064b28d79c6a5d04d180c7fbb26f15c7f8f2d02fbf8cefa14c2595d32527 +MD5 0ddb1ba02bf5cf39491de7174845db2c files/3.0.8-java5.patch 1691 +RMD160 6f648e6db6700ba6647f4cc0d418e32c2e6ce3f4 files/3.0.8-java5.patch 1691 +SHA256 ec5c064b28d79c6a5d04d180c7fbb26f15c7f8f2d02fbf8cefa14c2595d32527 files/3.0.8-java5.patch 1691 AUX build-2.1.12.xml 1546 RMD160 ebd507967b0bb2fabe2aac044ef60e3785189654 SHA1 68699e0269a51d6f4eba82e5b15bd485974d8084 SHA256 db486d24f063b5ec263d6da56b52dd2a7cae686cb9c347fb9702cc0d3dda7868 MD5 c089b7d34f96c556a34bb8c402794023 files/build-2.1.12.xml 1546 RMD160 ebd507967b0bb2fabe2aac044ef60e3785189654 files/build-2.1.12.xml 1546 @@ -24,14 +31,18 @@ EBUILD hessian-3.0.8-r3.ebuild 1529 RMD160 70a31a9285d09db64ff5e2818d1e40168e5f3 MD5 135dd7842efab9efd51e5e365b51b2e3 hessian-3.0.8-r3.ebuild 1529 RMD160 70a31a9285d09db64ff5e2818d1e40168e5f3a45 hessian-3.0.8-r3.ebuild 1529 SHA256 0fcf5141f2be15160235b3edcd72e8e24a6a19a717b44a719c0213ae1b9657fd hessian-3.0.8-r3.ebuild 1529 +EBUILD hessian-3.0.8-r4.ebuild 1528 RMD160 c6f8bf593b3eb4e48f0d5685ec4d4969b4539cf6 SHA1 afed5e66929901f403efee7a00b14333999486ad SHA256 6688cebc75efea35c843feffc5433f0e07238a0ddacccc7033bad6532991f700 +MD5 257da0a088e021894e6702e861f4ab33 hessian-3.0.8-r4.ebuild 1528 +RMD160 c6f8bf593b3eb4e48f0d5685ec4d4969b4539cf6 hessian-3.0.8-r4.ebuild 1528 +SHA256 6688cebc75efea35c843feffc5433f0e07238a0ddacccc7033bad6532991f700 hessian-3.0.8-r4.ebuild 1528 MISC ChangeLog 1817 RMD160 620586ae99a2c2c7311e951151a1aa285594a113 SHA1 2d158b5eaa22778bc4fcb05d17d1de7272f25b7e SHA256 e1d6c4aea9934c116200822fda34bf0201d8df9248d73d1a05df20718ae5e933 MD5 eb6647a9d0fb7247d2a423810148b724 ChangeLog 1817 RMD160 620586ae99a2c2c7311e951151a1aa285594a113 ChangeLog 1817 SHA256 e1d6c4aea9934c116200822fda34bf0201d8df9248d73d1a05df20718ae5e933 ChangeLog 1817 -MISC metadata.xml 493 RMD160 2f7727e3bbc6e1cad719b0cd78a31f418fb55aa5 SHA1 2f231aefce90f6b02c0717aa4abf5f57c61014bd SHA256 13e0c3f8aefbdc3714ed96c75c06bda0d8ef00b9fb8214c4d53f11d541d2f282 -MD5 1ee3b9eb31c4a1302dc9c690a069fb77 metadata.xml 493 -RMD160 2f7727e3bbc6e1cad719b0cd78a31f418fb55aa5 metadata.xml 493 -SHA256 13e0c3f8aefbdc3714ed96c75c06bda0d8ef00b9fb8214c4d53f11d541d2f282 metadata.xml 493 +MISC metadata.xml 490 RMD160 21fcfd8d13a61480dc43637a5a9dda264e0a935d SHA1 17851e5ce80c2ff84aa65a90a13f975654bb58d6 SHA256 648632b1d516e8bda1ea2b22dea20bbe787a43476c0f2abd711a084da421d7bb +MD5 8b75e6a63a8bbdbfed34ecf6da02fb5f metadata.xml 490 +RMD160 21fcfd8d13a61480dc43637a5a9dda264e0a935d metadata.xml 490 +SHA256 648632b1d516e8bda1ea2b22dea20bbe787a43476c0f2abd711a084da421d7bb metadata.xml 490 MD5 8e9c3656edb0ec5e607d33a7f73a4c8c files/digest-hessian-2.1.12-r1 247 RMD160 37e35b74484ff191066828b201ee4272eb136e85 files/digest-hessian-2.1.12-r1 247 SHA256 61c1ca70d63ecf68963c34b8d6c89d4326ce3a0eba196a1eafef16254d6621ff files/digest-hessian-2.1.12-r1 247 @@ -44,3 +55,13 @@ SHA256 68863d126b1b172d3fc0d0ebbacce2798a621ace8bbafdbbd5eb4142e337521c files/di MD5 cf0468dd677f369fb511f69fcbf7311e files/digest-hessian-3.0.8-r3 244 RMD160 d467ce5884fa15dca5e6667ab63a64656871322c files/digest-hessian-3.0.8-r3 244 SHA256 68863d126b1b172d3fc0d0ebbacce2798a621ace8bbafdbbd5eb4142e337521c files/digest-hessian-3.0.8-r3 244 +MD5 cf0468dd677f369fb511f69fcbf7311e files/digest-hessian-3.0.8-r4 244 +RMD160 d467ce5884fa15dca5e6667ab63a64656871322c files/digest-hessian-3.0.8-r4 244 +SHA256 68863d126b1b172d3fc0d0ebbacce2798a621ace8bbafdbbd5eb4142e337521c files/digest-hessian-3.0.8-r4 244 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFFrQfOcxLzpIGCsLQRAhCHAKCGfTkdWoA/Dkp1qMB7fLlTHR+4NACfVyaY +HfY6tEhDbX0X0+m7aep/CbU= +=SFMJ +-----END PGP SIGNATURE----- diff --git a/dev-java/hessian/files/3.0.8-java5.patch b/dev-java/hessian/files/3.0.8-java5.patch new file mode 100644 index 000000000000..906eb7efca18 --- /dev/null +++ b/dev-java/hessian/files/3.0.8-java5.patch @@ -0,0 +1,28 @@ +diff -uNr hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxyFactory.java hessian-3.0.8/src/com/caucho/hessian/client/HessianProxyFactory.java +--- hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxyFactory.java 2006-08-15 10:38:05.000000000 +0200 ++++ hessian-3.0.8/src/com/caucho/hessian/client/HessianProxyFactory.java 2006-08-15 10:40:24.000000000 +0200 +@@ -230,7 +230,7 @@ + { + HessianProxy handler = new HessianProxy(this, new URL(url)); + +- return Proxy.newProxyInstance(api.getClassLoader(), ++ return java.lang.reflect.Proxy.newProxyInstance(api.getClassLoader(), + new Class[] { api, + HessianRemoteObject.class }, + handler); +diff -uNr hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxy.java hessian-3.0.8/src/com/caucho/hessian/client/HessianProxy.java +--- hessian-3.0.8.orig/src/com/caucho/hessian/client/HessianProxy.java 2006-08-15 10:38:05.000000000 +0200 ++++ hessian-3.0.8/src/com/caucho/hessian/client/HessianProxy.java 2006-08-15 10:40:06.000000000 +0200 +@@ -94,10 +94,10 @@ + if (methodName.equals("equals") && + params.length == 1 && params[0].equals(Object.class)) { + Object value = args[0]; +- if (value == null || ! Proxy.isProxyClass(value.getClass())) ++ if (value == null || ! java.lang.reflect.Proxy.isProxyClass(value.getClass())) + return new Boolean(false); + +- HessianProxy handler = (HessianProxy) Proxy.getInvocationHandler(value); ++ HessianProxy handler = (HessianProxy) java.lang.reflect.Proxy.getInvocationHandler(value); + + return new Boolean(_url.equals(handler.getURL())); + } diff --git a/dev-java/hessian/files/digest-hessian-3.0.8-r4 b/dev-java/hessian/files/digest-hessian-3.0.8-r4 new file mode 100644 index 000000000000..bbef2bfc8555 --- /dev/null +++ b/dev-java/hessian/files/digest-hessian-3.0.8-r4 @@ -0,0 +1,3 @@ +MD5 de8cb0063ef400a2f0f98a42f3714e5a hessian-3.0.8-src.jar 184076 +RMD160 58fabf4adaf5fc508293c55a4451ab2dde48265a hessian-3.0.8-src.jar 184076 +SHA256 467163cb89ca6f40d8fd8ccafd1ca9c8e3a4d670529acbc53c0e0efe29c2cb1b hessian-3.0.8-src.jar 184076 diff --git a/dev-java/hessian/hessian-3.0.8-r4.ebuild b/dev-java/hessian/hessian-3.0.8-r4.ebuild new file mode 100644 index 000000000000..dd78bc2aefe6 --- /dev/null +++ b/dev-java/hessian/hessian-3.0.8-r4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/hessian/hessian-3.0.8-r4.ebuild,v 1.1 2007/01/16 17:13:38 betelgeuse Exp $ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols." +HOMEPAGE="http://www.caucho.com/hessian/" +SRC_URI="http://www.caucho.com/hessian/download/${P}-src.jar" + +LICENSE="Apache-1.1" +SLOT="3.0.8" +KEYWORDS="~amd64 ~x86" +IUSE="doc source" + +COMMON_DEP="=dev-java/servletapi-2.3* + ~dev-java/caucho-services-${PV}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + source? ( app-arch/zip ) + dev-java/ant-core + ${COMMON_DEP}" + +src_unpack() { + mkdir -p ${P}/src + cd ${P}/src + unpack ${A} + + # They package stuff from burlap in here + # Burlap is a separate protocol + rm -fr "${S}/src/com/caucho/burlap" + rm -fr "${S}/src/com/caucho/services" + + cd "${S}" + epatch "${FILESDIR}/3.0.8-java5.patch" + + # No included ant script! Bad Java developer, bad! + cp ${FILESDIR}/build-${PV}.xml build.xml + + # Populate classpath + echo "classpath=$(java-pkg_getjars servletapi-2.3):$(java-pkg_getjars caucho-services-3.0)" >> build.properties +} + +src_compile() { + eant -Dproject.name=${PN} jar $(use_doc) +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + use doc && java-pkg_dojavadoc dist/doc/api + use source && java-pkg_dosrc src/com +} diff --git a/dev-java/hessian/metadata.xml b/dev-java/hessian/metadata.xml index dd8d2a5c5026..656536970396 100644 --- a/dev-java/hessian/metadata.xml +++ b/dev-java/hessian/metadata.xml @@ -3,9 +3,9 @@ java -The Hessian binary web service protocol makes web services usable without -requiring a large framework, and without learning yet another alphabet soup -of protocols. Because it is a binary protocol, it is well-suited to sending +The Hessian binary web service protocol makes web services usable without +requiring a large framework, and without learning yet another alphabet soup +of protocols. Because it is a binary protocol, it is well-suited to sending binary data without any need to extend the protocol with attachments. -- 2.26.2