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