1 |
commit: d459c5b3dcb3b772abbfa91d18fce41433d93e4f |
2 |
Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 1 06:20:04 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 07:22:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d459c5b3 |
7 |
|
8 |
dev-db/sqldeveloper: bump version to 20.2.0.175.1842 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/632120 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/17725 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-db/sqldeveloper/Manifest | 1 + |
17 |
.../sqldeveloper-20.2.0.175.1842.ebuild | 92 ++++++++++++++++++++++ |
18 |
2 files changed, 93 insertions(+) |
19 |
|
20 |
diff --git a/dev-db/sqldeveloper/Manifest b/dev-db/sqldeveloper/Manifest |
21 |
index 2630f4059ab..7c5e3f7ebd4 100644 |
22 |
--- a/dev-db/sqldeveloper/Manifest |
23 |
+++ b/dev-db/sqldeveloper/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST sqldeveloper-20.2.0.175.1842-no-jre.zip 433127943 BLAKE2B da410245ce2fe62b6f5d533f0d170069cb031cae6abcb294fbb1ccb537814f37260482d00d4c752de33d3cea3b4613929a8c8049c4ea813913666d9950a02875 SHA512 1ac9c29b57efae26a5ec8925c25c6500b2e625852d6bfb4b10afae95d6d1b3e4f7b4df34eb847f6f458009b82c4659f1bbad3bb7ba0632850ed97b096014f4ce |
26 |
DIST sqldeveloper-4.2.0.17.089.1709-no-jre.zip 348604841 BLAKE2B 0c3adff04f148102e6460c7550f787329c7e5a69aca0b81c2de4725b9c9ea27c03bb2f588671a95371aa3612839805f2042855b443bb5635c70d0e0b2140295b SHA512 4d1e270376ae125a60146228e35fcb2cb615d593c0e9f2ca98e4deef4d8fd1ddff59cf15064d63e33e77125f49e8da9fe317ed1fd96a9b00a699bf6c5e739874 |
27 |
|
28 |
diff --git a/dev-db/sqldeveloper/sqldeveloper-20.2.0.175.1842.ebuild b/dev-db/sqldeveloper/sqldeveloper-20.2.0.175.1842.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..d8c18524f0a |
31 |
--- /dev/null |
32 |
+++ b/dev-db/sqldeveloper/sqldeveloper-20.2.0.175.1842.ebuild |
33 |
@@ -0,0 +1,92 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit desktop java-pkg-2 |
40 |
+ |
41 |
+DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" |
42 |
+HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html" |
43 |
+SRC_URI="${P}-no-jre.zip" |
44 |
+ |
45 |
+RESTRICT="fetch" |
46 |
+ |
47 |
+LICENSE="OTN" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="-* ~amd64" |
50 |
+ |
51 |
+IUSE="mssql mysql postgres sybase" |
52 |
+ |
53 |
+RDEPEND="mssql? ( dev-java/jtds:1.3 ) |
54 |
+ mysql? ( dev-java/jdbc-mysql:0 ) |
55 |
+ postgres? ( dev-java/jdbc-postgresql:0 ) |
56 |
+ sybase? ( dev-java/jtds:1.3 ) |
57 |
+ >=dev-java/openjdk-8:*[javafx] |
58 |
+ >=virtual/jre-1.8:*" |
59 |
+BDEPEND="app-arch/unzip" |
60 |
+ |
61 |
+S="${WORKDIR}/${PN}" |
62 |
+ |
63 |
+QA_PREBUILT=" |
64 |
+ opt/${PN}/netbeans/platform/modules/lib/amd64/linux/libjnidispatch-422.so |
65 |
+" |
66 |
+ |
67 |
+pkg_nofetch() { |
68 |
+ eerror "Please go to" |
69 |
+ eerror " ${HOMEPAGE}" |
70 |
+ eerror "and download" |
71 |
+ eerror " Oracle SQL Developer for other platforms" |
72 |
+ eerror " ${SRC_URI}" |
73 |
+ eerror "and move it to /var/cache/distfiles" |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} + || die |
79 |
+ sed -i 's|"`dirname $0`"|/opt/sqldeveloper|' sqldeveloper.sh || die |
80 |
+ |
81 |
+ rm -r netbeans/platform/modules/lib/i386 || die |
82 |
+ |
83 |
+ # they both use jtds, enabling one of them also enables the other one |
84 |
+ if use mssql && ! use sybase; then |
85 |
+ einfo "You requested MSSQL support, this also enables Sybase support." |
86 |
+ fi |
87 |
+ if use sybase && ! use mssql; then |
88 |
+ einfo "You requested Sybase support, this also enables MSSQL support." |
89 |
+ fi |
90 |
+ |
91 |
+ if use mssql || use sybase; then |
92 |
+ echo "AddJavaLibFile $(java-pkg_getjars jtds-1.3)" >> sqldeveloper/bin/sqldeveloper.conf || die |
93 |
+ fi |
94 |
+ |
95 |
+ if use mysql; then |
96 |
+ echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf || die |
97 |
+ fi |
98 |
+ |
99 |
+ if use postgres; then |
100 |
+ echo "AddJavaLibFile $(java-pkg_getjars jdbc-postgresql)" >> sqldeveloper/bin/sqldeveloper.conf || die |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ insinto /opt/${PN} |
106 |
+ doins -r {configuration,d{ataminer,ropins},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},module{,s},netbeans,orakafka,rdbms,s{leepycat,ql{developer,j},vnkit}} |
107 |
+ |
108 |
+ newbin "${FILESDIR}"/${PN}-r1 ${PN} |
109 |
+ |
110 |
+ newicon icon.png ${PN}-32x32.png |
111 |
+ make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32 |
112 |
+ |
113 |
+ # This is normally called automatically by java-pkg_dojar, which |
114 |
+ # hasn't been used above. We need to create package.env to help the |
115 |
+ # launcher select the correct VM. |
116 |
+ java-pkg_do_write_ |
117 |
+} |
118 |
+ |
119 |
+pkg_postinst() { |
120 |
+ echo |
121 |
+ einfo "If you want to use the TNS connection type you need to set up the" |
122 |
+ einfo "TNS_ADMIN environment variable to point to the directory your" |
123 |
+ einfo "tnsnames.ora resides in." |
124 |
+ echo |
125 |
+} |