[Midnightbsd-cvs] mports [24215] trunk/databases: add sqlite2

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 5 08:52:49 EDT 2018


Revision: 24215
          http://svnweb.midnightbsd.org/mports/?rev=24215
Author:   laffer1
Date:     2018-09-05 08:52:48 -0400 (Wed, 05 Sep 2018)
Log Message:
-----------
add sqlite2

Modified Paths:
--------------
    trunk/databases/Makefile

Added Paths:
-----------
    trunk/databases/sqlite2/
    trunk/databases/sqlite2/Makefile
    trunk/databases/sqlite2/distinfo
    trunk/databases/sqlite2/files/
    trunk/databases/sqlite2/files/example.tcl
    trunk/databases/sqlite2/files/patch-Makefile.in
    trunk/databases/sqlite2/files/pkgIndex.tcl
    trunk/databases/sqlite2/pkg-descr
    trunk/databases/sqlite2/pkg-plist

Modified: trunk/databases/Makefile
===================================================================
--- trunk/databases/Makefile	2018-09-05 12:40:26 UTC (rev 24214)
+++ trunk/databases/Makefile	2018-09-05 12:52:48 UTC (rev 24215)
@@ -176,6 +176,7 @@
 SUBDIR += ruby-bdb
 SUBDIR += ruby-gdbm
 SUBDIR += sqlclient
+SUBDIR += sqlite2
 SUBDIR += sqlite3
 SUBDIR += tdb
 SUBDIR += tinycdb

Added: trunk/databases/sqlite2/Makefile
===================================================================
--- trunk/databases/sqlite2/Makefile	                        (rev 0)
+++ trunk/databases/sqlite2/Makefile	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,79 @@
+# $MidnightBSD$
+
+PORTNAME=	sqlite
+PORTVERSION=	2.8.17
+CATEGORIES=	databases
+MASTER_SITES=	http://www.sqlite.org/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	SQL database engine in a C library
+
+LICENSE=        publicdom
+
+GNU_CONFIGURE=	yes
+USES=		gmake libtool pathfix pkgconfig readline
+USE_LDCONFIG=	yes
+
+CONFIGURE_ARGS=	--with-hints=freebsd.hints
+CONFIGURE_TARGET=${ARCH}-portbld-freebsd9.1
+
+EXAMPLESDIR=	${PREFIX}/share/examples/sqlite2
+
+EXTRACT_AFTER_ARGS=	--exclude CVS
+
+OPTIONS_DEFINE=	TCL THREADS EXAMPLES
+
+.if !exists(/usr/lib/libreadline.so)
+MAKE_ARGS=	READLINE_FLAGS="-DHAVE_READLINE=1 -I${LOCALBASE}/include -L${LOCALBASE}/lib"
+.endif
+
+.include <bsd.mport.options.mk>
+
+.if ${PORT_OPTIONS:MTCL}
+USES+=		tcl
+.else
+.endif
+
+.if ${PORT_OPTIONS:MTCL}
+CATEGORIES+=	lang tcl
+COMMENT+=	with TCL wrapper
+MAKE_ARGS+=	TCLSH=${TCLSH}
+MAKE_ENV+=	TCL_VER=${TCL_VER}
+PLIST_SUB+=	WITH_TCLWRAPPER=""
+.else
+PLIST_SUB+=	WITH_TCLWRAPPER="@comment "
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
+		${WRKSRC}/Makefile.in
+.if ${PORT_OPTIONS:MTCL}
+	@${ECHO} "config_TARGET_TCL_INC=\"-I${TCL_INCLUDEDIR}\"" \
+		> ${WRKSRC}/freebsd.hints
+	@${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VER:S/.//}\"" \
+		>> ${WRKSRC}/freebsd.hints
+	${CHMOD} 755 ${WRKSRC}/www/*
+.else
+	@${ECHO} "" > ${WRKSRC}/freebsd.hints
+.endif
+
+post-patch-THREADS-on:
+	@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1\"" \
+		>> ${WRKSRC}/freebsd.hints
+	@${ECHO} "config_TARGET_LIBS=\"-lpthread\"" \
+		>> ${WRKSRC}/freebsd.hints
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sqlite
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsqlite.so
+
+post-install-TCL-on:
+	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${FAKE_MAKEARGS} install-tcl)
+	 ${CHMOD} 755 ${WRKSRC}/www/*
+	${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${FAKE_DESTDIR}${TRUE_PREFIX}/lib/sqlite
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${FAKE_DESTDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${FILESDIR}/example.tcl ${FAKE_DESTDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>


Property changes on: trunk/databases/sqlite2/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/distinfo
===================================================================
--- trunk/databases/sqlite2/distinfo	                        (rev 0)
+++ trunk/databases/sqlite2/distinfo	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,2 @@
+SHA256 (sqlite-2.8.17.tar.gz) = 3f35ebfb67867fb5b583a03e480f900206af637efe7179b32294a6a0cf806f37
+SIZE (sqlite-2.8.17.tar.gz) = 969805


Property changes on: trunk/databases/sqlite2/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/files/example.tcl
===================================================================
--- trunk/databases/sqlite2/files/example.tcl	                        (rev 0)
+++ trunk/databases/sqlite2/files/example.tcl	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,14 @@
+package require sqlite
+
+if {$argc!=2} {
+  puts stderr "Usage: %s DATABASE SQL-STATEMENT"
+  exit 1
+}
+sqlite db [lindex $argv 0]
+db eval [lindex $argv 1] x {
+  foreach v $x(*) {
+    puts "$v = $x($v)"
+  }
+  puts ""
+}
+db close


Property changes on: trunk/databases/sqlite2/files/example.tcl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/files/patch-Makefile.in
===================================================================
--- trunk/databases/sqlite2/files/patch-Makefile.in	                        (rev 0)
+++ trunk/databases/sqlite2/files/patch-Makefile.in	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,22 @@
+--- Makefile.in.orig	2005-04-23 22:43:23 UTC
++++ Makefile.in
+@@ -38,7 +38,7 @@ RELEASE = @ALLOWRELEASE@
+ 
+ # libtool compile/link/install
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC)
+-LTLINK = $(LIBTOOL) --mode=link $(TCC)
++LTLINK = $(LIBTOOL) --mode=link $(TCC) @TARGET_LIBS@
+ LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
+ 
+ # Compiler options needed for programs that use the TCL library.
+@@ -474,6 +474,10 @@ install:	sqlite libsqlite.la sqlite.h
+ 	$(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig; 
+ 	$(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig; 
+ 
++install-tcl:	libtclsqlite.la
++	$(INSTALL) -d $(DESTDIR)$(prefix)/lib/sqlite
++	$(LTINSTALL) libtclsqlite.la $(DESTDIR)$(prefix)/lib/sqlite
++
+ clean:	
+ 	rm -f *.lo *.la *.o sqlite at TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes.*
+ 	rm -rf .libs .deps 


Property changes on: trunk/databases/sqlite2/files/patch-Makefile.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/files/pkgIndex.tcl
===================================================================
--- trunk/databases/sqlite2/files/pkgIndex.tcl	                        (rev 0)
+++ trunk/databases/sqlite2/files/pkgIndex.tcl	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1 @@
+package ifneeded sqlite 2.0 [list load [file join $dir libtclsqlite.so] sqlite]


Property changes on: trunk/databases/sqlite2/files/pkgIndex.tcl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/pkg-descr
===================================================================
--- trunk/databases/sqlite2/pkg-descr	                        (rev 0)
+++ trunk/databases/sqlite2/pkg-descr	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,7 @@
+SQLite is an SQL database engine in a C library. Programs that link the SQLite
+library can have SQL database access without running a separate RDBMS process.
+The distribution comes with a standalone command-line access program (sqlite)
+that can be used to administer an SQLite database and which serves as an
+example of how to use the SQLite library.
+
+WWW: http://www.sqlite.org/


Property changes on: trunk/databases/sqlite2/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/sqlite2/pkg-plist
===================================================================
--- trunk/databases/sqlite2/pkg-plist	                        (rev 0)
+++ trunk/databases/sqlite2/pkg-plist	2018-09-05 12:52:48 UTC (rev 24215)
@@ -0,0 +1,13 @@
+bin/sqlite
+include/sqlite.h
+lib/libsqlite.a
+lib/libsqlite.so
+lib/libsqlite.so.0
+lib/libsqlite.so.0.8.6
+%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.a
+%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so
+%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so.0
+%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so.0.8.6
+%%WITH_TCLWRAPPER%%lib/sqlite/pkgIndex.tcl
+libdata/pkgconfig/sqlite.pc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.tcl


Property changes on: trunk/databases/sqlite2/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list