oracle-instantclient-jdbc-10.2.0.3.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils multilib
  4. MY_P_x86="${PN/oracle-/}-linux32-${PV}-20061115"
  5. MY_P_amd64="${PN/oracle-/}-linux-x86-64-${PV}-20070103"
  6. S=${WORKDIR}
  7. DESCRIPTION="Oracle 10g client installation for Linux: JDBC supplement"
  8. HOMEPAGE="http://www.oracle.com/technology/tech/oci/instantclient/index.html"
  9. SRC_URI="amd64? ( ${MY_P_amd64}.zip )
  10. x86? ( ${MY_P_x86}.zip )"
  11. LICENSE="OTN"
  12. SLOT="0"
  13. KEYWORDS="-* amd64 x86"
  14. RESTRICT="fetch"
  15. IUSE=""
  16. RDEPEND=">=dev-db/oracle-instantclient-basic-${PV}"
  17. DEPEND="${RDEPEND}
  18. app-arch/unzip"
  19. pkg_setup() {
  20. MY_P=MY_P_${ARCH}
  21. export MY_P=${!MY_P}
  22. }
  23. pkg_nofetch() {
  24. eerror "Please go to:"
  25. eerror " ${HOMEPAGE}"
  26. eerror "and download the JDBC supplemental package. Put it in:"
  27. eerror " ${DISTDIR}"
  28. eerror "after downloading it."
  29. }
  30. src_unpack() {
  31. unzip "${DISTDIR}"/${MY_P}.zip
  32. }
  33. src_install() {
  34. dodir /usr/$(get_libdir)/oracle/${PV}/client/lib
  35. cd "${S}"/instantclient_10_2
  36. insinto /usr/$(get_libdir)/oracle/${PV}/client/lib
  37. doins libheteroxa10.so orai18n.jar
  38. }
  39. pkg_postinst() {
  40. elog "The JDBC supplement package for Oracle 10g has been installed."
  41. elog "You may wish to install the oracle-instantclient-sqlplus (for "
  42. elog "running the SQL*Plus application) package as well."
  43. elog
  44. elog "oracle-instantclient-* packages aren't installed in different"
  45. elog "SLOTs any longer. You may want to uninstall older versions."
  46. }