diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2015-12-03 20:18:27 +0100 |
---|---|---|
committer | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2015-12-03 20:24:19 +0100 |
commit | 859f35f81f100a2483eba885f64e2467b10724f2 (patch) | |
tree | aaf6b52df4ec0bda7a7c3a44ae40ef0eb49561e2 /dev-java | |
parent | sys-fs/ntfs3g: Clean up version 2013.1.13 (diff) | |
download | gentoo-859f35f81f100a2483eba885f64e2467b10724f2.tar.gz gentoo-859f35f81f100a2483eba885f64e2467b10724f2.tar.bz2 gentoo-859f35f81f100a2483eba885f64e2467b10724f2.zip |
dev-java/jdbc-postgresql: Version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jdbc-postgresql/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild | 103 |
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/jdbc-postgresql/Manifest b/dev-java/jdbc-postgresql/Manifest index 9e0097dd9d38..74718c797604 100644 --- a/dev-java/jdbc-postgresql/Manifest +++ b/dev-java/jdbc-postgresql/Manifest @@ -3,3 +3,4 @@ DIST postgresql-jdbc-9.2-1004.src.tar.gz 1842921 SHA256 eeadff0d830cd19a4f52a948 DIST postgresql-jdbc-9.3-1100.src.tar.gz 1852465 SHA256 e6be53d4cda04735f5f147d2296acb9a22630b062fa3a4ef894073f23efc6d55 SHA512 43968a62f9443739721016ede186b2f41fa6db2d1ef319cd65059f8715e90eda7c7f568995b293578c39e04d43085cfdfece587500f99ed1a49964c12d8c747a WHIRLPOOL 9bf218936a00df00fb4b4f6ed6c3bbe06cdcfcd14d306a4f7bf3073e83f1c51bc85c0a061c2e04790bcebf9183b8aabd056522fa5d18b0734a4aec34b3ab14a0 DIST postgresql-jdbc-9.4-1204.src.tar.gz 2018904 SHA256 c22862ce505c501115e9f72ae10cd8b5a02ff7f8c7c2f1475f4035b3c85f170b SHA512 659e60fe3ea54f87396d9f32521799d78381a87530c167e903820f3990facc04f3e145685a9c40d74ba3167a404c144fefa781568b9cea2910399cfe2632f25e WHIRLPOOL e5703de1053b5136656c496b4d9518b8044d6a27d431d054d1c48101364b6a999cb4c97295aecca99edf8cb80bf3b2a4b60b740901b9c3f15340eb51197e9cc1 DIST postgresql-jdbc-9.4-1205.src.tar.gz 2028968 SHA256 bb06d9d94ce1f873df4f6090b26f8d2bb358601f71ba1fbdb782bb58a1164366 SHA512 ebb46c0cfcabc34083e6f481bc97536fba98d082462670d39efdd75e6463f1286db6fa07cd35546c749e456f1c06fb1d022cbc9f5cace2a1b968fab76a57d281 WHIRLPOOL a501cb12486ea1903442aa15c03ba7e9f5b127d3e1aa0d90991f6ded517b4dc792488431cf2047efe1a3ac8652ff527d810e1138235a4353cf5cd44031d2b641 +DIST postgresql-jdbc-9.4-1206.src.tar.gz 2029837 SHA256 2793d89eb87f913f82af0898fbb17c2d1b64c4b39a444fe19fe621cb5f11fc80 SHA512 b16816f1afd3ee5986fca197bd7608c2e2f334054e41a8c541c47985827f4f59d7691d23983bdac01c85fc364cd001c991ac6b4e8567429b9d1f4161388dd6bd WHIRLPOOL 0729913fd98088c4f8caeafbb519b45ac673cdb9ff1342f0a1146a2dc87d0c530385089c80c498d416d6601151e00d863831be22b570c3c19070ba3f1ea3ff73 diff --git a/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild b/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild new file mode 100644 index 000000000000..c6f95eecd59f --- /dev/null +++ b/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +MY_PN="postgresql-jdbc" +MY_PV="${PV/_p/-}" +MY_P="${MY_PN}-${MY_PV}.src" + +DESCRIPTION="JDBC Driver for PostgreSQL" +SRC_URI="http://jdbc.postgresql.org/download/${MY_P}.tar.gz" +HOMEPAGE="http://jdbc.postgresql.org/" + +LICENSE="POSTGRESQL" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="test" + +DEPEND=" + >=virtual/jdk-1.6 + doc? ( + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + ) + test? ( + >=dev-db/postgresql-9.3[server] + dev-java/ant-junit + dev-java/junit:4 + dev-java/xml-commons + )" +RDEPEND=">=virtual/jre-1.6" + +RESTRICT="test" # Requires external postgresql server setup + +S="${WORKDIR}/postgresql-jdbc-${MY_PV}.src" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_DOC_TARGET="publicapi" + +java_prepare() { + # Strip build.xml of maven deps + sed -i -e '/<classpath.*dependency\.compile\.classpath/c\' build.xml || die + sed -i -e '/<classpath.*dependency\.runtime\.classpath/c\' build.xml || die + sed -i -e '/<classpath.*dependency\.test\.classpath/c\' build.xml || die + sed -i -e '/<target name="artifact-version"/,/<[/]target>/{s/depends="maven-dependencies"//}' build.xml || die + sed -i -e '/<target name="compile"/ s/,maven-dependencies//' build.xml || die + + # Remove SSPI, it pulls in Waffle-JNA and is only used on Windows + sed -i -e '/<include.*sspi/c\' build.xml || die + rm -vrf org/postgresql/sspi || die "Error removing sspi" + epatch "${FILESDIR}"/${PN}-9.4_p1204-remove-sspi.patch + + # FIXME @someone who cares: enable through osgi flag? + sed -i -e '/<include.*osgi/c\' build.xml || die + sed -i -e '/<test.*osgi/c\' build.xml || die + rm -vrf org/postgresql/osgi || die "Error removing osgi" + rm -vrf org/postgresql/test/osgi || die "Error removing osgi tests" + epatch "${FILESDIR}"/${PN}-9.4_p1201-remove-osgi.patch + + java-pkg_clean +} + +src_compile() { + EANT_BUILD_TARGET="release-version jar" + java-pkg-2_src_compile + + # There is a task that creates this doc but I didn't find a way how to use system catalog + # to lookup the stylesheet so the 'doc' target is rewritten here to use system call instead. + if use doc; then + mkdir -p "${S}/build/doc" || die + xsltproc -o "${S}/build/doc/pgjdbc.html" http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ + "${S}/doc/pgjdbc.xml" || die + fi +} + +src_test() { + einfo "In order to run the tests successfully, you have to have:" + einfo "1) PostgreSQL server running" + einfo "2) database 'test' defined with user 'test' with password 'test'" + einfo " as owner of the database" + einfo "3) plpgsql support in the 'test' database" + einfo + einfo "You can find a general info on how to perform these steps at" + einfo "https://wiki.gentoo.org/wiki/PostgreSQL" + + ANT_TASKS="ant-junit" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only "junit-4,xml-commons") +} + +src_install() { + java-pkg_newjar build/jars/postgresql*.jar jdbc-postgresql.jar + + if use doc ; then + java-pkg_dojavadoc build/publicapi + dohtml build/doc/pgjdbc.html + fi + + use source && java-pkg_dosrc org +} |