diff options
author | Russell Harmon <russ@eatnumber1.com> | 2010-03-14 03:03:24 -0400 |
---|---|---|
committer | Russell Harmon <russ@eatnumber1.com> | 2010-03-14 03:26:29 -0400 |
commit | 479b599a3602de2701ad940dc05215cc991896b0 (patch) | |
tree | fb95a0dc78493325d83f2135c61f28867e939efa | |
parent | Rename aufs2-util patch. (diff) | |
download | eatnumber1-479b599a3602de2701ad940dc05215cc991896b0.tar.gz eatnumber1-479b599a3602de2701ad940dc05215cc991896b0.tar.bz2 eatnumber1-479b599a3602de2701ad940dc05215cc991896b0.zip |
Add juds-0.93
-rw-r--r-- | dev-java/juds/files/juds-0.93_gentoo.patch | 27 | ||||
-rw-r--r-- | dev-java/juds/juds-0.93.ebuild | 49 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-java/juds/files/juds-0.93_gentoo.patch b/dev-java/juds/files/juds-0.93_gentoo.patch new file mode 100644 index 0000000..7afd386 --- /dev/null +++ b/dev-java/juds/files/juds-0.93_gentoo.patch @@ -0,0 +1,27 @@ +Index: Makefile +=================================================================== +--- Makefile (revision 59) ++++ Makefile (working copy) +@@ -3,12 +3,12 @@ + PACKAGE = com.google.code.juds + PACKAGE_DIR = com/google/code/juds + TEST_SOCKET_FILE = JUDS_TEST_SOCKET_FILE +-CC = gcc ++CC ?= gcc + PLAT = linux +-JAVA_HOME = /usr/lib/jvm/java-6-openjdk/ ++JAVA_HOME ?= /usr/lib/jvm/java-6-openjdk/ + INCLUDEPATH = -I $(JAVA_HOME)/include -I $(JAVA_HOME)/include/$(PLAT) + PREFIX = /usr +-CFLAGS = -O2 -Wall ++CFLAGS += -Wall + JAVA_FLAGS = -g:none -deprecation -target 1.6 + + +@@ -58,3 +58,6 @@ + + clean: + rm -f $(PACKAGE_DIR)/*.class $(PACKAGE_DIR)/test/*.class $(PACKAGE_DIR)/*.h *.so *.jar $(TEST_SOCKET_FILE) ++ ++javadoc: ++ $(JAVA_HOME)/bin/javadoc -protected -d doc $(PACKAGE) diff --git a/dev-java/juds/juds-0.93.ebuild b/dev-java/juds/juds-0.93.ebuild new file mode 100644 index 0000000..8bfb79c --- /dev/null +++ b/dev-java/juds/juds-0.93.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +JAVA_PKG_IUSE="source doc" + +inherit eutils java-pkg-2 toolchain-funcs + +DESCRIPTION="Java Unix Domain Sockets (JUDS) provide classes to address the need +in Java for accessing Unix domain sockets." +HOMEPAGE="http://code.google.com/p/juds/" +SRC_URI="http://juds.googlecode.com/files/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="" + +COMMON_DEP="" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEP}" + +src_prepare() { + epatch "$FILESDIR"/"${P}_gentoo.patch" +} + +src_compile() { + tc-export CC + export JAVA_HOME="$(java-config -O)" + emake || die + if use doc; then + emake javadoc || die + fi +} + +src_install() { + java-pkg_dojar "${P}.jar" + java-pkg_doso libunixdomainsocket.so + use source && java-pkg_dosrc . + use doc && java-pkg_dojavadoc doc +} + |