diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-04-05 22:38:16 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-04-05 22:38:16 +0000 |
commit | 56e016447430612ef67bf48b37b8b46dd5bda773 (patch) | |
tree | 3d75a7cbcab58b7a17b7f4fc11d5d5da3bfd6c4d /dev-java | |
parent | x86 stable, bug #251832 (diff) | |
download | gentoo-2-56e016447430612ef67bf48b37b8b46dd5bda773.tar.gz gentoo-2-56e016447430612ef67bf48b37b8b46dd5bda773.tar.bz2 gentoo-2-56e016447430612ef67bf48b37b8b46dd5bda773.zip |
Include resources in the build jar, migrate to EAPI 2 and add examples use flag. Fixes bug #254055. Thanks to Martin von Gagern <Martin.vGagern@gmx.net> for fixing the resources problem.
(Portage version: 2.2_rc27/cvs/Linux i686)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/relaxngcc/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/relaxngcc/files/build.xml-1.12-r1 | 34 | ||||
-rw-r--r-- | dev-java/relaxngcc/relaxngcc-1.12-r1.ebuild | 63 |
3 files changed, 107 insertions, 2 deletions
diff --git a/dev-java/relaxngcc/ChangeLog b/dev-java/relaxngcc/ChangeLog index ad6f19d41d97..47c49aea706b 100644 --- a/dev-java/relaxngcc/ChangeLog +++ b/dev-java/relaxngcc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/relaxngcc -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/relaxngcc/ChangeLog,v 1.9 2008/03/28 18:01:38 nixnut Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/relaxngcc/ChangeLog,v 1.10 2009/04/05 22:38:16 betelgeuse Exp $ + +*relaxngcc-1.12-r1 (05 Apr 2009) + + 05 Apr 2009; Petteri Räty <betelgeuse@gentoo.org> + +files/build.xml-1.12-r1, +relaxngcc-1.12-r1.ebuild: + Include resources in the build jar, migrate to EAPI 2 and add examples use + flag. Fixes bug #254055. Thanks to Martin von Gagern + <Martin.vGagern@gmx.net> for fixing the resources problem. 28 Mar 2008; nixnut <nixnut@gentoo.org> relaxngcc-1.12.ebuild: Stable on ppc wrt bug 214778 diff --git a/dev-java/relaxngcc/files/build.xml-1.12-r1 b/dev-java/relaxngcc/files/build.xml-1.12-r1 new file mode 100644 index 000000000000..8f1362567653 --- /dev/null +++ b/dev-java/relaxngcc/files/build.xml-1.12-r1 @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<project name="relaxngcc" default="jar" basedir="."> + <target name="compile"> + <mkdir dir="build"/> + <javac srcdir="src" destdir="build"> + <classpath> + <fileset dir="lib" includes="**/*.jar"/> + </classpath> + </javac> + </target> + <target name="jar" depends="compile"> + <jar destfile="relaxngcc.jar"> + <manifest> + <attribute name="Main-Class" value="relaxngcc.RelaxNGCC"/> + </manifest> + <fileset dir="build"> + <include name="**/*.class"/> + </fileset> + <!-- + For a list of resources to include, see the project.xml from the + upstream relaxngcc.jar contained in the base directory of the zip. + --> + <fileset dir="src"> + <include name="plugin.jelly"/> + <include name="relaxngcc/runtime/*.java"/> + <include name="**/*.properties"/> + <include name="**/*.xsl"/> + </fileset> + <zipfileset src="relaxngcc.orig.zip"> + <include name="project.xml"/> + </zipfileset> + </jar> + </target> +</project> diff --git a/dev-java/relaxngcc/relaxngcc-1.12-r1.ebuild b/dev-java/relaxngcc/relaxngcc-1.12-r1.ebuild new file mode 100644 index 000000000000..027c3b39c0f9 --- /dev/null +++ b/dev-java/relaxngcc/relaxngcc-1.12-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/relaxngcc/relaxngcc-1.12-r1.ebuild,v 1.1 2009/04/05 22:38:16 betelgeuse Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-ant-2 + +MY_DATE="20031218" + +DESCRIPTION="RELAX NG Compiler Compiler" +HOMEPAGE="http://relaxngcc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_DATE}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=virtual/jre-1.4 + dev-java/relaxng-datatype:0 + dev-java/msv:0 + dev-java/ant-core:0 + dev-java/xsdlib:0" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${RDEPEND}" + +S="${WORKDIR}/${PN}-${MY_DATE}" + +java_prepare() { + mv relaxngcc.jar relaxngcc.orig.zip || die + + rm -v *.jar || die + rm -v sample/*/*.class || die + + mkdir lib || die + cd lib || die + java-pkg_jarfrom relaxng-datatype + java-pkg_jarfrom msv + java-pkg_jarfrom xsdlib + java-pkg_jarfrom ant-core + cd "${S}" || die + + cp "${FILESDIR}/build.xml-1.12-r1" build.xml || die "cp failed" + rm -rf "src/relaxngcc/maven" + java-pkg_filter-compiler jikes +} + +EANT_DOC_TARGET="" + +src_install() { + + java-pkg_dojar relaxngcc.jar + + use source && java-pkg_dosrc src/* + use examples && java-pkg_doexamples sample + + dodoc readme.txt || die + use doc && dohtml -r doc/en/* + +} |