db: update to 5.3.21 (major upgrade, soname bumps).

This commit is contained in:
Juan RP 2013-05-09 16:13:04 +02:00
parent a242d2b408
commit 3e3bb76a39
2 changed files with 32 additions and 22 deletions

View file

@ -1244,3 +1244,5 @@ libmicrohttpd.so.10 libmicrohttpd-0.9.26_1
libgit2.so.0 libgit2-0.18.0_1
libagg.so.2 agg-2.5_1
libzzip-0.so.13 zziplib-0.13.62_1
libdb-5.3.so libdb-5.3.21_1
libdb_cxx-5.3.so libdb-5.3.21_1

View file

@ -1,22 +1,30 @@
# Template file for 'db'
pkgname=db
version=4.8.30
revision=4
version=5.3.21
revision=1
wrksrc="db-${version}"
build_style=gnu-configure
build_wrksrc="build_unix"
configure_script="../dist/configure"
configure_args="--enable-compat185 --enable-cxx --enable-o_direct
--enable-posixmutexes --disable-static"
make_build_args="LIBSO_LIBS=-lpthread"
short_desc="The Berkeley DB from Oracle"
short_desc="The Berkeley DB embedded database system"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
license="BSD"
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0491a07cdb21fb9aa82773bbbedaeb7639cbd0e7f96147ab46141e0045db72a
checksum=ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8
do_configure() {
cd build_unix
../dist/configure ${CONFIGURE_SHARED_ARGS} --enable-compat185 \
--enable-cxx --enable-static --enable-dbm
}
do_build() {
cd build_unix
make LIBSO_LIBS=-lpthread ${makejobs}
}
do_install() {
cd build_unix
make DESTDIR=${DESTDIR} install
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
@ -25,38 +33,38 @@ post_install() {
db-devel_package() {
depends="libdb>=${version} libdb-cxx>=${version}"
short_desc+=" -- development files"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
db-docs_package() {
short_desc+=" -- documentation files"
short_desc+=" - documentation files"
noarch=yes
pkg_install() {
vmove usr/share/doc
}
}
db_package() {
pkg_install() {
vmove usr/bin
}
}
libdb-cxx_package() {
short_desc+=" -- C++ shared libraries"
short_desc+=" - C++ shared libraries"
pkg_install() {
vmove "usr/lib/libdb_cxx*.so*"
}
}
libdb_package() {
short_desc+=" -- C shared libraries"
replaces="db<4.8.26"
short_desc+=" - C shared libraries"
pkg_install() {
vmove "usr/lib/libdb.so*"
vmove "usr/lib/libdb-*.so*"
}
}
db_package() {
pkg_install() {
vmove all
}
}