summaryrefslogtreecommitdiff
path: root/databases/tcl-sqlite3
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tcl-sqlite3')
-rw-r--r--databases/tcl-sqlite3/Makefile39
-rw-r--r--databases/tcl-sqlite3/distinfo6
-rw-r--r--databases/tcl-sqlite3/files/example.tcl.in16
3 files changed, 13 insertions, 48 deletions
diff --git a/databases/tcl-sqlite3/Makefile b/databases/tcl-sqlite3/Makefile
index c51dc5825b38..da4081b0a0f1 100644
--- a/databases/tcl-sqlite3/Makefile
+++ b/databases/tcl-sqlite3/Makefile
@@ -1,12 +1,9 @@
PORTNAME= sqlite3
-PORTVERSION= 3.34.1
-PORTREVISION= 1
+DISTVERSION= 3.50.4
CATEGORIES= databases tcl
-MASTER_SITES= https://www.sqlite.org/2021/ \
- https://www2.sqlite.org/2021/ \
- https://www3.sqlite.org/2021/
+MASTER_SITES= SF/tcl/Tcl/8.6.17
PKGNAMEPREFIX= tcl-
-DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
+DISTNAME= ${TCL_PKG}
MAINTAINER= pavelivolkov@gmail.com
COMMENT= SQLite extension for Tcl using the Tcl Extension Architecture (TEA)
@@ -16,36 +13,20 @@ LICENSE= PD
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
-USES= pkgconfig tcl:tea
-USE_LDCONFIG= yes
+USES= tcl:tea
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
-CONFIGURE_ARGS= --with-system-sqlite
+MAKE_ENV+= STRIPPROG=${STRIP_CMD}
-CFLAGS+= `pkg-config --cflags sqlite3`
-LDFLAGS+= `pkg-config --libs sqlite3`
-
-SUB_FILES= example.tcl
-SUB_LIST= "TCLSH=${TCLSH}"
-
-WRKSRC= ${WRKDIR}/${DISTNAME}/tea
-
-PLIST_FILES= lib/${PORTNAME}/libsqlite${PORTVERSION}.so \
- lib/${PORTNAME}/pkgIndex.tcl \
+TCL_PKG= ${PORTNAME:S/3//}${DISTVERSION}
+PLIST_FILES= bin/sqlite3_analyzer \
+ lib/sqlite3/lib${TCL_PKG_LIB_PREFIX}${TCL_PKG}.so \
+ lib/sqlite3/pkgIndex.tcl \
share/man/mann/sqlite3.n.gz
-PORTEXAMPLES= *
-
-OPTIONS_DEFINE= EXAMPLES THREADS
-OPTIONS_DEFAULT= THREADS
-
-THREADS_CONFIGURE_ENABLE= threads
post-patch:
@${REINPLACE_CMD} -E 's/^(.*\$$\(PACKAGE_NAME\))\$$\(PACKAGE_VERSION\).*$$/\1${PORTVERSION:C/[^[:digit:]]*([[:digit:]]+).*/\1/}/' ${WRKSRC}/Makefile.in
post-install:
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libsqlite${PORTVERSION}.so
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${STAGEDIR}${EXAMPLESDIR}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/lib${TCL_PKG_LIB_PREFIX}sqlite${PORTVERSION}.so
.include <bsd.port.mk>
diff --git a/databases/tcl-sqlite3/distinfo b/databases/tcl-sqlite3/distinfo
index 60045d92b952..9be08e1bf8ad 100644
--- a/databases/tcl-sqlite3/distinfo
+++ b/databases/tcl-sqlite3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1611470952
-SHA256 (sqlite-autoconf-3340100.tar.gz) = 2a3bca581117b3b88e5361d0ef3803ba6d8da604b1c1a47d902ef785c1b53e89
-SIZE (sqlite-autoconf-3340100.tar.gz) = 2930089
+TIMESTAMP = 1755521806
+SHA256 (sqlite3.50.4.tar.gz) = f2e3e134d2e65d453eb1a3fc8777347d6c13776cf7f3bc76c7cfb293630147e7
+SIZE (sqlite3.50.4.tar.gz) = 3040536
diff --git a/databases/tcl-sqlite3/files/example.tcl.in b/databases/tcl-sqlite3/files/example.tcl.in
deleted file mode 100644
index 3139b5515407..000000000000
--- a/databases/tcl-sqlite3/files/example.tcl.in
+++ /dev/null
@@ -1,16 +0,0 @@
-#!%%TCLSH%%
-
-package require sqlite3
-
-if {$argc!=2} {
- puts stderr "Usage: $argv0 DATABASE SQL-STATEMENT"
- exit 1
-}
-sqlite3 db [lindex $argv 0]
-db eval [lindex $argv 1] x {
- foreach v $x(*) {
- puts "$v = $x($v)"
- }
- puts ""
-}
-db close