1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc examples source test"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="Unix sockets for Java"
11 SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
12 HOMEPAGE="https://github.com/jnr/jnr-unixsocket"
18 CDEPEND="dev-java/jnr-constants:0
20 dev-java/jnr-posix:3.0
30 cp "${FILESDIR}"/${P}-build.xml build.xml || die
33 JAVA_ANT_REWRITE_CLASSPATH="true"
34 EANT_GENTOO_CLASSPATH="jnr-constants,jnr-enxio,jnr-ffi-2,jnr-posix-3.0"
37 java-pkg_newjar target/${P}.jar ${PN}.jar
39 use source && java-pkg_dosrc src/main/java/jnr
40 use examples && java-pkg_doexamples src/main/java/jnr/unixsocket/example
41 use doc && java-pkg_dojavadoc target/site/apidocs