[27759] trunk/dports/aqua/BiggerSQL/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 13 16:57:33 PDT 2007


Revision: 27759
          http://trac.macosforge.org/projects/macports/changeset/27759
Author:   nox at macports.org
Date:     2007-08-13 16:57:32 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
BiggerSQL:
 * Ported to xcode portgroup.
 * Added some magic to enable the use of all the postgresql ports.
 * Added livecheck and sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/aqua/BiggerSQL/Portfile

Modified: trunk/dports/aqua/BiggerSQL/Portfile
===================================================================
--- trunk/dports/aqua/BiggerSQL/Portfile	2007-08-13 22:56:45 UTC (rev 27758)
+++ trunk/dports/aqua/BiggerSQL/Portfile	2007-08-13 23:57:32 UTC (rev 27759)
@@ -1,13 +1,15 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			BiggerSQL
 version			1.3.8
 categories		aqua databases
 platforms		darwin
-maintainers		nomaintainer at macports.org
+maintainers		nomaintainer
 description		SQL front-end to the postgresql DBMS
+
 long_description	BiggerSQL is a tool that (like psql) allows you to \
 				execute SQL on a PostgreSQL server. Type text into the \
 				top pane,  see if it is successful in the middle pane, \
@@ -17,32 +19,35 @@
 				BiggerSQL builds on BigSQL.
 
 homepage		http://homepage.mac.com/levanj/Cocoa/
-master_sites	${homepage}/programs/
+master_sites	${homepage}programs/
 extract.suffix	.tgz
-checksums		md5 3efd182ff810d6bceae5b2486bd25c85
 
-depends_lib		path:${prefix}/lib/libpq.a:postgresql
+checksums		md5 3efd182ff810d6bceae5b2486bd25c85 \
+				sha1 3a8cee4e4009bff0c8c2a7a19b4815f61b780c04 \
+				rmd160 9d6a68dae8ae7f5f92abb8f5cce086e35bd28b26
 
 worksrcdir		${name}
 
-configure	{
-	cd ${worksrcpath}/BiggerSQL.xcode/
-	reinplace "s|/usr/local/pgsql/include|${prefix}/include|g" project.pbxproj
-	reinplace "s|/usr/local/pgsql/lib|${prefix}/lib|g" project.pbxproj
+set pgglob [glob -directory ${prefix}/lib -nocomplain -tails postgresql*]
+if {[llength ${pgglob}]} {
+	set postgresql	[lindex ${pgglob} end]
+} else {
+	set postgresql	postgresql82
 }
 
-build.type		pbx
-build.target	-buildstyle Deployment
+set pglibdir ${prefix}/lib/${postgresql}
+depends_lib path:${pglibdir}:${postgresql}
 
-set xcodebuilddir		build
-platform darwin 8 {
-	if {$xcodeversion == "2.1"} {
-		set xcodebuilddir	build/Deployment
+post-patch {
+	foreach {subdir} {include lib} {
+		reinplace "s|/usr/local/pgsql/${subdir}|${prefix}/${subdir}/${postgresql}|" \
+			${worksrcpath}/${name}.xcode/project.pbxproj
 	}
 }
 
-destroot	{
-	xinstall -d -m 755 ${destroot}/Applications/MacPorts
-	file copy ${worksrcpath}/${xcodebuilddir}/BiggerSQL.app \
-		${destroot}/Applications/MacPorts/BiggerSQL.app
-}
+universal_variant no
+
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex	"${name} v(\\d+(?:(\\.\\d+)*))"
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070813/4b06cd26/attachment.html


More information about the macports-changes mailing list