[39542] trunk/dports/databases

simon at macports.org simon at macports.org
Sat Aug 23 12:11:34 PDT 2008


Revision: 39542
          http://trac.macosforge.org/projects/macports/changeset/39542
Author:   simon at macports.org
Date:     2008-08-23 12:11:33 -0700 (Sat, 23 Aug 2008)
Log Message:
-----------
dports/databases: New port, Tcl bindings for sqlite3.

Added Paths:
-----------
    trunk/dports/databases/tcl-sqlite3/
    trunk/dports/databases/tcl-sqlite3/Portfile

Added: trunk/dports/databases/tcl-sqlite3/Portfile
===================================================================
--- trunk/dports/databases/tcl-sqlite3/Portfile	                        (rev 0)
+++ trunk/dports/databases/tcl-sqlite3/Portfile	2008-08-23 19:11:33 UTC (rev 39542)
@@ -0,0 +1,61 @@
+# $Id$
+
+PortSystem 1.0
+
+name			tcl-sqlite3
+version			3.6.1
+categories		databases
+platforms		darwin
+maintainers		mww
+description		Tcl bindings for SQLite3
+long_description	${description}. SQLite3 is an SQL database engine in a C library. \
+				Programs that link the SQLite3 library can have SQL \
+				database access without running a separate RDBMS \
+				process. The distribution comes with a standalone \
+				command-line access program (sqlite3) that can be used \
+				to administer an SQLite3 database and which serves as \
+				an example of how to use the SQLite3 library.
+
+homepage		http://www.sqlite.org/
+master_sites	${homepage}
+distname		sqlite-${version}
+dist_subdir		${name}/${version}
+checksums		sha1 756f45e812a2063dacd947b9642fdb82301348fa
+
+depends_build		port:gawk port:gmake
+depends_lib		port:readline \
+				port:sqlite3 \
+				port:tcl
+
+post-patch {
+	reinplace "s|tclsh8.4|tclsh|g" ${worksrcpath}/configure
+}
+
+# '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary)
+configure.args	--enable-threadsafe --with-tcl=${prefix}/lib \
+			--with-readline-inc="-I${prefix}/include" \
+			--with-readline-lib="-L${prefix}/lib -lreadline -lm"
+
+configure.awk		"${prefix}/bin/gawk"
+
+use_parallel_build	yes
+build.type		gnu
+
+livecheck.check	regex
+livecheck.url	http://www.sqlite.org/download.html
+livecheck.regex	sqlite-(\[0-9\\.\]+\[0-9\])\\.
+
+post-destroot {
+	# Make sure the correct version is used, not sure why this is
+	# necessary.
+	reinplace "s|3.6|${version}|g" ${destroot}${prefix}/lib/tcl8.5/sqlite3/pkgIndex.tcl
+	# Delete all normal SQLite 3 files, they are installed by the sqlite3
+	# port.
+	file delete -force ${destroot}${prefix}/bin
+	file delete -force ${destroot}${prefix}/include
+	file delete -force ${destroot}${prefix}/share
+	file delete -force ${destroot}${prefix}/lib/pkgconfig
+	foreach file [glob ${destroot}${prefix}/lib/libsqlite*] {
+		file delete $file
+	}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080823/9b892c91/attachment.html 


More information about the macports-changes mailing list