Diffstat (limited to 'dev-db/schemaspy/schemaspy-3.1.1.ebuild') (more/less context) (ignore whitespace changes)
-rw-r--r-- | dev-db/schemaspy/schemaspy-3.1.1.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dev-db/schemaspy/schemaspy-3.1.1.ebuild b/dev-db/schemaspy/schemaspy-3.1.1.ebuild index 9945e00..131c84f 100644 --- a/dev-db/schemaspy/schemaspy-3.1.1.ebuild +++ b/dev-db/schemaspy/schemaspy-3.1.1.ebuild | |||
@@ -1,53 +1,55 @@ | |||
1 | # Copyright 1999-2007 Gentoo Foundation | 1 | # Copyright 1999-2007 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 | 2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: $ | 3 | # $Header: $ |
4 | 4 | ||
5 | inherit eutils java-pkg-2 java-ant-2 | 5 | inherit eutils java-pkg-2 java-ant-2 |
6 | 6 | ||
7 | DESCRIPTION="Graphical database schema metadata browser" | 7 | DESCRIPTION="Graphical database schema metadata browser" |
8 | HOMEPAGE="http://schemaspy.sourceforge.net/" | 8 | HOMEPAGE="http://schemaspy.sourceforge.net/" |
9 | SRC_URI="mirror://sourceforge/${PN}/schemaSpy_${PV}.source.jar" | 9 | SRC_URI="mirror://sourceforge/${PN}/schemaSpy_${PV}.source.jar" |
10 | LICENSE="LGPL-2.1" | 10 | LICENSE="LGPL-2.1" |
11 | SLOT="0" | 11 | SLOT="0" |
12 | KEYWORDS="x86 amd64" | 12 | KEYWORDS="x86 amd64" |
13 | IUSE="postgres firebird oracle mysql" | 13 | IUSE="postgres firebird oracle mysql" |
14 | 14 | ||
15 | DEPEND=" | 15 | JDEPEND=" |
16 | postgres? ( dev-java/jdbc-postgresql ) | ||
17 | firebird? ( dev-java/jdbc3-firebird ) | ||
18 | oracle? ( dev-java/jdbc3-oracle ) | ||
19 | mysql? ( dev-java/jdbc-mysql ) | ||
20 | " | ||
21 | DEPEND="$JDEPEND | ||
16 | >=virtual/jdk-1.4 | 22 | >=virtual/jdk-1.4 |
17 | dev-java/ant-core | 23 | dev-java/ant-core |
18 | app-arch/unzip | 24 | app-arch/unzip |
19 | " | 25 | " |
20 | RDEPEND=" | 26 | RDEPEND="$JDEPEND |
21 | >=virtual/jre-1.4 | 27 | >=virtual/jre-1.4 |
22 | postgres? ( dev-java/jdbc3-postgresql ) | ||
23 | firebird? ( dev-java/jdbc3-firebird ) | ||
24 | oracle? ( dev-java/jdbc3-oracle ) | ||
25 | mysql? ( dev-java/jdbc-mysql ) | ||
26 | !dev-db/schemaspy-svn | 28 | !dev-db/schemaspy-svn |
27 | " | 29 | " |
28 | 30 | ||
29 | src_unpack() { | 31 | src_unpack() { |
30 | mkdir "${S}" | 32 | mkdir "${S}" |
31 | cd "${S}" | 33 | cd "${S}" |
32 | unpack "${A}" | 34 | unpack "${A}" |
33 | cp ${FILESDIR}/build.xml ./ | 35 | cp ${FILESDIR}/build.xml ./ |
34 | rm -rf META-INF/ | 36 | rm -rf META-INF/ |
35 | mkdir src | 37 | mkdir src |
36 | mv net *.css images src | 38 | mv net *.css images src |
37 | use postgres && java-pkg_jar-from jdbc3-postgresql-1 | 39 | use postgres && java-pkg_jar-from jdbc-postgresql |
38 | use firebird && java-pkg_jar-from jdbc3-firebird | 40 | use firebird && java-pkg_jar-from jdbc3-firebird |
39 | # XXX: I don't know if it's the right name for oracle package | 41 | # XXX: I don't know if it's the right name for oracle package |
40 | use oracle && java-pkg_jar-from jdbc3-oracle | 42 | use oracle && java-pkg_jar-from jdbc3-oracle |
41 | use mysql && java-pkg_jar-from jdbc-mysql | 43 | use mysql && java-pkg_jar-from jdbc-mysql |
42 | } | 44 | } |
43 | 45 | ||
44 | src_compile() { | 46 | src_compile() { |
45 | eant || die "Failed complie" | 47 | eant || die "Failed complie" |
46 | } | 48 | } |
47 | 49 | ||
48 | src_install() { | 50 | src_install() { |
49 | java-pkg_dojar dist/schemaSpy.jar | 51 | java-pkg_dojar dist/schemaSpy.jar |
50 | java-pkg_dolauncher ${PN} | 52 | java-pkg_dolauncher ${PN} |
51 | insinto /etc/java-config-2/launcher.d/ | 53 | insinto /etc/java-config-2/launcher.d/ |
52 | newins ${FILESDIR}/schemaspy.launcherd ${PN} | 54 | newins ${FILESDIR}/schemaspy.launcherd ${PN} |
53 | } | 55 | } |