diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2016-12-22 23:19:14 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-12-22 23:19:14 +0100 |
commit | 6c5db9c4b69acfbc0362194ecc89bcbe1b19f174 (patch) | |
tree | 7b1ea3f353213ffb951bb34ca4a9ee5e7907861a /dev-java/jsr173 | |
parent | dev-ml/js_of_ocaml: add missing dep on yojson (diff) | |
download | gentoo-6c5db9c4b69acfbc0362194ecc89bcbe1b19f174.tar.gz gentoo-6c5db9c4b69acfbc0362194ecc89bcbe1b19f174.tar.bz2 gentoo-6c5db9c4b69acfbc0362194ecc89bcbe1b19f174.zip |
dev-java/jsr173: EAPI 6 bump and ebuild clean up.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-java/jsr173')
-rw-r--r-- | dev-java/jsr173/files/jsr173-1.0-build.xml | 61 | ||||
-rw-r--r-- | dev-java/jsr173/jsr173-1.0-r2.ebuild | 58 |
2 files changed, 119 insertions, 0 deletions
diff --git a/dev-java/jsr173/files/jsr173-1.0-build.xml b/dev-java/jsr173/files/jsr173-1.0-build.xml new file mode 100644 index 000000000000..0fadc3fb4655 --- /dev/null +++ b/dev-java/jsr173/files/jsr173-1.0-build.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- + @author: Saleem Abdulrasool <compnerd@gentoo.org> + @date: 5/9/2005 + @revision: 1.0_alpha + + @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name} +--> + +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + <property name="dist.docs" value="${dist}/doc/api"/> + + <property name="libdir" value="lib"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <path id="lib.classpath"> + <fileset dir="${libdir}"> + <include name="**/*.jar"/> + </fileset> + </path> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpathref="lib.classpath"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Gentoo Portage"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${src}" destdir="${dist.docs}" packagenames="*" classpathref="lib.classpath"/> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/jsr173/jsr173-1.0-r2.ebuild b/dev-java/jsr173/jsr173-1.0-r2.ebuild new file mode 100644 index 000000000000..245e550a0ae2 --- /dev/null +++ b/dev-java/jsr173/jsr173-1.0-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Library for parsing and writing XML" +HOMEPAGE="http://dev2dev.bea.com/xml/stax.html" +SRC_URI="http://ftpna2.bea.com/pub/downloads/${PN}.jar" + +LICENSE="bea.ri.jsr173" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +CDEPEND="dev-java/jaxme:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6" + +S="${WORKDIR}" + +src_unpack() { + cd "${S}" || die + + jar xvf "${DISTDIR}/${A}" || die "failed to unpack" + jar xvf ${P//-/_}_src.jar || die "failed to unpack" +} + +src_prepare() { + default + + cd "${S}" || die + java-pkg_clean + cp "${FILESDIR}/${P}-build.xml" build.xml || die + java-pkg_jarfrom jaxme +} + +src_compile() { + local antflags="-Dproject.name=${PN} jar" + eant ${antflags} "$(use_doc)" +} + +src_install() { + java-pkg_dojar "dist/${PN}.jar" + + use doc && java-pkg_dojavadoc dist/doc/api + use source && java-pkg_dosrc src/* +} |