Page MenuHomeFreeBSD

D27955.id81636.diff
No OneTemporary

D27955.id81636.diff

Index: databases/Makefile
===================================================================
--- databases/Makefile
+++ databases/Makefile
@@ -152,6 +152,7 @@
SUBDIR += libmemcache
SUBDIR += libmemcached
SUBDIR += libmongo-client
+ SUBDIR += libmswstr
SUBDIR += libnvpair
SUBDIR += libodbc++
SUBDIR += libpbl
Index: databases/libmswstr/Makefile
===================================================================
--- /dev/null
+++ databases/libmswstr/Makefile
@@ -0,0 +1,27 @@
+# Created by: Rainer Hurling <rhurlin@gwdg.de>
+# $FreeBSD$
+
+PORTNAME= libmswstr
+PORTVERSION= 0.0.1
+CATEGORIES= databases
+DISTNAME= ${PORTNAME}-${GH_TAGNAME}
+
+MAINTAINER= rhurlin@FreeBSD.org
+COMMENT= Read and parse mdb file indices
+
+# https://github.com/leecher1337/libmswstr/blob/master/COPYING
+#DISABLE_LICENSES= yes
+USES= autoreconf dos2unix libtool
+DOS2UNIX_FILES= mswstr.c nls.h nlstables.h
+DOS2UNIX_WRKSRC= ${WRKSRC}/src
+USE_GITHUB= yes
+GH_ACCOUNT= leecher1337
+GH_TAGNAME= 5682d51
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
+ ${WRKSRC}/src/mswstr.c
+
+.include <bsd.port.mk>
Index: databases/libmswstr/distinfo
===================================================================
--- /dev/null
+++ databases/libmswstr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1593859309
+SHA256 (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 3113412e52023f4d9e51e6ccb9c24f129939e194ebefb4573b269f96de469fa1
+SIZE (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 249155
Index: databases/libmswstr/pkg-descr
===================================================================
--- /dev/null
+++ databases/libmswstr/pkg-descr
@@ -0,0 +1,14 @@
+When using Microsoft Jet 4 Databases, index fields are created using
+the DBLCMapStringW function (check MSDN library for documentation of
+this function).
+Jet 4 driver itself loads this function from mswstr.dll on Microsoft
+Windows. The library contains static translation tables (as opposed to
+LCMapStringW API) in order to have consistent translations across all
+Windows Versions.
+
+Libraries that try to read and parse mdb file indices like
+databases/mdbtools should work on every platform and therefore a
+platform independent version of this library is needed. This is an
+attempt to port the library to Posix-systems.
+
+WWW: https://github.com/leecher1337/libmswstr
Index: databases/libmswstr/pkg-plist
===================================================================
--- /dev/null
+++ databases/libmswstr/pkg-plist
@@ -0,0 +1,7 @@
+include/mswstr/mswstr.h
+include/mswstr/winnls.h
+include/mswstr/wintypes.h
+lib/libmswstr.a
+lib/libmswstr.so
+lib/libmswstr.so.0
+lib/libmswstr.so.0.0.1

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 23, 8:34 PM (13 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35414615
Default Alt Text
D27955.id81636.diff (2 KB)

Event Timeline