1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib
8 MY_P_x86="${PN/oracle-/}-linux32-${PV}.0"
9 MY_P_amd64="${PN/oracle-instantclient-/instantclient-}-linux-x86-64-${PV}.0"
12 DESCRIPTION="Oracle 11g client installation for Linux: SQL*Plus"
13 HOMEPAGE="http://www.oracle.com/technology/tech/oci/instantclient/index.html"
14 SRC_URI="x86? ( ${MY_P_x86}.zip )
15 amd64? ( ${MY_P_amd64}.zip )"
19 KEYWORDS="~x86 ~amd64"
23 RDEPEND=">=dev-db/oracle-instantclient-basic-${PV}"
33 eerror "Please go to:"
35 eerror "select your platform and download the"
36 eerror "SQL*Plus package. Put it in:"
38 eerror "after downloading it."
42 unzip "${DISTDIR}"/${MY_P}.zip
46 dodir /usr/$(get_libdir)/oracle/${PV}/client/lib
47 cd "${S}"/instantclient_11_2
48 insinto /usr/$(get_libdir)/oracle/${PV}/client/lib
49 doins libsqlplus.so libsqlplusic.so
50 insinto /usr/$(get_libdir)/oracle/${PV}/client/sqlplus/admin/
53 dodir /usr/$(get_libdir)/oracle/${PV}/client/bin
54 cd "${S}"/instantclient_11_2
55 exeinto /usr/$(get_libdir)/oracle/${PV}/client/bin
59 dosym "${D}"/usr/$(get_libdir)/oracle/${PV}/client/bin/sqlplus /usr/bin/sqlplus
63 elog "The SQL*Plus package for Oracle 11g has been installed."
64 elog "You may wish to install the oracle-instantclient-jdbc (for"
65 elog "the supplemental JDBC functionality) package as well."
67 elog "If you have any questions, be sure to read the README:"
68 elog "http://otn.oracle.com/docs/tech/sql_plus/10102/readme_ic.htm"