dev-db/sqlcl-bin: new package, version 4.2.0.16.355.0402 bug #610410
authorMarco Genasci <fedeliallalinea@gmail.com>
Wed, 25 Jan 2017 19:55:38 +0000 (20:55 +0100)
committerEttore Di Giacinto <mudler@gentoo.org>
Wed, 22 Feb 2017 11:31:38 +0000 (12:31 +0100)
Package-Manager: portage-2.3.0

Signed-off-by: Ettore Di Giacinto <mudler@gentoo.org>
dev-db/sqlcl-bin/Manifest [new file with mode: 0644]
dev-db/sqlcl-bin/metadata.xml [new file with mode: 0644]
dev-db/sqlcl-bin/sqlcl-bin-4.2.0.16.355.0402.ebuild [new file with mode: 0644]

diff --git a/dev-db/sqlcl-bin/Manifest b/dev-db/sqlcl-bin/Manifest
new file mode 100644 (file)
index 0000000..5efb5fa
--- /dev/null
@@ -0,0 +1 @@
+DIST sqlcl-4.2.0.16.355.0402-no-jre.zip 17784763 SHA256 ef729a01ba1e3c2d4a9ed28bd1a54ca5ec372649f0a52152e33d212d9437e227 SHA512 fe6de53d8d068c91ab8e45d341c4fd3fd6c0faea75b2172db009a8e8783f6d491f794d5da3e038708340268fd18b9eac243fc779277c62d8fda421397e151897 WHIRLPOOL a12ad5b3d0e923ac4fd00ad4d51a25944b1f1ea8a1107b6bcf5cc254cadcf3626d606bbd34a1a4f30469250175febf90585bc2a5208b60c8cb3cb1c5688f12dc
diff --git a/dev-db/sqlcl-bin/metadata.xml b/dev-db/sqlcl-bin/metadata.xml
new file mode 100644 (file)
index 0000000..0a47874
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>fedeliallalinea@gmail.com</email>
+               <name>Marco Genasci</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>mudler@gentoo.org</email>
+               <name>Ettore Di Giacinto</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-db/sqlcl-bin/sqlcl-bin-4.2.0.16.355.0402.ebuild b/dev-db/sqlcl-bin/sqlcl-bin-4.2.0.16.355.0402.ebuild
new file mode 100644 (file)
index 0000000..f77d1bb
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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}"
+}
+
+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}"
+}