I would like to adopt tdb package.
--
Takashi Yano <[email protected]>
--- origsrc/tdb-1.2.9/buildtools/wafsamba/samba_conftests.py 2010-12-15
04:46:16.000000000 -0600
+++ src/tdb-1.2.9/buildtools/wafsamba/samba_conftests.py 2011-12-12
01:30:34.239867900 -0600
@@ -247,7 +247,10 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=Fa
# path for execution
lastprog = o.link_task.outputs[0].abspath(env)
- if not rpath:
+ if sys.platform == 'cygwin':
+ os.putenv('PATH', os.path.join(bdir, 'default/libdir') + ':' +
os.environ['PATH'])
+ old_ld_library_path = None
+ elif not rpath:
if 'LD_LIBRARY_PATH' in os.environ:
old_ld_library_path = os.environ['LD_LIBRARY_PATH']
else:
--- origsrc/tdb-1.2.9/buildtools/wafsamba/samba_install.py 2010-12-20
19:00:02.000000000 -0600
+++ src/tdb-1.2.9/buildtools/wafsamba/samba_install.py 2011-12-12
04:54:36.377078100 -0600
@@ -159,6 +159,12 @@ def apply_vscript(self):
self.version_script)
self.version_script = None
+@feature('cshlib')
+def apply_implib(self):
+ if self.env.DEST_BINFMT == 'pe':
+ self.env.append_value('LINKFLAGS', "-Wl,--out-implib,lib%s.dll.a" %
+ os.path.split(self.target)[1])
+
##############################
# handle the creation of links for libraries and binaries in the build tree
inherit python3
NAME="tdb"
VERSION=1.4.10
RELEASE=1
CATEGORY="Database"
SUMMARY="Trivial Database"
DESCRIPTION="TDB is a Trivial Database. In concept, it is very much like GDBM,
and BSD's DB except that it allows multiple simultaneous writers and uses
locking internally to keep writers from trampling on each other. TDB is also
extremely small."
HOMEPAGE="http://tdb.samba.org/"
SRC_URI="http://www.samba.org/ftp/${NAME}/${NAME}-${VERSION}.tar.gz"
PATCH_URI="1.2.9-cygwin.patch"
PKG_NAMES="tdb libtdb1 libtdb-devel python39-tdb"
tdb_SUMMARY="${SUMMARY} utilities"
tdb_CONTENTS="usr/bin/tdb* usr/share/"
libtdb1_SUMMARY="${SUMMARY} library (runtime)"
libtdb1_CONTENTS="usr/bin/cygtdb-1.dll"
libtdb_devel_SUMMARY="${SUMMARY} library (development)"
libtdb_devel_CONTENTS="usr/include/ usr/lib/lib* usr/lib/pkgconfig/"
python39_tdb_CATEGORY="Python"
python39_tdb_SUMMARY="${SUMMARY} library (Python bindings)"
python39_tdb_CONTENTS="usr/lib/python3.9/site-packages/tdb.*"
src_compile() {
lndirs
cd ${B}
./configure --prefix=/usr \
--bundled-libraries=NONE --builtin-libraries=replace
cygmake
}
src_install() {
cd ${B}/bin/default
# tdbtorture is a test program not meant to be installed
dobin cygtdb-1.dll tdb{backup,dump,restore,tool}.exe
dolib libtdb.dll.a
doman man/*.8
doinclude ${B}/include/*.h
dopkgconfig tdb.pc
dopython2 python/tdb.dll
dopython3 python/tdb.cpython-3*.dll
}
DOCS="docs/README"