summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Genasci <fedeliallalinea@gmail.com>2017-04-26 13:11:58 +0200
committerEttore Di Giacinto <mudler@gentoo.org>2017-05-01 12:18:00 +0200
commite76b4bff6270ce93d9caa3b7bbc42efe98f1e7a8 (patch)
tree27753e03c80f592c24b0e6e8baf64adb19bcb778 /dev-db/sqlcl-bin
parentdev-vcs/git-lfs: Drop old (diff)
downloadgentoo-e76b4bff6270ce93d9caa3b7bbc42efe98f1e7a8.tar.gz
gentoo-e76b4bff6270ce93d9caa3b7bbc42efe98f1e7a8.tar.bz2
gentoo-e76b4bff6270ce93d9caa3b7bbc42efe98f1e7a8.zip
dev-db/sqlcl-bin: Bump to version 4.2.0.17.097.0719
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Ettore Di Giacinto <mudler@gentoo.org>
Diffstat (limited to 'dev-db/sqlcl-bin')
-rw-r--r--dev-db/sqlcl-bin/Manifest1
-rw-r--r--dev-db/sqlcl-bin/sqlcl-bin-4.2.0.17.097.0719.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-db/sqlcl-bin/Manifest b/dev-db/sqlcl-bin/Manifest
index 5efb5fa780d9..b2023cafe577 100644
--- a/dev-db/sqlcl-bin/Manifest
+++ b/dev-db/sqlcl-bin/Manifest
@@ -1 +1,2 @@
DIST sqlcl-4.2.0.16.355.0402-no-jre.zip 17784763 SHA256 ef729a01ba1e3c2d4a9ed28bd1a54ca5ec372649f0a52152e33d212d9437e227 SHA512 fe6de53d8d068c91ab8e45d341c4fd3fd6c0faea75b2172db009a8e8783f6d491f794d5da3e038708340268fd18b9eac243fc779277c62d8fda421397e151897 WHIRLPOOL a12ad5b3d0e923ac4fd00ad4d51a25944b1f1ea8a1107b6bcf5cc254cadcf3626d606bbd34a1a4f30469250175febf90585bc2a5208b60c8cb3cb1c5688f12dc
+DIST sqlcl-4.2.0.17.097.0719-no-jre.zip 19867780 SHA256 35d2afeb9a298d9b421b9e2d35f224737d7a7bd12167adc0bb33144466b1961c SHA512 76f24d36862bcb364eca6ecb5ce02b6c53d922519fdf06046d7d43a39cb029f25cf5705bea8bd60718100f6ceec72dfb2924860972a1151c672abe10fb4ee5b9 WHIRLPOOL 61bdfb81f079ac214afb04a8cb98a63aca051cb9040f4ab9aa543e33cf6c6cf2a3e004cad6b625fdc7dc5f7d5d1d04fac4a9e63c30c855c42a2aeac80025abf5
diff --git a/dev-db/sqlcl-bin/sqlcl-bin-4.2.0.17.097.0719.ebuild b/dev-db/sqlcl-bin/sqlcl-bin-4.2.0.17.097.0719.ebuild
new file mode 100644
index 000000000000..2da7c12ea1eb
--- /dev/null
+++ b/dev-db/sqlcl-bin/sqlcl-bin-4.2.0.17.097.0719.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/-bin}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Oracle SQLcl is the new SQL*Plus"
+HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html"
+SRC_URI="${MY_P}-no-jre.zip"
+RESTRICT="bindist fetch mirror"
+
+LICENSE="OTN"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="virtual/jre:1.8
+ dev-java/java-config:2
+ dev-db/oracle-instantclient"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ eerror "Please go to"
+ eerror " ${HOMEPAGE}"
+ eerror "and download"
+ eerror " Command Line - SQLcl"
+ eerror " ${SRC_URI}"
+ eerror "and move it to DISTDIR directory."
+}
+
+src_prepare() {
+ default
+ find ./ \( -iname "*.bat" -or -iname "*.exe" \) -exec rm {} + || die "remove files failed"
+ mv sqlcl/bin/sql sqlcl/bin/"${MY_PN}" || die "rename executable failed"
+}
+
+src_install() {
+ exeinto "/opt/${MY_PN}/bin/"
+ doexe "${S}/${MY_PN}/bin/${MY_PN}"
+
+ insinto "/opt/${MY_PN}/lib/"
+ doins -r "${S}/${MY_PN}/lib/"*
+
+ dosym "${ED%/}/opt/${MY_PN}/bin/${MY_PN}" "/opt/bin/${MY_PN}"
+}