From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8772D1580B2 for ; Thu, 2 Sep 2021 06:53:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B422E0848; Thu, 2 Sep 2021 06:53:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C50CE0848 for ; Thu, 2 Sep 2021 06:53:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9998F34072E for ; Thu, 2 Sep 2021 06:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F96EAC for ; Thu, 2 Sep 2021 06:53:20 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1630565588.89fe96073348d34c02bce2d31ea0492e273eeb4a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqldeveloper/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/sqldeveloper/Manifest dev-db/sqldeveloper/sqldeveloper-21.2.1.204.1703.ebuild X-VCS-Directories: dev-db/sqldeveloper/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 89fe96073348d34c02bce2d31ea0492e273eeb4a X-VCS-Branch: master Date: Thu, 2 Sep 2021 06:53:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 46c06a46-3373-4895-a149-4ae28e94c7e1 X-Archives-Hash: 25794de80fe535f6401a2cd3571aaaf7 commit: 89fe96073348d34c02bce2d31ea0492e273eeb4a Author: Marco Genasci gmail com> AuthorDate: Mon Aug 23 15:42:18 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Sep 2 06:53:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89fe9607 dev-db/sqldeveloper: version bump to 21.2.1.204.1703 Closes: https://bugs.gentoo.org/809821 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Genasci gmail.com> Signed-off-by: Joonas Niilola gentoo.org> dev-db/sqldeveloper/Manifest | 1 + .../sqldeveloper-21.2.1.204.1703.ebuild | 100 +++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-db/sqldeveloper/Manifest b/dev-db/sqldeveloper/Manifest index 8bca47f3034..cff8bcd6820 100644 --- a/dev-db/sqldeveloper/Manifest +++ b/dev-db/sqldeveloper/Manifest @@ -1,2 +1,3 @@ DIST sqldeveloper-21.2.0.187.1842-no-jre.zip 458192293 BLAKE2B 7aed56d9bddb8c75f2bbe7bd7fdb6c7be470903ea462c44bd650caeb818ad90d87c9415d5a2c9fc5a4622e8184ea12622979a99dda04d47171e9565061da463c SHA512 7f292cd55c460da61841d85ea2269a9c051370503aea621394ff97d6ef2a9adf12403cc88626b6fb446a493a6024dacbf4fa0667a4cbf7c831a6932b7e6dfb61 +DIST sqldeveloper-21.2.1.204.1703-no-jre.zip 458220863 BLAKE2B 0f5bfb3a97667a728db6b8d61178cdfc90db0958ea7e08460de8d854037f775aa5b97e7e334048c5a717acb35db64334358918b45046395b0170f3ff733d3c65 SHA512 4cdff031ea008bb7b31a202487bb98c1748599b7190ba5b82c9c3fbcc86d453e75751585c243ca9f52d255a43e24a720a0929630b3c3742cf8e91cfa980cf3bb DIST sqldeveloper-4.2.0.17.089.1709-no-jre.zip 348604841 BLAKE2B 0c3adff04f148102e6460c7550f787329c7e5a69aca0b81c2de4725b9c9ea27c03bb2f588671a95371aa3612839805f2042855b443bb5635c70d0e0b2140295b SHA512 4d1e270376ae125a60146228e35fcb2cb615d593c0e9f2ca98e4deef4d8fd1ddff59cf15064d63e33e77125f49e8da9fe317ed1fd96a9b00a699bf6c5e739874 diff --git a/dev-db/sqldeveloper/sqldeveloper-21.2.1.204.1703.ebuild b/dev-db/sqldeveloper/sqldeveloper-21.2.1.204.1703.ebuild new file mode 100644 index 00000000000..3707f45ec26 --- /dev/null +++ b/dev-db/sqldeveloper/sqldeveloper-21.2.1.204.1703.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop java-pkg-2 + +DESCRIPTION="Oracle SQL Developer is a graphical tool for database development" +HOMEPAGE="https://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html" +SRC_URI="${P}-no-jre.zip" +S="${WORKDIR}/${PN}" + +RESTRICT="bindist fetch" + +LICENSE="OTN" +SLOT="0" +KEYWORDS="-* ~amd64" + +IUSE="mssql mysql postgres sybase" + +RDEPEND=" + >=dev-java/openjdk-8:*[javafx] + >=virtual/jre-1.8:* + mssql? ( dev-java/jtds:1.3 ) + mysql? ( dev-java/jdbc-mysql:0 ) + postgres? ( dev-java/jdbc-postgresql:0 ) + sybase? ( dev-java/jtds:1.3 ) +" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/${PN}" + +QA_PREBUILT=" + opt/${PN}/netbeans/platform/modules/lib/amd64/linux/libjnidispatch-422.so +" + +pkg_nofetch() { + einfo "Please go to" + einfo " ${HOMEPAGE}" + einfo "and download" + einfo " Oracle SQL Developer for other platforms" + einfo " ${SRC_URI}" + einfo "and move it to /var/cache/distfiles" +} + +src_prepare() { + default + find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} + || die + sed -i 's|"`dirname $0`"|/opt/sqldeveloper|' sqldeveloper.sh || die + + rm -r netbeans/platform/modules/lib/i386 || die + rm -r modules/javafx || die + + # 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.3)" >> sqldeveloper/bin/sqldeveloper.conf || die + fi + + if use mysql; then + echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf || die + fi + + if use postgres; then + echo "AddJavaLibFile $(java-pkg_getjars jdbc-postgresql)" >> sqldeveloper/bin/sqldeveloper.conf || die + fi +} + +src_install() { + insinto /opt/${PN} + doins -r {configuration,d{ataminer,ropins},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},modules,netbeans,orakafka,rdbms,s{leepycat,ql{developer,j},vnkit}} + fperms +x /opt/${PN}/netbeans/platform/modules/lib/amd64/linux/libjnidispatch-422.so + + dodir /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log + fperms 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log + + newbin "${FILESDIR}"/${PN}-r1 ${PN} + + newicon icon.png ${PN}-32x32.png + make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32 + + # This is normally called automatically by java-pkg_dojar, which + # hasn't been used above. We need to create package.env to help the + # launcher select the correct VM. + java-pkg_do_write_ +} + +pkg_postinst() { + 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 +}