/[gentoo-x86]/dev-java/cos/cos-20021105-r2.ebuild
Gentoo

Contents of /dev-java/cos/cos-20021105-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 5 14:28:17 2012 UTC (11 months, 2 weeks ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
Add missing build dep app-arch/unzip. #371501

(Portage version: 2.1.10.62/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/cos/cos-20021105-r2.ebuild,v 1.1 2008/02/14 03:06:43 wltjr Exp $
4
5 EAPI=1
6 JAVA_PKG_IUSE="doc source"
7 inherit java-pkg-2 java-ant-2
8
9 MY_PV=05Nov2002
10 MY_P=${PN}-${MY_PV}
11 DESCRIPTION="The com.oreilly.servlet package is a class library for servlet developers."
12 HOMEPAGE="http://servlets.com/cos/"
13 SRC_URI="http://servlets.com/${PN}/${MY_P}.zip"
14
15 LICENSE="cos"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE=""
19
20 RDEPEND=">=virtual/jre-1.4
21 java-virtuals/servlet-api:2.3"
22 DEPEND=">=virtual/jdk-1.4
23 app-arch/unzip
24 ${RDEPEND}"
25 S=${WORKDIR}
26
27 src_unpack() {
28 unpack ${A}
29
30 rm -r lib classes *.war
31 # TODO I'm not sure how to fix the compilation error for this class
32 # so i'll just delete it for now..
33 rm src/com/oreilly/servlet/CacheHttpServlet.java
34
35 cp "${FILESDIR}"/build-${PV}.xml build.xml
36 cat > build.properties <<-EOF
37 classpath=$(java-pkg_getjars servlet-api-2.3)
38 EOF
39 }
40
41 src_compile() {
42 eant -Dproject.name=${PN} jar $(use_doc)
43 }
44
45 src_install() {
46 java-pkg_dojar dist/${PN}.jar
47 dodoc readme.txt license.txt || die
48
49 use doc && java-pkg_dojavadoc dist/doc/api
50 use source && java-pkg_dosrc src/com
51 }

  ViewVC Help
Powered by ViewVC 1.1.13