# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1201.ebuild,v 1.1 2015/04/22 22:27:05 monsieurp Exp $ EAPI="5" JAVA_PKG_IUSE="doc source" inherit 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-java/ant-junit dev-java/junit:4 >=dev-db/postgresql-9.3[server] )" RDEPEND=">=virtual/jre-1.6" S="${WORKDIR}/postgresql-jdbc-${MY_PV}.src" java_prepare() { find -name "*.class" -type f -exec rm -v {} + || die # Strip build.xml of maven deps sed -i -e '//{s/depends="maven-dependencies"//}' build.xml || die sed -i -e '/