|
Lines 1-4
Link Here
|
| 1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2014 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: /var/cvsroot/gentoo-x86/dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild,v 1.4 2013/03/07 18:39:41 ago Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild,v 1.4 2013/03/07 18:39:41 ago Exp $ |
| 4 |
|
4 |
|
|
Lines 7-13
Link Here
|
| 7 |
inherit eutils java-pkg-2 |
7 |
inherit eutils java-pkg-2 |
| 8 |
|
8 |
|
| 9 |
DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" |
9 |
DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" |
| 10 |
HOMEPAGE="http://www.oracle.com/technology/products/database/sql_developer/" |
10 |
HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html" |
| 11 |
SRC_URI="${P}-no-jre.zip" |
11 |
SRC_URI="${P}-no-jre.zip" |
| 12 |
RESTRICT="fetch" |
12 |
RESTRICT="fetch" |
| 13 |
|
13 |
|
|
Lines 19-25
Link Here
|
| 19 |
DEPEND="mssql? ( dev-java/jtds:1.2 ) |
19 |
DEPEND="mssql? ( dev-java/jtds:1.2 ) |
| 20 |
mysql? ( dev-java/jdbc-mysql:0 ) |
20 |
mysql? ( dev-java/jdbc-mysql:0 ) |
| 21 |
sybase? ( dev-java/jtds:1.2 )" |
21 |
sybase? ( dev-java/jtds:1.2 )" |
| 22 |
RDEPEND=">=virtual/jdk-1.6.0 |
22 |
RDEPEND=">=virtual/jdk-1.7.0 |
|
|
23 |
dev-java/java-config:2 |
| 23 |
${DEPEND}" |
24 |
${DEPEND}" |
| 24 |
|
25 |
|
| 25 |
S="${WORKDIR}/${PN}" |
26 |
S="${WORKDIR}/${PN}" |
|
Lines 35-41
Link Here
|
| 35 |
|
36 |
|
| 36 |
src_prepare() { |
37 |
src_prepare() { |
| 37 |
# we don't need these, do we? |
38 |
# we don't need these, do we? |
| 38 |
find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} \; |
39 |
find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} + |
| 39 |
|
40 |
|
| 40 |
# they both use jtds, enabling one of them also enables the other one |
41 |
# they both use jtds, enabling one of them also enables the other one |
| 41 |
if use mssql && ! use sybase; then |
42 |
if use mssql && ! use sybase; then |
|
Lines 52-76
Link Here
|
| 52 |
if use mysql; then |
53 |
if use mysql; then |
| 53 |
echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf |
54 |
echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf |
| 54 |
fi |
55 |
fi |
| 55 |
|
|
|
| 56 |
# this fixes internal Classpath warning |
| 57 |
cd "${T}" |
| 58 |
unzip -q "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml |
| 59 |
sed -i 's@../../../oracle_common/modules/oracle.nlsrtl_11.1.0@../../jlib@' META-INF/extension.xml || die |
| 60 |
zip -rq "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml |
| 61 |
rm -rf META-INF |
| 62 |
|
| 63 |
# this fixes another internal Classpath warning |
| 64 |
cd "${T}" |
| 65 |
unzip -q "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml |
| 66 |
sed -i 's@<classpath>${ide.extension.install.home}/lib/ActiveQueryBuilder.jar</classpath>@<classpath>${ide.extension.install.home}/../../lib/ActiveQueryBuilder.jar</classpath>@' META-INF/extension.xml || die |
| 67 |
zip -rq "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml |
| 68 |
rm -rf META-INF |
| 69 |
} |
56 |
} |
| 70 |
|
57 |
|
| 71 |
src_install() { |
58 |
src_install() { |
| 72 |
dodir /opt/${PN} |
59 |
dodir /opt/${PN} |
| 73 |
cp -r {dataminer,ide,javavm,jdbc,jdev,jdev.label,jlib,jviews,modules,rdbms,readme.html,sleepycat,${PN},sqlj,timingframework} \ |
60 |
# NOTE For future version to get that line (what to copy) go to the unpacked sources dir |
|
|
61 |
# using `bash` and press Meta+_ (i.e. Meta+Shift+-) -- that is a builtin bash feature ;-) |
| 62 |
cp -r {configuration,d{ataminer,ropins,vt},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},modules,netbeans,r{dbms,eadme.html},s{leepycat,ql{cli,developer,j},vnkit}} \ |
| 74 |
"${D}"/opt/${PN}/ || die "Install failed" |
63 |
"${D}"/opt/${PN}/ || die "Install failed" |
| 75 |
|
64 |
|
| 76 |
dobin "${FILESDIR}"/${PN} || die "Install failed" |
65 |
dobin "${FILESDIR}"/${PN} || die "Install failed" |