/[gentoo-x86]/dev-java/c3p0/c3p0-0.9.1.2.ebuild
Gentoo

Contents of /dev-java/c3p0/c3p0-0.9.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Feb 9 14:49:47 2010 UTC (4 years, 6 months ago) by josejx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Marked ppc/ppc64 stable for bug #296209.
(Portage version: 2.1.7.16/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/c3p0/c3p0-0.9.1.2.ebuild,v 1.3 2010/01/03 20:20:23 fauli Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc source"
7 JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
8
9 inherit java-pkg-2 java-ant-2
10
11 SRC_P="${P}.src"
12
13 JAVA_PKG_WANT_SOURCE="1.4"
14 JAVA_PKG_WANT_TARGET="1.4"
15
16 DESCRIPTION="Library for augmenting traditional (DriverManager-based) JDBC drivers with JNDI-bindable DataSources"
17 HOMEPAGE="http://c3p0.sourceforge.net/"
18 # how to package the generated sources:
19 # 1) comment out the sed build.xml calls below and compile with forced sun-jdk-1.5
20 # 2) go to the ${WORKDIR}
21 # 3) tar -cjf c3p0-0.9.1.2-codegen.tar.bz2 c3p0-0.9.1.2.src/build/codegen/
22 SRC_URI="mirror://sourceforge/${PN}/${SRC_P}.tgz
23 mirror://gentoo/c3p0-0.9.1.2-codegen.tar.bz2"
24 # Does not like Java 1.6's JDBC API
25 COMMON_DEPEND="dev-java/log4j"
26 DEPEND=">=virtual/jdk-1.5
27 ${COMMON_DEPEND}"
28 RDEPEND=">=virtual/jre-1.5
29 ${COMMON_DEPEND}"
30 LICENSE="LGPL-2"
31 SLOT="0"
32 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos"
33 IUSE=""
34
35 S="${WORKDIR}/${SRC_P}"
36
37 src_prepare() {
38 echo "j2ee.jar.base.dir=${JAVA_HOME}" > build.properties
39 echo "log4j.jar.file=$(java-pkg_getjar log4j log4j.jar)" >> build.properties
40
41 java-ant_rewrite-bootclasspath 1.5
42 # don't generate sources, use the pregenerated from gentoo mirrors
43 # since generator uses reflection, it's not as simple as javac bootclasspath rewrite
44 sed -i 's/depends="codegen"//' build.xml
45 sed -i 's/depends="codegen,/depends="init,/' build.xml
46 }
47
48 EANT_DOC_TARGET="javadocs"
49
50 src_install() {
51 java-pkg_newjar build/${P}.jar
52 dodoc README-SRC
53 use doc && java-pkg_dojavadoc build/apidocs
54 use source && java-pkg_dosrc src/classes/com
55 }

  ViewVC Help
Powered by ViewVC 1.1.20