diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-04-23 16:57:34 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-04-23 16:57:34 +0000 |
commit | a32c94f5eaa03ad5e4964bcd9fd98eae1fd7a732 (patch) | |
tree | ec37faf6ce8667ef53eb81caeb81a71688522e42 /dev-java/sac | |
parent | Version bumped; bug #89651. (diff) | |
download | gentoo-2-a32c94f5eaa03ad5e4964bcd9fd98eae1fd7a732.tar.gz gentoo-2-a32c94f5eaa03ad5e4964bcd9fd98eae1fd7a732.tar.bz2 gentoo-2-a32c94f5eaa03ad5e4964bcd9fd98eae1fd7a732.zip |
Initial import. Resolves bug 85116.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-java/sac')
-rw-r--r-- | dev-java/sac/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/sac/Manifest | 3 | ||||
-rw-r--r-- | dev-java/sac/files/build.xml | 33 | ||||
-rw-r--r-- | dev-java/sac/files/digest-sac-1.3 | 1 | ||||
-rw-r--r-- | dev-java/sac/metadata.xml | 12 | ||||
-rw-r--r-- | dev-java/sac/sac-1.3.ebuild | 50 |
6 files changed, 110 insertions, 0 deletions
diff --git a/dev-java/sac/ChangeLog b/dev-java/sac/ChangeLog new file mode 100644 index 000000000000..5b31ebaeba24 --- /dev/null +++ b/dev-java/sac/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/sac +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sac/ChangeLog,v 1.1 2005/04/23 16:57:34 compnerd Exp $ + +*sac-1.3 (23 Apr 2005) + + 23 Apr 2005; Saleem Abdulrasool <compnerd@gentoo.org> +files/build.xml, + +sac-1.3.ebuild: + Initial import. Resolves bug #85116. Modified ebuilds from Betelguese + <petteri.raty@welho.com>. + diff --git a/dev-java/sac/Manifest b/dev-java/sac/Manifest new file mode 100644 index 000000000000..82876c168742 --- /dev/null +++ b/dev-java/sac/Manifest @@ -0,0 +1,3 @@ +MD5 bce0c8d837a2a5363f9ff740a7ead041 sac-1.3.ebuild 926 +MD5 86dd7c1e96a0338971135c87988b4949 files/digest-sac-1.3 60 +MD5 f03589177316c1221a3793494a91fac9 files/build.xml 793 diff --git a/dev-java/sac/files/build.xml b/dev-java/sac/files/build.xml new file mode 100644 index 000000000000..af8a31794e84 --- /dev/null +++ b/dev-java/sac/files/build.xml @@ -0,0 +1,33 @@ +<?xml version="1.0"?> + +<project name="sac" default="jar"> + <!-- some properties --> + <property name="src" value="src" /> + <property name="build" value="build" /> + <property name="dist" value="dist"/> + + <property name="jarfile" value="${ant.project.name}.jar"/> + + <!-- init --> + <target name="init"> + <tstamp/> + <mkdir dir="${dist}"/> + <mkdir dir="${build}"/> + </target> + + <!-- compile everything --> + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}"/> + </target> + + <!-- build the jar file --> + <target name="jar" depends="compile"> + <jar jarfile="${dist}/${jarfile}" basedir="${build}"/> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/sac/files/digest-sac-1.3 b/dev-java/sac/files/digest-sac-1.3 new file mode 100644 index 000000000000..cfc2c58fef32 --- /dev/null +++ b/dev-java/sac/files/digest-sac-1.3 @@ -0,0 +1 @@ +MD5 91c083636dc1a926bcb5b0bd0bde9ea5 sacjava-1.3.zip 163617 diff --git a/dev-java/sac/metadata.xml b/dev-java/sac/metadata.xml new file mode 100644 index 000000000000..c74025e07608 --- /dev/null +++ b/dev-java/sac/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <maintainer> + <email>compnerd@gentoo.org</email> + <name>Saleem Abdulrasool</name> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> + diff --git a/dev-java/sac/sac-1.3.ebuild b/dev-java/sac/sac-1.3.ebuild new file mode 100644 index 000000000000..41ddc9f8d67e --- /dev/null +++ b/dev-java/sac/sac-1.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sac/sac-1.3.ebuild,v 1.1 2005/04/23 16:57:34 compnerd Exp $ + +inherit java-pkg + +DESCRIPTION="SAC is a standard interface for CSS parser" +HOMEPAGE="http://www.w3.org/Style/CSS/SAC/" +SRC_URI="http://www.w3.org/2002/06/sacjava-${PV}.zip" + +LICENSE="W3C" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc jikes source" + +DEPEND="virtual/jdk + app-arch/unzip + jikes? (dev-java/jikes) + source? (app-arch/zip)" +RDEPEND="virtual/jre" + +src_unpack() { + unpack ${A} + + cp ${FILESDIR}/build.xml ${S} + + cd ${S} + rm -fr sac.jar META-INF/ + + mkdir src + mv org src +} + +src_compile() { + local antflags="" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + + ant || die "Compiling failed" +} + +src_install() { + dojar ${S}/dist/sac.jar + + use doc && java-pkg_dohtml -r ${S}/dist/doc/* + dohtml COPYRIGHT.html + + if use source; then + java-pkg_dosrc src/* || die "Failed to package sources" + fi +} |