summaryrefslogtreecommitdiff
path: root/dev-java/yanfs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/yanfs')
-rw-r--r--dev-java/yanfs/Manifest6
-rw-r--r--dev-java/yanfs/files/1.0-make.patch82
-rw-r--r--dev-java/yanfs/metadata.xml8
-rw-r--r--dev-java/yanfs/yanfs-1.0.ebuild45
4 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/yanfs/Manifest b/dev-java/yanfs/Manifest
new file mode 100644
index 000000000000..0b865c3f6d8d
--- /dev/null
+++ b/dev-java/yanfs/Manifest
@@ -0,0 +1,6 @@
+AUX 1.0-make.patch 2620 SHA256 fce4ab605ed809cc7547c92ad08b8b40b45e221849dd3f2ed5fb0cc4c4854081 SHA512 85ad4c443800a33ffb16fee52bd1a2fd89dc8d3de8f6adbc184ca72ad3ee8c877d4658b4c2c82ebdb54b333c16dd54534f47d193e9b808a16f92a97bfd5b427a WHIRLPOOL 95602bdef0687e50691f8742a3ff9225247ebe8651b5e15ac8bc9a84bf6dc597692642df5c60e2a830e3919dc4bf6a0049fd10df80f76ba0e98eb786c8df1599
+DIST yanfs-1.0.tar.bz2 107232 SHA256 b1332f97391cf91e544c2668e2a1d81e4d4c76d3bd84b348bbe448eb58a7b719 SHA512 e7031ba630360240de136f588c337a3a4b551320f5e121c1910fc58ba08c7b7c6fe95fb87b57263c19e00a3e44fe81c36d9e8e8971d4fdf910bb3797c0a1eeeb WHIRLPOOL 05ecf92100f3fa760ba694659e8f401e69adbbef8ba31e5dbf36bfd81b387afc1bfc2d335dfe6d0f321579813fd0f9a60ead5db7b7450b3e71e80579ddd89713
+EBUILD yanfs-1.0.ebuild 1030 SHA256 cebb6791857e01611981c75d82719a445c5cf66d97e1f39f6f946f3cc253ceba SHA512 28fcb33d53374eb1c94cbbe50f42b576ad09eb30f4b3c4fcac042c2da096a8d8b0d7e7b308a8413d38d3215d9e03eff482e22b4e16bb3ede6fe89f3b00eeeaa3 WHIRLPOOL 73488447f44f248a2aa3585f98797984323d53f8357175699e1b5bbe626afdbba6293b845ebd17a31132cb5372f2322fb00cf311d060e7dbb3aa100770f3fcac
+MISC ChangeLog 3039 SHA256 908757d9b7c29a982332a7b9b6cfa1d280df82352d16e8ba80f48bdb1ab83159 SHA512 68e32eccda9c34610e8d0511d4efe185ca402a25c3c5dd67d935c431e101f160daa1e5dce3bfa372c75263d25ca8a154880fb0962de547524b28808923a06827 WHIRLPOOL da51af888089a163a591db0d395e409b591af1d83c7a026721b9e55c6c7b48e44c7637a4dd674a2a5fc2c1705a0588b5291c8b01b4549baf9dfe4d3de87a0af4
+MISC ChangeLog-2015 373 SHA256 ddc5acedb9ebbe175a43361045d7f1bfab80cd5348f6b161bbb3975aa9fcccd2 SHA512 de50210a372c803d292f862c997b9ef98c908658fbcaac54f4f2713ac589e6b318551742ee86400325a9108ff2dea9388b3fefeeb62424ced9992418443c1360 WHIRLPOOL e9a72373a2a58874db5b87ca7609448d4a47bbf3b95701281adeb4a7f6f53500ef5d4c87a11611c2a8ed376a9d6a62490853b7ae682cb2d360407c432c38730b
+MISC metadata.xml 236 SHA256 3e778d35b34b5cc1a4dd7ce105fe7d2a99b25fb6dfe24709455da94baa8a0548 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253 WHIRLPOOL 7967660784d0d28e9a3c3c222c5bf85b3a8b59fd84b61780e4e7cc1aa5d8bd87bee40e4c5c42e646f15d6641fe182340bcbe8be94c785f40e0ac870c7a96e5cc
diff --git a/dev-java/yanfs/files/1.0-make.patch b/dev-java/yanfs/files/1.0-make.patch
new file mode 100644
index 000000000000..3cd23cc042be
--- /dev/null
+++ b/dev-java/yanfs/files/1.0-make.patch
@@ -0,0 +1,82 @@
+diff --git a/src/com/sun/Makefile.common b/src/com/sun/Makefile.common
+index a5e49e8..ceea3ca 100644
+--- a/src/com/sun/Makefile.common
++++ b/src/com/sun/Makefile.common
+@@ -35,7 +35,14 @@
+ # nuclear facility.
+ #
+
+-include $(CODEMGR_WS)/src/com/sun/Makefile.defs
++CDIR= $(CODEMGR_WS)/classes
++JAVADIR= /usr/java
++CLASSPATH= $(CDIR):$(JAVADIR)/lib/classes.zip
++JCFLAGS= -classpath $(CLASSPATH)
++JC= $(JAVADIR)/bin/javac
++TFILE= $(CDIR)/$(PKGDIR)/.tfile
++M4= /usr/bin/m4
++
+
+ # XXX
+ #SWINGDIR, BEANCLASSPATH, JCBFLAGS need to be removed once JDK1.2 is FCS.
+diff --git a/src/com/sun/Makefile.defs b/src/com/sun/Makefile.defs
+index 2fa61c9..b4692cc 100644
+--- a/src/com/sun/Makefile.defs
++++ b/src/com/sun/Makefile.defs
+@@ -36,9 +36,9 @@
+ #
+
+ CDIR= $(CODEMGR_WS)/classes
+-JAVADIR= /usr/java
++JAVADIR= /usr
+ CLASSPATH= $(CDIR):$(JAVADIR)/lib/classes.zip
+ JCFLAGS= -classpath $(CLASSPATH)
+ JC= $(JAVADIR)/bin/javac
+ TFILE= $(CDIR)/$(PKGDIR)/.tfile
+-M4= /usr/ccs/bin/m4
++M4= /usr/bin/m4
+diff --git a/src/com/sun/gssapi/Makefile b/src/com/sun/gssapi/Makefile
+index 49d5933..fc16dfe 100644
+--- a/src/com/sun/gssapi/Makefile
++++ b/src/com/sun/gssapi/Makefile
+@@ -81,7 +81,7 @@ classes: $(CDIR)/$(PKGDIR) \
+ $(SUBDIRS)
+
+ $(PFILES):
+- $(RM) $@; install -s -m 644 -f $(@D) $(PROP_FILES)
++ $(RM) $@; install -m 644 $(PROP_FILES) $(@D)
+
+ clean:
+ $(RM) $(CDIR)/$(PKGDIR)/*.class $(TFILE) $(PFILES)
+diff --git a/src/com/sun/gssapi/mechs/dummy/Makefile b/src/com/sun/gssapi/mechs/dummy/Makefile
+index 88fc12d..cd3e0a7 100644
+--- a/src/com/sun/gssapi/mechs/dummy/Makefile
++++ b/src/com/sun/gssapi/mechs/dummy/Makefile
+@@ -59,7 +59,7 @@ M4DEF_PROP += -D CONTEXT=_K1000A49
+ M4DEF_PROP += -D CRED=_K2102CC5
+
+ Dummy.java: Dummy.m4
+- /usr/ccs/bin/m4 $(M4DEF_PROP) Dummy.m4 > Dummy.java
++ $(M4) $(M4DEF_PROP) Dummy.m4 > Dummy.java
+
+ # Service Provider Interface Context Class and its methods/interface
+ M4DEF_CTXTSPI = -D GSSCtxtSpi=C018FE95
+@@ -86,5 +86,5 @@ M4DEF_CTXTSPI += -D _importSecCtxt=_S0AC8F9E
+ M4DEF_CTXTSPI += -D _dispose=_S020B957
+
+ DummyCtxt.java: DummyCtxt.m4
+- /usr/ccs/bin/m4 $(M4DEF_CTXTSPI) DummyCtxt.m4 > DummyCtxt.java
++ $(M4) $(M4DEF_CTXTSPI) DummyCtxt.m4 > DummyCtxt.java
+
+diff --git a/src/com/sun/nfs/XFileAccessor.java b/src/com/sun/nfs/XFileAccessor.java
+index 50281d1..348ee3a 100644
+--- a/src/com/sun/nfs/XFileAccessor.java
++++ b/src/com/sun/nfs/XFileAccessor.java
+@@ -71,7 +71,7 @@ class XFileAccessor implements com.sun.xfile.XFileAccessor {
+ return true;
+ } catch (IOException e) {
+ return false;
+- };
++ }
+ }
+
+ public XFile getXFile() {
diff --git a/dev-java/yanfs/metadata.xml b/dev-java/yanfs/metadata.xml
new file mode 100644
index 000000000000..952a4b9b605c
--- /dev/null
+++ b/dev-java/yanfs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/yanfs/yanfs-1.0.ebuild b/dev-java/yanfs/yanfs-1.0.ebuild
new file mode 100644
index 000000000000..9c248cd2c3ad
--- /dev/null
+++ b/dev-java/yanfs/yanfs-1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source examples"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Yet Another NFS - a Java NFS library"
+HOMEPAGE="https://java.net/projects/yanfs"
+SRC_URI="https://dev.gentoo.org/~ercpe/distfiles/dev-java/yanfs/yanfs-1.0.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND=">=virtual/jdk-1.6"
+
+S="${WORKDIR}/${P}"
+
+java_prepare() {
+ epatch "${FILESDIR}/${PV}-make.patch"
+ rm -r "${S}"/src/com/sun/gssapi/mechs/dummy || die
+
+ mkdir examples && \
+ mv "${S}"/src/com/sun/rpc/samples/ examples/rpc && \
+ mv "${S}"/src/com/sun/gssapi/samples/ examples/gssapi || die
+}
+
+src_compile() {
+ CODEMGR_WS="${S}" emake -C "${S}/src/com/sun/gssapi/"
+
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ java-pkg_dojar "${S}/${PN}.jar"
+
+ use source && java-pkg_dosrc "${S}"/src/*
+ use doc && java-pkg_dojavadoc "${S}"/api/
+ use examples && java-pkg_doexamples examples/*
+}