Gentoo Archives: gentoo-commits

From: "Caleb Tennis (caleb)" <caleb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/db: ChangeLog db-4.6.21.ebuild
Date: Sun, 04 Nov 2007 18:58:18
Message-Id: E1Iokfk-0003Y7-EU@stork.gentoo.org
1 caleb 07/11/04 18:58:12
2
3 Modified: ChangeLog
4 Added: db-4.6.21.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.230 sys-libs/db/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.230&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?rev=1.230&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/ChangeLog?r1=1.229&r2=1.230
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v
19 retrieving revision 1.229
20 retrieving revision 1.230
21 diff -u -r1.229 -r1.230
22 --- ChangeLog 25 Oct 2007 18:02:47 -0000 1.229
23 +++ ChangeLog 4 Nov 2007 18:58:11 -0000 1.230
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-libs/db
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.229 2007/10/25 18:02:47 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.230 2007/11/04 18:58:11 caleb Exp $
29 +
30 +*db-4.6.21 (04 Nov 2007)
31 +
32 + 04 Nov 2007; Caleb Tennis <caleb@g.o> +db-4.6.21.ebuild:
33 + version bump
34
35 25 Oct 2007; Michael Sterrett <mr_bones_@g.o> +db-3.2.9-r10.ebuild:
36 Restored removed version since it broke deps on mips and hppa.
37
38
39
40 1.1 sys-libs/db/db-4.6.21.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.6.21.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/db/db-4.6.21.ebuild?rev=1.1&content-type=text/plain
44
45 Index: db-4.6.21.ebuild
46 ===================================================================
47 # Copyright 1999-2007 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.6.21.ebuild,v 1.1 2007/11/04 18:58:11 caleb Exp $
50
51 inherit eutils db flag-o-matic java-pkg-opt-2
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-west.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.6"
75 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
76 IUSE="tcl java doc nocxx bootstrap"
77
78 DEPEND="tcl? ( >=dev-lang/tcl-8.4 )
79 java? ( >=virtual/jdk-1.4 )
80 >=sys-devel/binutils-2.16.1"
81 RDEPEND="tcl? ( dev-lang/tcl )
82 java? ( >=virtual/jre-1.4 )"
83
84 src_unpack() {
85 unpack "${MY_P}".tar.gz
86 cd "${WORKDIR}"/"${MY_P}"
87 for (( i=1 ; i<=${PATCHNO} ; i++ ))
88 do
89 epatch "${DISTDIR}"/patch."${MY_PV}"."${i}"
90 done
91 epatch "${FILESDIR}"/"${PN}"-"${SLOT}"-libtool.patch
92
93 # use the includes from the prefix
94 epatch "${FILESDIR}"/"${PN}"-"${SLOT}"-jni-check-prefix-first.patch
95 epatch "${FILESDIR}"/"${PN}"-4.3-listen-to-java-options.patch
96
97 sed -i \
98 -e "s,\(ac_compiler\|\${MAKEFILE_CC}\|\${MAKEFILE_CXX}\|\$CC\)\( *--version\),\1 -dumpversion,g" \
99 "${S}"/../dist/configure
100 }
101
102 src_compile() {
103 # compilation with -O0 fails on amd64, see bug #171231
104 if use amd64; then
105 replace-flags -O0 -O2
106 is-flag -O[s123] || append-flags -O2
107 fi
108
109 local myconf=""
110
111 use amd64 && myconf="${myconf} --with-mutex=x86/gcc-assembly"
112
113 use bootstrap \
114 && myconf="${myconf} --disable-cxx" \
115 || myconf="${myconf} $(use_enable !nocxx cxx)"
116
117 use tcl \
118 && myconf="${myconf} --enable-tcl --with-tcl=/usr/$(get_libdir)" \
119 || myconf="${myconf} --disable-tcl"
120
121 myconf="${myconf} $(use_enable java)"
122 if use java; then
123 myconf="${myconf} --with-java-prefix=${JAVA_HOME}"
124 # Can't get this working any other way, since it returns spaces, and
125 # bash doesn't seem to want to pass correctly in any way i try
126 local javaconf="-with-javac-flags=$(java-pkg_javac-args)"
127 fi
128
129 [[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}"
130
131 # the entire testsuite needs the TCL functionality
132 if use tcl && has test $FEATURES ; then
133 myconf="${myconf} --enable-test"
134 else
135 myconf="${myconf} --disable-test"
136 fi
137
138 # Add linker versions to the symbols. Easier to do, and safer than header file
139 # mumbo jumbo.
140 if use userland_GNU; then
141 append-ldflags -Wl,--default-symver
142 fi
143
144 cd "${S}" && ECONF_SOURCE="${S}"/../dist econf \
145 --prefix=/usr \
146 --mandir=/usr/share/man \
147 --infodir=/usr/share/info \
148 --datadir=/usr/share \
149 --sysconfdir=/etc \
150 --localstatedir=/var/lib \
151 --libdir=/usr/"$(get_libdir)" \
152 --enable-compat185 \
153 --without-uniquename \
154 --enable-rpc \
155 --host="${CHOST}" \
156 ${myconf} "${javaconf}" || die "configure failed"
157
158 sed -e "s,\(^STRIP *=\).*,\1\"none\"," Makefile > Makefile.cpy \
159 && mv Makefile.cpy Makefile
160
161 emake -j1 || die "make failed"
162 }
163
164 src_install() {
165 einstall libdir="${D}/usr/$(get_libdir)" STRIP="none" || die
166
167 db_src_install_usrbinslot
168
169 db_src_install_headerslot
170
171 db_src_install_doc
172
173 db_src_install_usrlibcleanup
174
175 dodir /usr/sbin
176 mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db46_svc
177
178 if use java; then
179 java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so
180 java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar
181 rm -f "${D}"/usr/"$(get_libdir)"/*.jar
182 fi
183 }
184
185 pkg_postinst() {
186 db_fix_so
187 }
188
189 pkg_postrm() {
190 db_fix_so
191 }
192
193
194
195 --
196 gentoo-commits@g.o mailing list