diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-12-21 18:44:55 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-12-21 18:44:55 +0000 |
commit | 6cb603cb4c4344af9a74f2afc0a396d680fc331d (patch) | |
tree | ccab36c0c77161b7e66ddcf8e0aab5a15f93da98 /dev-db/sqldeveloper | |
parent | Samba EndOfTheWorld 4 version bump bug #195703 (diff) | |
download | gentoo-2-6cb603cb4c4344af9a74f2afc0a396d680fc331d.tar.gz gentoo-2-6cb603cb4c4344af9a74f2afc0a396d680fc331d.tar.bz2 gentoo-2-6cb603cb4c4344af9a74f2afc0a396d680fc331d.zip |
Version bump. Bug #441850
(Portage version: 2.1.11.37/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'dev-db/sqldeveloper')
-rw-r--r-- | dev-db/sqldeveloper/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild | 99 |
2 files changed, 106 insertions, 2 deletions
diff --git a/dev-db/sqldeveloper/ChangeLog b/dev-db/sqldeveloper/ChangeLog index 2af100396d98..ed97e2e102fc 100644 --- a/dev-db/sqldeveloper/ChangeLog +++ b/dev-db/sqldeveloper/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/sqldeveloper # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqldeveloper/ChangeLog,v 1.18 2012/06/14 06:38:06 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqldeveloper/ChangeLog,v 1.19 2012/12/21 18:44:55 hwoarang Exp $ + +*sqldeveloper-3.2.20.09.87 (21 Dec 2012) + + 21 Dec 2012; Markos Chandras <hwoarang@gentoo.org> + +sqldeveloper-3.2.20.09.87.ebuild: + Version bump. Bug #441850 14 Jun 2012; Jeff Horelick <jdhore@gentoo.org> sqldeveloper-3.1.07.42.ebuild: marked x86 per bug 418669 @@ -81,4 +87,3 @@ 18 Jan 2009; Friedrich Oslage <bluebird@gentoo.org> +files/sqldeveloper, +metadata.xml, +sqldeveloper-1.5.3.5783.ebuild: New package, bug #126170 - diff --git a/dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild b/dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild new file mode 100644 index 000000000000..0a4f1aa2b059 --- /dev/null +++ b/dev-db/sqldeveloper/sqldeveloper-3.2.20.09.87.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils java-pkg-2 + +DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" +HOMEPAGE="http://www.oracle.com/technology/products/database/sql_developer/" +SRC_URI="${P}-no-jre.zip" +RESTRICT="fetch" + +LICENSE="OTN" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mssql mysql sybase" + +DEPEND="mssql? ( dev-java/jtds:1.2 ) + mysql? ( dev-java/jdbc-mysql:0 ) + sybase? ( dev-java/jtds:1.2 )" +RDEPEND=">=virtual/jdk-1.6.0 + ${DEPEND}" + +S="${WORKDIR}/${PN}" + +pkg_nofetch() { + eerror "Please go to" + eerror " ${HOMEPAGE}" + eerror "and download" + eerror " Oracle SQL Developer for other platforms" + eerror " ${SRC_URI}" + eerror "and move it to ${DISTDIR}" +} + +src_prepare() { + # we don't need these, do we? + find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} \; + + # they both use jtds, enabling one of them also enables the other one + if use mssql && ! use sybase; then + einfo "You requested MSSQL support, this also enables Sybase support." + fi + if use sybase && ! use mssql; then + einfo "You requested Sybase support, this also enables MSSQL support." + fi + + if use mssql || use sybase; then + echo "AddJavaLibFile $(java-pkg_getjars jtds-1.2)" >> sqldeveloper/bin/sqldeveloper.conf + fi + + if use mysql; then + echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf + fi + + # this fixes internal Classpath warning + cd "${T}" + unzip -q "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml + sed -i 's@../../../oracle_common/modules/oracle.nlsrtl_11.1.0@../../jlib@' META-INF/extension.xml || die + zip -rq "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml + rm -rf META-INF + + # this fixes another internal Classpath warning + cd "${T}" + unzip -q "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml + 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 + zip -rq "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml + rm -rf META-INF +} + +src_install() { + dodir /opt/${PN} + cp -r {dataminer,ide,javavm,jdbc,jdev,jdev.label,jlib,jviews,modules,rdbms,readme.html,sleepycat,${PN},sqlj,timingframework} \ + "${D}"/opt/${PN}/ || die "Install failed" + + dobin "${FILESDIR}"/${PN} || die "Install failed" + + mv icon.png ${PN}-32x32.png || die + doicon ${PN}-32x32.png || die + make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32 || die +} + +pkg_postinst() { + # this temporary fixes FileNotFoundException with datamodeler + # this is more like a workaround than permanent fix + test -d /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log \ + || mkdir /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log + touch /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log + chmod -R 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log + + # this fixes another datamodeler FileNotFoundException + # also more like a workaround than permanent fix + chmod 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/types/dr_custom_scripts.xml + + echo + einfo "If you want to use the TNS connection type you need to set up the" + einfo "TNS_ADMIN environment variable to point to the directory your" + einfo "tnsnames.ora resides in." + echo +} |