From: | "Krzysiek Pawlik (nelchael)" <nelchael@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-java/jdbc-postgresql: ChangeLog jdbc-postgresql-8.4_p701.ebuild |
Date: | Tue, 23 Feb 2010 23:01:14 |
Message-Id: | E1Nk3ke-0001tO-6r@stork.gentoo.org |
1 | nelchael 10/02/23 23:01:12 |
2 | |
3 | Modified: ChangeLog |
4 | Added: jdbc-postgresql-8.4_p701.ebuild |
5 | Log: |
6 | Version bump. |
7 | (Portage version: 2.1.7.17/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.34 dev-java/jdbc-postgresql/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog?rev=1.34&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog?rev=1.34&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog?r1=1.33&r2=1.34 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog,v |
19 | retrieving revision 1.33 |
20 | retrieving revision 1.34 |
21 | diff -u -r1.33 -r1.34 |
22 | --- ChangeLog 12 Feb 2010 08:50:46 -0000 1.33 |
23 | +++ ChangeLog 23 Feb 2010 23:01:11 -0000 1.34 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for dev-java/jdbc-postgresql |
26 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog,v 1.33 2010/02/12 08:50:46 caster Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-postgresql/ChangeLog,v 1.34 2010/02/23 23:01:11 nelchael Exp $ |
29 | + |
30 | +*jdbc-postgresql-8.4_p701 (23 Feb 2010) |
31 | + |
32 | + 23 Feb 2010; Krzysiek Pawlik <nelchael@g.o> |
33 | + +jdbc-postgresql-8.4_p701.ebuild: |
34 | + Version bump. |
35 | |
36 | 12 Feb 2010; Vlastimil Babka <caster@g.o> |
37 | jdbc-postgresql-8.3_p603.ebuild: |
38 | |
39 | |
40 | |
41 | 1.1 dev-java/jdbc-postgresql/jdbc-postgresql-8.4_p701.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-postgresql/jdbc-postgresql-8.4_p701.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-postgresql/jdbc-postgresql-8.4_p701.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: jdbc-postgresql-8.4_p701.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2010 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-postgresql/jdbc-postgresql-8.4_p701.ebuild,v 1.1 2010/02/23 23:01:11 nelchael Exp $ |
51 | |
52 | EAPI="2" |
53 | JAVA_PKG_IUSE="doc source" |
54 | |
55 | inherit java-pkg-2 java-ant-2 |
56 | |
57 | MY_PN="postgresql-jdbc" |
58 | MY_PV="${PV/_p/-}" |
59 | MY_P="${MY_PN}-${MY_PV}.src" |
60 | |
61 | DESCRIPTION="JDBC Driver for PostgreSQL" |
62 | SRC_URI="http://jdbc.postgresql.org/download/${MY_P}.tar.gz" |
63 | HOMEPAGE="http://jdbc.postgresql.org/" |
64 | |
65 | LICENSE="POSTGRESQL" |
66 | SLOT="0" |
67 | KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
68 | IUSE="java6 test" |
69 | |
70 | DEPEND=">=dev-java/java-config-2.0.31 |
71 | java6? ( =virtual/jdk-1.6* ) |
72 | !java6? ( =virtual/jdk-1.5* ) |
73 | doc? ( |
74 | dev-libs/libxslt |
75 | app-text/docbook-xsl-stylesheets |
76 | ) |
77 | test? ( |
78 | dev-java/ant-junit |
79 | virtual/postgresql-server |
80 | )" |
81 | RDEPEND="java6? ( >=virtual/jre-1.6 ) |
82 | !java6? ( >=virtual/jre-1.5 )" |
83 | |
84 | S="${WORKDIR}/${MY_P}" |
85 | |
86 | EANT_DOC_TARGET="publicapi" |
87 | |
88 | java_prepare() { |
89 | # needed for src_test |
90 | java-ant_rewrite-classpath |
91 | } |
92 | |
93 | src_compile() { |
94 | java-pkg-2_src_compile |
95 | |
96 | # There is a task that creates this doc but I didn't find a way how to use system catalog |
97 | # to lookup the stylesheet so the 'doc' target is rewritten here to use system call instead. |
98 | if use doc; then |
99 | mkdir -p "${S}/build/doc" |
100 | xsltproc -o "${S}/build/doc/pgjdbc.html" http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ |
101 | "${S}/doc/pgjdbc.xml" |
102 | fi |
103 | } |
104 | |
105 | src_test() { |
106 | einfo "In order to run the tests successfully, you have to have:" |
107 | einfo "1) PostgreSQL server running" |
108 | einfo "2) database 'test' defined with user 'test' with password 'password'" |
109 | einfo " as owner of the database" |
110 | einfo "3) plpgsql support in the 'test' database" |
111 | einfo |
112 | einfo "You can find a general info on how to perform these steps at" |
113 | einfo "http://gentoo-wiki.com/HOWTO_Configure_Postgresql" |
114 | |
115 | ANT_TASKS="ant-junit" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only junit) |
116 | } |
117 | |
118 | src_install() { |
119 | java-pkg_newjar jars/postgresql.jar jdbc-postgresql.jar |
120 | |
121 | if use doc ; then |
122 | java-pkg_dojavadoc build/publicapi |
123 | dohtml build/doc/pgjdbc.html || die |
124 | fi |
125 | |
126 | use source && java-pkg_dosrc org |
127 | } |