public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITA] tdb
@ 2024-02-20 10:41 Takashi Yano
  2024-02-20 14:54 ` Takashi Yano
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Yano @ 2024-02-20 10:41 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 80 bytes --]

I would like to adopt tdb package.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: 1.2.9-cygwin.patch --]
[-- Type: text/plain, Size: 1309 bytes --]

--- 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

[-- Attachment #3: tdb.cygport --]
[-- Type: text/plain, Size: 1465 bytes --]

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"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ITA] tdb
  2024-02-20 10:41 [ITA] tdb Takashi Yano
@ 2024-02-20 14:54 ` Takashi Yano
  2024-02-20 20:50   ` Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Yano @ 2024-02-20 14:54 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

On Tue, 20 Feb 2024 19:41:00 +0900
Takashi Yano wrote:
> I would like to adopt tdb package.

cygport file revised.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

[-- Attachment #2: 1.2.9-cygwin.patch --]
[-- Type: text/plain, Size: 1309 bytes --]

--- 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

[-- Attachment #3: tdb.cygport --]
[-- Type: text/plain, Size: 1467 bytes --]

inherit python3

NAME="tdb"
VERSION=1.4.10
RELEASE=1
LICENSE="LGPL-3.0-or-later"
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
	dopython3 python/tdb.cpython-3*.dll
}

DOCS="docs/README"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ITA] tdb
  2024-02-20 14:54 ` Takashi Yano
@ 2024-02-20 20:50   ` Marco Atzeri
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2024-02-20 20:50 UTC (permalink / raw)
  To: cygwin-apps

On 20/02/2024 15:54, Takashi Yano via Cygwin-apps wrote:
> On Tue, 20 Feb 2024 19:41:00 +0900
> Takashi Yano wrote:
>> I would like to adopt tdb package.
> 
> cygport file revised.
> 

$ git diff |grep "^+"
+++ b/cygwin-pkg-maint
+db                                           Takashi Yano
+tdb                                          Takashi Yano




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-20 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 10:41 [ITA] tdb Takashi Yano
2024-02-20 14:54 ` Takashi Yano
2024-02-20 20:50   ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).