/[gentoo-x86]/dev-java/istack-commons-buildtools/istack-commons-buildtools-20090620.ebuild
Gentoo

Contents of /dev-java/istack-commons-buildtools/istack-commons-buildtools-20090620.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 13 18:07:27 2012 UTC (2 years, 5 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Move EAPI assignment to top of ebuild, bug 411875.

(Portage version: 2.1.10.56/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/istack-commons-buildtools/istack-commons-buildtools-20090620.ebuild,v 1.1 2009/06/21 05:21:26 robbat2 Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="istack-commons - buildtools"
11 HOMEPAGE="https://istack-commons.dev.java.net/"
12 PROJ_PN="istack-commons"
13 PROJ_P="${PROJ_PN}-${PV}"
14 SUB_PN="buildtools"
15 SRC_FILE="${PROJ_P}-src.tar.bz2"
16 SRC_URI="mirror://gentoo/${SRC_FILE}"
17
18 LICENSE="CDDL"
19 SLOT="1.1"
20 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
21 IUSE=""
22
23 DEPEND=">=virtual/jdk-1.5"
24 RDEPEND=">=virtual/jre-1.5"
25
26 S="${WORKDIR}/${PROJ_P}"
27
28 # Helper to generate the tarball :-)
29 # ( PN=istack-commons-runtime ; PV=20090620 ; P="${PN}-${PV}" ; . ${P}.ebuild ; src_tarball )
30 src_tarball() {
31 CVSROOT=':pserver:guest@cvs.dev.java.net:/cvs'
32 PROJ_PN='istack-commons'
33 cvs -d "${CVSROOT}" \
34 export -D $PV -d "${PROJ_P}" \
35 "${PROJ_PN}/${PROJ_PN}" && \
36 tar cvjf "${SRC_FILE}" \
37 --exclude '*.zip' \
38 --exclude '*.jar' \
39 "${PROJ_P}" \
40 && \
41 echo "New tarball located at ${SRC_FILE}"
42 }
43
44 java_prepare() {
45 epatch "${FILESDIR}/${PROJ_PN}-20090620-less-maven.patch"
46 java-ant_bsfix_one "${S}/build-common.xml"
47 libdir="${S}/${SUB_PN}/lib"
48 mkdir -p "${libdir}" || die
49 java-pkg_jar-from --into "${libdir}" ant-core
50 java-pkg_jar-from --into "${libdir}" codemodel-2
51 java-pkg_jar-from --into "${libdir}" istack-commons-runtime-1.1
52 }
53
54 EANT_BUILD_XML="${SUB_PN}/build.xml"
55
56 src_install() {
57 java-pkg_dojar ${SUB_PN}/build/${PN}.jar
58 use source && java-pkg_dosrc ${SUB_PN}/src/*
59 }

  ViewVC Help
Powered by ViewVC 1.1.20