dev-db/sqlcl-bin: bump to version 19.4.0.354.0937
authorMarco Genasci <fedeliallalinea@gmail.com>
Mon, 27 Jan 2020 16:31:41 +0000 (17:31 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 20 Feb 2020 07:09:10 +0000 (09:09 +0200)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Marco Genasci <fedeliallalinea@gmail.com>
Closes: https://bugs.gentoo.org/706648
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
dev-db/sqlcl-bin/Manifest
dev-db/sqlcl-bin/sqlcl-bin-19.4.0.354.0937.ebuild [new file with mode: 0644]

index 706a4269559dca3088f63b18b4adfe2860fb674b..0ae4aa4c61e7d39413b0a6858dac488d2d5e61c3 100644 (file)
@@ -1 +1,2 @@
 DIST sqlcl-19.2.1.206.1649.zip 24998252 BLAKE2B bb6148235477133439c3b549cfaefd96249ce661a766e69defb77fc32921db4158114386620b4227626446a560c80447f17ba7fcdbcc1eb834df7a71f61e6dcf SHA512 9d43278f7a296e1a5d57d1418007e3aa7b20723e7452543779e5f2c4ad962bea2b2599db32172406bb01278548edb11b24e34c85e4975664883f469f285150a4
+DIST sqlcl-19.4.0.354.0937.zip 25303986 BLAKE2B de33e7eee05325dc1a750bd1ef5b6a2e3e074d532097e35f8db67636afc0a3f79302e0d64866011bea1c41bb64c8b9983965b756f4f76731720b1da4824c360f SHA512 b729010a58c3eedcd168602b623bbf4b988ec5b76768cc98b8f9dd8cb3a47a62ec565ae8060dbce826f340d78a185f30fe2a0e7ce420cbfc47f6ed542cbe6ec8
diff --git a/dev-db/sqlcl-bin/sqlcl-bin-19.4.0.354.0937.ebuild b/dev-db/sqlcl-bin/sqlcl-bin-19.4.0.354.0937.ebuild
new file mode 100644 (file)
index 0000000..5ecd22f
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="${PN/-bin}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Oracle SQLcl is the new SQL*Plus"
+HOMEPAGE="https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html"
+SRC_URI="${MY_P}.zip"
+RESTRICT="bindist fetch mirror"
+
+LICENSE="OTN"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="dev-db/oracle-instantclient
+       dev-java/java-config:2
+       virtual/jre:1.8"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+       einfo "Please go to"
+       einfo
+       einfo " ${HOMEPAGE}"
+       einfo
+       einfo "and download"
+       einfo
+       einfo " Command Line - SQLcl"
+       einfo "         ${SRC_URI}"
+       einfo
+       einfo "which must be placed in DISTDIR directory."
+}
+
+src_prepare() {
+       default
+       find ./ \( -iname "*.bat" -or -iname "*.exe" \) -delete || die "remove files failed"
+}
+
+src_install() {
+       exeinto "/opt/${MY_PN}/bin/"
+       newexe "${MY_PN}"/bin/sql sqlcl
+
+       insinto "/opt/${MY_PN}/lib/"
+       doins -r "${MY_PN}"/lib/.
+
+       dosym "../${MY_PN}/bin/sqlcl" /opt/bin/sqlcl
+}