/[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.2
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.2 2007/03/17 20:53:05 betelgeuse Exp $
4 4
5inherit java-pkg-2 java-ant-2 5inherit java-pkg-2 java-ant-2
6 6
7DESCRIPTION="Java library to generate markup language text such as HTML and XML" 7DESCRIPTION="Java library to generate markup language text such as HTML and XML"
8HOMEPAGE="http://jakarta.apache.org/ecs" 8HOMEPAGE="http://jakarta.apache.org/ecs"
24 24
25src_unpack() { 25src_unpack() {
26 unpack ${A} 26 unpack ${A}
27 27
28 cd "${S}" 28 cd "${S}"
29 rm -f lib/*.jar 29 rm -v lib/*.jar || die
30 rm -f build/*.jar 30 rm -v build/*.jar || die
31 rm -f ecs*.jar 31 rm -v ecs*.jar || die
32 32
33 java-ant_bsfix_one build/build-ecs.xml 33 java-ant_bsfix_one build/build-ecs.xml
34 34
35 cd "${S}/lib" 35 cd "${S}/lib"
36 java-pkg_jar-from xerces-2 xercesImpl.jar xerces.jar 36 java-pkg_jar-from xerces-2 xercesImpl.jar xerces.jar
37 java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar 37 java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar regexp.jar
38} 38}
39 39
40src_compile() { 40EANT_BUILD_XML="build/build-ecs.xml"
41 local antflags="jar" 41EANT_DOC_TARGET="javadocs"
42 use doc && antflags="${antflags} javadocs"
43 eant -f build/build-ecs.xml ${antflags}
44}
45 42
46src_install() { 43src_install() {
47 java-pkg_newjar bin/${P}.jar ${PN}.jar 44 java-pkg_newjar bin/${P}.jar
48 45
49 dodoc AUTHORS ChangeLog README 46 dodoc AUTHORS ChangeLog README || die
50 use doc && java-pkg_dojavadoc docs/* 47 use doc && java-pkg_dojavadoc docs/*
51 use source && java-pkg_dosrc src/java/* 48 use source && java-pkg_dosrc src/java/*
52} 49}

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

  ViewVC Help
Powered by ViewVC 1.1.20