/[gentoo-x86]/dev-java/ecs/ecs-1.4.2-r1.ebuild
Gentoo

Diff of /dev-java/ecs/ecs-1.4.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.5
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-java/ecs/ecs-1.4.2-r1.ebuild,v 1.1 2007/03/17 20:44:22 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/ecs/ecs-1.4.2-r1.ebuild,v 1.5 2007/06/17 14:58:10 angelos Exp $
4
5JAVA_PKG_IUSE="doc source"
4 6
5inherit java-pkg-2 java-ant-2 7inherit java-pkg-2 java-ant-2
6 8
7DESCRIPTION="Java library to generate markup language text such as HTML and XML" 9DESCRIPTION="Java library to generate markup language text such as HTML and XML"
8HOMEPAGE="http://jakarta.apache.org/ecs" 10HOMEPAGE="http://jakarta.apache.org/ecs"
9SRC_URI="mirror://apache/jakarta/ecs/source/${P}-src.tar.gz" 11SRC_URI="mirror://apache/jakarta/${PN}/source/${P}-src.tar.gz"
10 12
11LICENSE="Apache-1.1" 13LICENSE="Apache-1.1"
12SLOT="0" 14SLOT="0"
13KEYWORDS="~amd64 ~x86" 15KEYWORDS="amd64 x86"
14IUSE="doc source" 16IUSE=""
15 17
16RDEPEND=">=virtual/jre-1.4 18RDEPEND=">=virtual/jre-1.4
17 =dev-java/jakarta-regexp-1.3* 19 =dev-java/jakarta-regexp-1.3*
18 >=dev-java/xerces-2.7" 20 >=dev-java/xerces-2.7"
19DEPEND=">=virtual/jdk-1.4 21DEPEND=">=virtual/jdk-1.4
20 ${RDEPEND} 22 ${RDEPEND}"
21 source? ( app-arch/zip )"
22 23
23S="${WORKDIR}/${P}-src" 24S="${WORKDIR}/${P}-src"
24 25
25src_unpack() { 26src_unpack() {
26 unpack ${A} 27 unpack ${A}
27 28
28 cd "${S}" 29 cd "${S}"
29 rm -f lib/*.jar 30 rm -v lib/*.jar || die
30 rm -f build/*.jar 31 rm -v build/*.jar || die
31 rm -f ecs*.jar 32 rm -v ecs*.jar || die
32 33
33 java-ant_bsfix_one build/build-ecs.xml 34 java-ant_bsfix_one build/build-ecs.xml
34 35
35 cd "${S}/lib" 36 cd "${S}/lib"
36 java-pkg_jar-from xerces-2 xercesImpl.jar xerces.jar 37 java-pkg_jar-from xerces-2 xercesImpl.jar xerces.jar
37 java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar 38 java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar
38} 39}
39 40
40src_compile() { 41EANT_BUILD_XML="build/build-ecs.xml"
41 local antflags="jar" 42EANT_DOC_TARGET="javadocs"
42 use doc && antflags="${antflags} javadocs"
43 eant -f build/build-ecs.xml ${antflags}
44}
45 43
46src_install() { 44src_install() {
47 java-pkg_newjar bin/${P}.jar ${PN}.jar 45 java-pkg_newjar bin/${P}.jar
48 46
49 dodoc AUTHORS ChangeLog README 47 dodoc AUTHORS ChangeLog README || die
50 use doc && java-pkg_dojavadoc docs/* 48 use doc && java-pkg_dojavadoc docs/*
51 use source && java-pkg_dosrc src/java/* 49 use source && java-pkg_dosrc src/java/*
52} 50}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20