You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
52 lines
1.0 KiB
6 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
|
MY_PN="${PN/-bin}"
|
||
|
MY_P="${MY_PN}-${PV}"
|
||
|
|
||
|
DESCRIPTION="Oracle SQLcl is the new SQL*Plus"
|
||
6 years ago
|
HOMEPAGE="https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html"
|
||
5 years ago
|
SRC_URI="${MY_P}.zip"
|
||
8 years ago
|
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() {
|
||
5 years ago
|
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."
|
||
8 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
5 years ago
|
find ./ \( -iname "*.bat" -or -iname "*.exe" \) -delete || die "remove files failed"
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
exeinto "/opt/${MY_PN}/bin/"
|
||
5 years ago
|
newexe "${MY_PN}"/bin/sql sqlcl
|
||
8 years ago
|
|
||
|
insinto "/opt/${MY_PN}/lib/"
|
||
5 years ago
|
doins -r "${MY_PN}"/lib/.
|
||
8 years ago
|
|
||
5 years ago
|
dosym "../${MY_PN}/bin/sqlcl" /opt/bin/sqlcl
|
||
8 years ago
|
}
|