Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/db: db-4.8.30.ebuild ChangeLog
Date: Mon, 03 May 2010 21:59:16
Message-Id: 20100503215912.BC94D2C3A2@corvid.gentoo.org
1 robbat2 10/05/03 21:59:12
2
3 Modified: ChangeLog
4 Added: db-4.8.30.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.301 sys-libs/db/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.301&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.301&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?r1=1.300&r2=1.301
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v
19 retrieving revision 1.300
20 retrieving revision 1.301
21 diff -p -w -b -B -u -u -r1.300 -r1.301
22 --- ChangeLog 12 Mar 2010 20:14:55 -0000 1.300
23 +++ ChangeLog 3 May 2010 21:59:12 -0000 1.301
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/db
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.300 2010/03/12 20:14:55 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.301 2010/05/03 21:59:12 robbat2 Exp $
29 +
30 +*db-4.8.30 (03 May 2010)
31 +
32 + 03 May 2010; Robin H. Johnson <robbat2@g.o> +db-4.8.30.ebuild:
33 + Version bump.
34
35 *db-4.8.26 (12 Mar 2010)
36
37
38
39
40 1.1 sys-libs/db/db-4.8.30.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.8.30.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.8.30.ebuild?rev=1.1&content-type=text/plain
44
45 Index: db-4.8.30.ebuild
46 ===================================================================
47 # Copyright 1999-2010 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.8.30.ebuild,v 1.1 2010/05/03 21:59:12 robbat2 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.8"
75 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~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.8-libtool.patch
94 epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch
95
96 # use the includes from the prefix
97 epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch
98 epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch
99
100 sed -e "/^DB_RELEASE_DATE=/s/%B %e, %Y/%Y-%m-%d/" -i dist/RELEASE
101
102 # Include the SLOT for Java JAR files
103 # This supersedes the unused jarlocation patches.
104 sed -r -i \
105 -e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \
106 "${S}"/../dist/Makefile.in
107
108 cd "${S}"/../dist
109 rm -f aclocal/libtool.m4
110 sed -i \
111 -e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \
112 configure.ac
113 sed -i \
114 -e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \
115 aclocal/programs.m4
116 AT_M4DIR="aclocal aclocal_java" eautoreconf
117 # Upstream sucks - they do autoconf and THEN replace the version variables.
118 . ./RELEASE
119 sed -i \
120 -e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" \
121 -e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g" \
122 -e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g" \
123 -e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g" \
124 -e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g" \
125 -e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure
126 }
127
128 src_compile() {
129 local myconf=''
130
131 # compilation with -O0 fails on amd64, see bug #171231
132 if use amd64; then
133 replace-flags -O0 -O2
134 is-flagq -O[s123] || append-flags -O2
135 fi
136
137 # use `set` here since the java opts will contain whitespace
138 set --
139 if use java ; then
140 set -- "$@" \
141 --with-java-prefix="${JAVA_HOME}" \
142 --with-javac-flags="$(java-pkg_javac-args)"
143 fi
144
145 # Add linker versions to the symbols. Easier to do, and safer than header file
146 # mumbo jumbo.
147 if use userland_GNU ; then
148 append-ldflags -Wl,--default-symver
149 fi
150
151 # Bug #270851: test needs TCL support
152 if use tcl || use test ; then
153 myconf="${myconf} --enable-tcl"
154 myconf="${myconf} --with-tcl=/usr/$(get_libdir)"
155 else
156 myconf="${myconf} --disable-tcl"
157 fi
158
159 cd "${S}"
160 ECONF_SOURCE="${S}"/../dist \
161 STRIP="true" \
162 econf \
163 --enable-compat185 \
164 --enable-o_direct \
165 --without-uniquename \
166 $(use arm && echo --with-mutex=ARM/gcc-assembly) \
167 $(use amd64 && echo --with-mutex=x86/gcc-assembly) \
168 $(use_enable !nocxx cxx) \
169 $(use_enable !nocxx stl) \
170 $(use_enable java) \
171 ${myconf} \
172 $(use_enable test) \
173 "$@"
174
175 emake || die "make failed"
176 }
177
178 src_install() {
179 emake install DESTDIR="${D}" || die
180
181 db_src_install_usrbinslot
182
183 db_src_install_headerslot
184
185 db_src_install_doc
186
187 db_src_install_usrlibcleanup
188
189 dodir /usr/sbin
190 # This file is not always built, and no longer exists as of db-4.8
191 [[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \
192 mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc
193
194 if use java; then
195 java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so
196 java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar
197 rm -f "${D}"/usr/"$(get_libdir)"/*.jar
198 fi
199 }
200
201 pkg_postinst() {
202 db_fix_so
203 }
204
205 pkg_postrm() {
206 db_fix_so
207 }