1 |
caleb 09/06/21 13:43:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: db-4.7.25_p4.ebuild |
5 |
Log: |
6 |
Version bump, from #272983 |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.285 sys-libs/db/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.285&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.285&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?r1=1.284&r2=1.285 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v |
19 |
retrieving revision 1.284 |
20 |
retrieving revision 1.285 |
21 |
diff -u -r1.284 -r1.285 |
22 |
--- ChangeLog 1 Jun 2009 12:01:16 -0000 1.284 |
23 |
+++ ChangeLog 21 Jun 2009 13:43:28 -0000 1.285 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sys-libs/db |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.284 2009/06/01 12:01:16 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.285 2009/06/21 13:43:28 caleb Exp $ |
29 |
+ |
30 |
+*db-4.7.25_p4 (21 Jun 2009) |
31 |
+ |
32 |
+ 21 Jun 2009; Caleb Tennis <caleb@g.o> +db-4.7.25_p4.ebuild: |
33 |
+ Version bump, from #272983 |
34 |
|
35 |
01 Jun 2009; Raúl Porcel <armin76@g.o> db-4.6.21_p4.ebuild: |
36 |
arm/ia64/m68k/s390/sh/sparc stable wrt #248905 |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-libs/db/db-4.7.25_p4.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.7.25_p4.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.7.25_p4.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: db-4.7.25_p4.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-4.7.25_p4.ebuild,v 1.1 2009/06/21 13:43:28 caleb Exp $ |
50 |
|
51 |
inherit eutils db flag-o-matic java-pkg-opt-2 autotools libtool |
52 |
|
53 |
#Number of official patches |
54 |
#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` |
55 |
PATCHNO=${PV/*.*.*_p} |
56 |
if [[ ${PATCHNO} == "${PV}" ]] ; then |
57 |
MY_PV=${PV} |
58 |
MY_P=${P} |
59 |
PATCHNO=0 |
60 |
else |
61 |
MY_PV=${PV/_p${PATCHNO}} |
62 |
MY_P=${PN}-${MY_PV} |
63 |
fi |
64 |
|
65 |
S="${WORKDIR}/${MY_P}/build_unix" |
66 |
DESCRIPTION="Oracle Berkeley DB" |
67 |
HOMEPAGE="http://www.oracle.com/technology/software/products/berkeley-db/index.html" |
68 |
SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz" |
69 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) ; do |
70 |
export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" |
71 |
done |
72 |
|
73 |
LICENSE="OracleDB" |
74 |
SLOT="4.7" |
75 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
76 |
IUSE="doc java nocxx tcl test" |
77 |
|
78 |
# the entire testsuite needs the TCL functionality |
79 |
DEPEND="tcl? ( >=dev-lang/tcl-8.4 ) |
80 |
test? ( >=dev-lang/tcl-8.4 ) |
81 |
java? ( >=virtual/jdk-1.5 ) |
82 |
>=sys-devel/binutils-2.16.1" |
83 |
RDEPEND="tcl? ( dev-lang/tcl ) |
84 |
java? ( >=virtual/jre-1.5 )" |
85 |
|
86 |
src_unpack() { |
87 |
unpack "${MY_P}".tar.gz |
88 |
cd "${WORKDIR}"/"${MY_P}" |
89 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) |
90 |
do |
91 |
epatch "${DISTDIR}"/patch."${MY_PV}"."${i}" |
92 |
done |
93 |
epatch "${FILESDIR}"/"${PN}"-4.6-libtool.patch |
94 |
|
95 |
# use the includes from the prefix |
96 |
epatch "${FILESDIR}"/"${PN}"-4.6-jni-check-prefix-first.patch |
97 |
epatch "${FILESDIR}"/"${PN}"-4.3-listen-to-java-options.patch |
98 |
|
99 |
# Include the SLOT for Java JAR files |
100 |
# This supersedes the unused jarlocation patches. |
101 |
sed -r -i \ |
102 |
-e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
103 |
"${S}"/../dist/Makefile.in |
104 |
|
105 |
cd "${S}"/../dist |
106 |
rm -f aclocal/libtool.m4 |
107 |
sed -i \ |
108 |
-e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
109 |
configure.ac |
110 |
sed -i \ |
111 |
-e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \ |
112 |
aclocal/programs.m4 |
113 |
AT_M4DIR="aclocal aclocal_java" eautoreconf |
114 |
# Upstream sucks - they do autoconf and THEN replace the version variables. |
115 |
. ./RELEASE |
116 |
sed -i \ |
117 |
-e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" \ |
118 |
-e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g" \ |
119 |
-e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g" \ |
120 |
-e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g" \ |
121 |
-e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g" \ |
122 |
-e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure |
123 |
} |
124 |
|
125 |
src_compile() { |
126 |
# compilation with -O0 fails on amd64, see bug #171231 |
127 |
if use amd64; then |
128 |
replace-flags -O0 -O2 |
129 |
is-flagq -O[s123] || append-flags -O2 |
130 |
fi |
131 |
|
132 |
# use `set` here since the java opts will contain whitespace |
133 |
set -- |
134 |
if use java ; then |
135 |
set -- "$@" \ |
136 |
--with-java-prefix="${JAVA_HOME}" \ |
137 |
--with-javac-flags="$(java-pkg_javac-args)" |
138 |
fi |
139 |
|
140 |
# Add linker versions to the symbols. Easier to do, and safer than header file |
141 |
# mumbo jumbo. |
142 |
if use userland_GNU ; then |
143 |
append-ldflags -Wl,--default-symver |
144 |
fi |
145 |
|
146 |
cd "${S}" |
147 |
ECONF_SOURCE="${S}"/../dist \ |
148 |
STRIP="true" \ |
149 |
econf \ |
150 |
--enable-compat185 \ |
151 |
--enable-o_direct \ |
152 |
--without-uniquename \ |
153 |
--enable-rpc \ |
154 |
$(use amd64 && echo --with-mutex=x86/gcc-assembly) \ |
155 |
$(use_enable !nocxx cxx) \ |
156 |
$(use_enable java) \ |
157 |
$(use_enable tcl) \ |
158 |
$(use tcl && echo --with-tcl=/usr/$(get_libdir)) \ |
159 |
$(use_enable test) \ |
160 |
"$@" |
161 |
|
162 |
emake || die "make failed" |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
emake install DESTDIR="${D}" || die |
167 |
|
168 |
db_src_install_usrbinslot |
169 |
|
170 |
db_src_install_headerslot |
171 |
|
172 |
db_src_install_doc |
173 |
|
174 |
db_src_install_usrlibcleanup |
175 |
|
176 |
dodir /usr/sbin |
177 |
mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc |
178 |
|
179 |
if use java; then |
180 |
java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so |
181 |
java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar |
182 |
rm -f "${D}"/usr/"$(get_libdir)"/*.jar |
183 |
fi |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
db_fix_so |
188 |
} |
189 |
|
190 |
pkg_postrm() { |
191 |
db_fix_so |
192 |
} |