1 |
robbat2 12/02/10 19:31:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: db-5.1.29.ebuild |
5 |
Log: |
6 |
Verison bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.324 sys-libs/db/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?rev=1.324&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?rev=1.324&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?r1=1.323&r2=1.324 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v |
20 |
retrieving revision 1.323 |
21 |
retrieving revision 1.324 |
22 |
diff -p -w -b -B -u -u -r1.323 -r1.324 |
23 |
--- ChangeLog 18 Dec 2011 17:40:29 -0000 1.323 |
24 |
+++ ChangeLog 10 Feb 2012 19:31:00 -0000 1.324 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-libs/db |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.323 2011/12/18 17:40:29 halcy0n Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.324 2012/02/10 19:31:00 robbat2 Exp $ |
31 |
+ |
32 |
+*db-5.1.29 (10 Feb 2012) |
33 |
+ |
34 |
+ 10 Feb 2012; Robin H. Johnson <robbat2@g.o> +db-5.1.29.ebuild: |
35 |
+ Verison bump. |
36 |
|
37 |
18 Dec 2011; Mark Loeser <halcy0n@g.o> db-4.8.30.ebuild: |
38 |
Stable for ppc; bug #387187 |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-libs/db/db-5.1.29.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/db-5.1.29.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/db-5.1.29.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: db-5.1.29.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-5.1.29.ebuild,v 1.1 2012/02/10 19:31:00 robbat2 Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit eutils db flag-o-matic java-pkg-opt-2 autotools libtool |
55 |
|
56 |
#Number of official patches |
57 |
#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` |
58 |
PATCHNO=${PV/*.*.*_p} |
59 |
if [[ ${PATCHNO} == "${PV}" ]] ; then |
60 |
MY_PV=${PV} |
61 |
MY_P=${P} |
62 |
PATCHNO=0 |
63 |
else |
64 |
MY_PV=${PV/_p${PATCHNO}} |
65 |
MY_P=${PN}-${MY_PV} |
66 |
fi |
67 |
|
68 |
S_BASE="${WORKDIR}/${MY_P}" |
69 |
S="${S_BASE}/build_unix" |
70 |
DESCRIPTION="Oracle Berkeley DB" |
71 |
HOMEPAGE="http://www.oracle.com/technology/software/products/berkeley-db/index.html" |
72 |
SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz" |
73 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) ; do |
74 |
export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" |
75 |
done |
76 |
|
77 |
LICENSE="OracleDB" |
78 |
SLOT="5.1" |
79 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
80 |
IUSE="doc java cxx tcl test" |
81 |
|
82 |
# the entire testsuite needs the TCL functionality |
83 |
DEPEND="tcl? ( >=dev-lang/tcl-8.4 ) |
84 |
test? ( >=dev-lang/tcl-8.4 ) |
85 |
java? ( >=virtual/jdk-1.5 ) |
86 |
>=sys-devel/binutils-2.16.1" |
87 |
RDEPEND="tcl? ( dev-lang/tcl ) |
88 |
java? ( >=virtual/jre-1.5 )" |
89 |
|
90 |
src_unpack() { |
91 |
unpack "${MY_P}".tar.gz |
92 |
} |
93 |
|
94 |
src_prepare() { |
95 |
cd "${WORKDIR}"/"${MY_P}" |
96 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) |
97 |
do |
98 |
epatch "${DISTDIR}"/patch."${MY_PV}"."${i}" |
99 |
done |
100 |
epatch "${FILESDIR}"/${PN}-4.8-libtool.patch |
101 |
epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch |
102 |
|
103 |
# use the includes from the prefix |
104 |
epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch |
105 |
epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch |
106 |
|
107 |
# upstream autoconf fails to build DBM when it's supposed to |
108 |
# merged upstream in 5.0.26 |
109 |
#epatch "${FILESDIR}"/${PN}-5.0.21-enable-dbm-autoconf.patch |
110 |
|
111 |
# Upstream release script grabs the dates when the script was run, so lets |
112 |
# end-run them to keep the date the same. |
113 |
export REAL_DB_RELEASE_DATE="$(awk \ |
114 |
'/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \ |
115 |
"${S_BASE}"/dist/configure)" |
116 |
sed -r -i \ |
117 |
-e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \ |
118 |
"${S_BASE}"/dist/RELEASE |
119 |
|
120 |
# Include the SLOT for Java JAR files |
121 |
# This supersedes the unused jarlocation patches. |
122 |
sed -r -i \ |
123 |
-e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
124 |
"${S_BASE}"/dist/Makefile.in |
125 |
|
126 |
cd "${S_BASE}"/dist |
127 |
rm -f aclocal/libtool.m4 |
128 |
sed -i \ |
129 |
-e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
130 |
configure.ac |
131 |
sed -i \ |
132 |
-e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \ |
133 |
aclocal/programs.m4 |
134 |
AT_M4DIR="aclocal aclocal_java" eautoreconf |
135 |
# Upstream sucks - they do autoconf and THEN replace the version variables. |
136 |
. ./RELEASE |
137 |
for v in \ |
138 |
DB_VERSION_{FAMILY,LETTER,RELEASE,MAJOR,MINOR} \ |
139 |
DB_VERSION_{PATCH,FULL,UNIQUE_NAME,STRING,FULL_STRING} \ |
140 |
DB_VERSION \ |
141 |
DB_RELEASE_DATE ; do |
142 |
local ev="__EDIT_${v}__" |
143 |
sed -i -e "s/${ev}/${!v}/g" configure |
144 |
done |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
local myconf='' |
149 |
|
150 |
# compilation with -O0 fails on amd64, see bug #171231 |
151 |
if use amd64; then |
152 |
replace-flags -O0 -O2 |
153 |
is-flagq -O[s123] || append-flags -O2 |
154 |
fi |
155 |
|
156 |
# use `set` here since the java opts will contain whitespace |
157 |
set -- |
158 |
if use java ; then |
159 |
set -- "$@" \ |
160 |
--with-java-prefix="${JAVA_HOME}" \ |
161 |
--with-javac-flags="$(java-pkg_javac-args)" |
162 |
fi |
163 |
|
164 |
# Add linker versions to the symbols. Easier to do, and safer than header file |
165 |
# mumbo jumbo. |
166 |
if use userland_GNU ; then |
167 |
append-ldflags -Wl,--default-symver |
168 |
fi |
169 |
|
170 |
# Bug #270851: test needs TCL support |
171 |
if use tcl || use test ; then |
172 |
myconf="${myconf} --enable-tcl" |
173 |
myconf="${myconf} --with-tcl=/usr/$(get_libdir)" |
174 |
else |
175 |
myconf="${myconf} --disable-tcl" |
176 |
fi |
177 |
|
178 |
# sql_compat will cause a collision with sqlite3 |
179 |
# --enable-sql_compat |
180 |
cd "${S}" |
181 |
ECONF_SOURCE="${S_BASE}"/dist \ |
182 |
STRIP="true" \ |
183 |
econf \ |
184 |
--enable-compat185 \ |
185 |
--enable-dbm \ |
186 |
--enable-o_direct \ |
187 |
--without-uniquename \ |
188 |
--enable-sql \ |
189 |
--enable-sql_codegen \ |
190 |
--disable-sql_compat \ |
191 |
$(use arm && echo --with-mutex=ARM/gcc-assembly) \ |
192 |
$(use amd64 && echo --with-mutex=x86/gcc-assembly) \ |
193 |
$(use_enable cxx) \ |
194 |
$(use_enable cxx stl) \ |
195 |
$(use_enable java) \ |
196 |
${myconf} \ |
197 |
$(use_enable test) \ |
198 |
"$@" |
199 |
} |
200 |
|
201 |
src_compile() { |
202 |
emake || die "make failed" |
203 |
} |
204 |
|
205 |
src_install() { |
206 |
emake install DESTDIR="${D}" || die |
207 |
|
208 |
db_src_install_usrbinslot |
209 |
|
210 |
db_src_install_headerslot |
211 |
|
212 |
db_src_install_doc |
213 |
|
214 |
db_src_install_usrlibcleanup |
215 |
|
216 |
dodir /usr/sbin |
217 |
# This file is not always built, and no longer exists as of db-4.8 |
218 |
[[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \ |
219 |
mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc |
220 |
|
221 |
if use java; then |
222 |
java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so |
223 |
java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar |
224 |
rm -f "${D}"/usr/"$(get_libdir)"/*.jar |
225 |
fi |
226 |
} |
227 |
|
228 |
pkg_postinst() { |
229 |
db_fix_so |
230 |
} |
231 |
|
232 |
pkg_postrm() { |
233 |
db_fix_so |
234 |
} |
235 |
|
236 |
src_test() { |
237 |
# db_repsite is impossible to build, as upstream strips those sources. |
238 |
# db_repsite is used directly in the setup_site_prog, |
239 |
# setup_site_prog is called from open_site_prog |
240 |
# which is called only from tests in the multi_repmgr group. |
241 |
#sed -ri \ |
242 |
# -e '/set subs/s,multi_repmgr,,g' \ |
243 |
# "${S_BASE}/test/testparams.tcl" |
244 |
sed -ri \ |
245 |
-e '/multi_repmgr/d' \ |
246 |
"${S_BASE}/test/tcl/test.tcl" |
247 |
|
248 |
db_src_test |
249 |
} |