diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2016-01-22 15:25:15 +0100 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2016-01-22 15:25:33 +0100 |
commit | 08bbb62c07710a8fc65ecef19852ece47389a8fb (patch) | |
tree | 75a6508f337274ecfb00e0f648095d97ab1cf2c4 /dev-db | |
parent | www-client/qupzilla: stable on arm (diff) | |
download | gentoo-08bbb62c07710a8fc65ecef19852ece47389a8fb.tar.gz gentoo-08bbb62c07710a8fc65ecef19852ece47389a8fb.tar.bz2 gentoo-08bbb62c07710a8fc65ecef19852ece47389a8fb.zip |
dev-db/sqldeveloper: version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/sqldeveloper/Manifest | 1 | ||||
-rw-r--r-- | dev-db/sqldeveloper/sqldeveloper-4.1.3.20.78.ebuild | 101 |
2 files changed, 102 insertions, 0 deletions
diff --git a/dev-db/sqldeveloper/Manifest b/dev-db/sqldeveloper/Manifest index d39b8120cda4..ecb606650c39 100644 --- a/dev-db/sqldeveloper/Manifest +++ b/dev-db/sqldeveloper/Manifest @@ -1,3 +1,4 @@ DIST sqldeveloper-3.2.20.09.87-no-jre.zip 182052759 SHA256 787b703a3fa2d7969ae486b9f2f23bdafd31242b2af74257943cf826c535c8d4 SHA512 716e2f9584e192b8e72a0e9439ac3fb0aea297087640df7c7c5659170846376d8e44d0fbdc68c96e274b100aad3f26b0710691349bfc0092c86c42830e115efe WHIRLPOOL 1d9eb51cb263c14a89a44167a239f3be34b7ca9bd78eefc28a73c1b24e6f4e2f10a1665b0b4a03c6932f987fae375c95bfc310c485e179c76e9b7135bb9825e3 DIST sqldeveloper-4.0.2.15.21-no-jre.zip 235443867 SHA256 b23aca1d256002cdc19a0b3136ae13ebf9064feacc45a131be229a88fe9faed7 SHA512 e67b0f3d127adbc6cb77b3eb822834a6c41be7039c54eceb85e8c882704684a02dd036f078408192ad2cbcb963dfb0ba583e99a9f7b7db36b1e9a1f96e555880 WHIRLPOOL 31b32713f116193036dc5dd9b63c9b6c321763e2273227c51d70bd3db93575e4f12150a045f8615fb6086ee1d464af4d112be5824f9bf22b4f5917ae5a15b724 DIST sqldeveloper-4.1.1.19.59-no-jre.zip 328364824 SHA256 3b0f3f861495f41b6844eeaf3a58117a90dd72d98cfe8d0b4ffafe103ec56bb5 SHA512 1f5a683ba91a41cb7bc40a45215632ff10b2b1075d5b434d5a8349137d467f59192ec78d33e67b141729b7a1f3e5d678f8b934418e362706ac85a8b0fe89b838 WHIRLPOOL fc4e86e18108729a044bbb4b75a25418599ac972ed003ee69cc0982e66eeb6779d3d46306ec3429b9f9d7a0fa01dc6242b66430c02fe333cb9d95f70160e3402 +DIST sqldeveloper-4.1.3.20.78-no-jre.zip 331401110 SHA256 10caec7183f4075033598faf272d2be82207261442abf3bc3bd899246968b8de SHA512 828a751bc9df7bdc59f9b89b317189826e328671d081df24d39a102aeefaf5a0a56e01e066802da1ee92617bf1fdb77ad598b448043dd7f4239f2103efb4427b WHIRLPOOL 8eee4fbc34617f721893ab880be9c7c27ac8d5378491ba97bcd0084660ad500e2c0e4812ea5b25f8cd907e2c689168af08bbccfdc0b51f04cc0d74bf0760e009 diff --git a/dev-db/sqldeveloper/sqldeveloper-4.1.3.20.78.ebuild b/dev-db/sqldeveloper/sqldeveloper-4.1.3.20.78.ebuild new file mode 100644 index 000000000000..f457837420ad --- /dev/null +++ b/dev-db/sqldeveloper/sqldeveloper-4.1.3.20.78.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils java-pkg-2 + +DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" +HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html" +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.8.0 + dev-java/java-config:2 + ${DEPEND}" + +S="${WORKDIR}/${PN}" + +QA_PREBUILT=" +opt/${PN}/netbeans/platform/modules/lib/amd64/linux/*.so +opt/${PN}/netbeans/platform/modules/lib/i386/linux/*.so +" + +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 +} + +src_install() { + dodir /opt/${PN} + # NOTE For future version to get that line (what to copy) go to the unpacked sources dir + # using `bash` and press Meta+_ (i.e. Meta+Shift+-) -- that is a builtin bash feature ;-) + cp -r {configuration,d{ataminer,ropins,vt},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},modules,netbeans,ords,rdbms,s{leepycat,ql{developer,j},vnkit}} \ + "${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 + einfo "In order to use SQL Developer you need to enshure you are using proper version Java VM (1.8)" + einfo "Use eselect java-vm list to get this info," + einfo "eselect java-vm set user N to assign user-level value" + einfo "eselect java-vm set system N as root to set system-wide default" + echo +} |