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

Contents of /dev-java/ecs/ecs-1.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jun 12 18:27:52 2005 UTC (14 years, 9 months ago) by luckyduck
Branch: MAIN
New upstream version. Dont install a versioned jar any longer.
(Portage version: 2.0.51.22-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20