diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2013-06-25 08:53:31 -0700 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2013-06-25 08:53:31 -0700 |
commit | 7d877bb1dedf8bfcaefebdfbf950ceea6dcd2be2 (patch) | |
tree | f28837d17083697b749ca22d267864dc453f40fa /dev-java/fits/fits-1.11.0.ebuild | |
parent | sys-cluster/charm-6.5.0: Reorganized DEPENDs. (diff) | |
download | sci-7d877bb1dedf8bfcaefebdfbf950ceea6dcd2be2.tar.gz sci-7d877bb1dedf8bfcaefebdfbf950ceea6dcd2be2.tar.bz2 sci-7d877bb1dedf8bfcaefebdfbf950ceea6dcd2be2.zip |
dev-java/fits: Version bump
Package-Manager: portage-2.2.01.22013-prefix
RepoMan-Options: --force
Diffstat (limited to 'dev-java/fits/fits-1.11.0.ebuild')
-rw-r--r-- | dev-java/fits/fits-1.11.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/fits/fits-1.11.0.ebuild b/dev-java/fits/fits-1.11.0.ebuild new file mode 100644 index 000000000..a4ab801b3 --- /dev/null +++ b/dev-java/fits/fits-1.11.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +JAVA_PKG_IUSE="doc source test" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Java library for FITS input/output" +HOMEPAGE="http://fits.gsfc.nasa.gov/fits_libraries.html#java_tam" +SRC_URI="http://heasarc.gsfc.nasa.gov/docs/heasarc/${PN}/java/v1.0/v${PV}/${PN}_src.jar -> ${P}-src.jar" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +CDEPEND="dev-java/junit:4" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + test? ( + dev-java/ant-junit4 + dev-java/hamcrest-core + ) + ${CDEPEND}" + +EANT_EXTRA_ARGS="-Dpacakge.version=${PV}" +EANT_GENTOO_CLASSPATH="junit-4" +JAVA_ANT_REWRITE_CLASSPATH="true" + +src_unpack() { + mkdir -p ${P}/src && cd ${P}/src + unpack ${A} +} + +java_prepare() { + cd "${S}" + cp "${FILESDIR}"/README.Gentoo "${FILESDIR}"/build.xml . || die + epatch \ + "${FILESDIR}"/01-Use-getResource-to-access-CompressTest-data-for-unit.patch \ + "${FILESDIR}"/02-Update-ArrayFuncsTest.java-to-JUnit-4.patch +} + +src_test() { + ANT_TASKS="ant-junit4" eant test +} + +src_install() { + java-pkg_newjar build/${PN}.jar ${PN}.jar + use doc && java-pkg_dojavadoc doc/api + use source && java-pkg_dosrc src/* + #use examples && java-pkg_doexamples src/java/examples +} |