From: | "Michael Haubenwallner (haubi)" <haubi@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-db/oracle-instantclient-jdbc: ChangeLog oracle-instantclient-jdbc-11.2.0.3.ebuild |
Date: | Wed, 07 Mar 2012 14:25:33 |
Message-Id: | 20120307142523.D2F932004B@flycatcher.gentoo.org |
1 | haubi 12/03/07 14:25:23 |
2 | |
3 | Modified: ChangeLog |
4 | Added: oracle-instantclient-jdbc-11.2.0.3.ebuild |
5 | Log: |
6 | Revbump. Use EAPI 4. Update homepage. Drop useless postinst info. |
7 | Add multilib support. |
8 | RDEPEND on _same_ version of oracle-instantclient-basic. |
9 | |
10 | (Portage version: 2.1.10.41/cvs/Linux x86_64) |
11 | |
12 | Revision Changes Path |
13 | 1.30 dev-db/oracle-instantclient-jdbc/ChangeLog |
14 | |
15 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog?rev=1.30&view=markup |
16 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog?rev=1.30&content-type=text/plain |
17 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog?r1=1.29&r2=1.30 |
18 | |
19 | Index: ChangeLog |
20 | =================================================================== |
21 | RCS file: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog,v |
22 | retrieving revision 1.29 |
23 | retrieving revision 1.30 |
24 | diff -u -r1.29 -r1.30 |
25 | --- ChangeLog 9 Feb 2012 14:24:42 -0000 1.29 |
26 | +++ ChangeLog 7 Mar 2012 14:25:23 -0000 1.30 |
27 | @@ -1,6 +1,14 @@ |
28 | # ChangeLog for dev-db/oracle-instantclient-jdbc |
29 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | -# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog,v 1.29 2012/02/09 14:24:42 haubi Exp $ |
31 | +# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/ChangeLog,v 1.30 2012/03/07 14:25:23 haubi Exp $ |
32 | + |
33 | +*oracle-instantclient-jdbc-11.2.0.3 (07 Mar 2012) |
34 | + |
35 | + 07 Mar 2012; Michael Haubenwallner <haubi@g.o> |
36 | + +oracle-instantclient-jdbc-11.2.0.3.ebuild: |
37 | + Revbump. Use EAPI 4. Update homepage. Drop useless postinst info. |
38 | + Add multilib support. |
39 | + RDEPEND on _same_ version of oracle-instantclient-basic. |
40 | |
41 | 09 Feb 2012; Michael Haubenwallner <haubi@g.o> metadata.xml: |
42 | Taking over maintainership. |
43 | |
44 | |
45 | |
46 | 1.1 dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.3.ebuild |
47 | |
48 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.3.ebuild?rev=1.1&view=markup |
49 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.3.ebuild?rev=1.1&content-type=text/plain |
50 | |
51 | Index: oracle-instantclient-jdbc-11.2.0.3.ebuild |
52 | =================================================================== |
53 | # Copyright 1999-2012 Gentoo Foundation |
54 | # Distributed under the terms of the GNU General Public License v2 |
55 | # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.3.ebuild,v 1.1 2012/03/07 14:25:23 haubi Exp $ |
56 | |
57 | EAPI="4" |
58 | |
59 | inherit eutils |
60 | |
61 | MY_PLAT_x86="Linux x86" |
62 | MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip" |
63 | |
64 | MY_PLAT_amd64="Linux x86-64" |
65 | MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip" |
66 | |
67 | DESCRIPTION="Oracle 11g Instant Client: JDBC supplement" |
68 | HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html" |
69 | SRC_URI=" |
70 | x86? ( ${MY_A_x86} ) |
71 | amd64? ( ${MY_A_amd64} multilib? ( ${MY_A_x86} ) ) |
72 | " |
73 | |
74 | LICENSE="OTN" |
75 | SLOT="0" |
76 | KEYWORDS="~x86 ~amd64" |
77 | RESTRICT="fetch" |
78 | IUSE="multilib" |
79 | |
80 | DEPEND="app-arch/unzip" |
81 | RDEPEND="~dev-db/oracle-instantclient-basic-${PV}" |
82 | |
83 | S="${WORKDIR}" |
84 | |
85 | default_abi() { |
86 | [[ ${DEFAULT_ABI} == 'default' ]] && echo ${ARCH} || echo ${DEFAULT_ABI} |
87 | } |
88 | |
89 | abi_list() { |
90 | if use multilib; then |
91 | echo ${MULTILIB_ABIS} |
92 | elif [[ ${DEFAULT_MULTILIB} == default ]]; then |
93 | # no multilib-able platform |
94 | echo ${ARCH} |
95 | else |
96 | echo ${DEFAULT_ABI} |
97 | fi |
98 | return 0 |
99 | } |
100 | |
101 | set_abivars() { |
102 | local abi=$1 |
103 | # platform name |
104 | MY_PLAT=MY_PLAT_${abi} |
105 | MY_PLAT=${!MY_PLAT} |
106 | # runtime distfile |
107 | MY_A=MY_A_${abi} |
108 | MY_A=${!MY_A} |
109 | # abi sourcedir |
110 | MY_S="${S}/${abi}/instantclient_11_2" |
111 | # abi libdir |
112 | MY_LIBDIR=$(ABI=${abi} get_libdir) |
113 | } |
114 | |
115 | pkg_nofetch() { |
116 | eerror "Please go to" |
117 | eerror " ${HOMEPAGE%/*}/index-097480.html" |
118 | eerror " and download" |
119 | local abi |
120 | for abi in $(abi_list) |
121 | do |
122 | set_abivars ${abi} |
123 | eerror "Instant Client for ${MY_PLAT}" |
124 | eerror " JDBC: ${MY_A}" |
125 | done |
126 | eerror "After downloading, put them in:" |
127 | eerror " ${DISTDIR}/" |
128 | } |
129 | |
130 | src_unpack() { |
131 | local abi |
132 | for abi in $(abi_list) |
133 | do |
134 | set_abivars ${abi} |
135 | mkdir -p "${MY_S%/*}" || die |
136 | cd "${MY_S%/*}" || die |
137 | unpack ${MY_A} |
138 | done |
139 | } |
140 | |
141 | src_install() { |
142 | # all binaries go here |
143 | local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client |
144 | into "${oracle_home}" |
145 | |
146 | local abi |
147 | for abi in $(abi_list) |
148 | do |
149 | set_abivars ${abi} |
150 | einfo "Installing runtime for ${MY_PLAT} ..." |
151 | |
152 | cd "${MY_S}" || die |
153 | |
154 | ABI=${abi} dolib.so lib*$(get_libname)* |
155 | |
156 | insinto "${oracle_home}"/${MY_LIBDIR} |
157 | doins *.jar |
158 | |
159 | eend $? |
160 | done |
161 | } |