[46092] trunk/dports/databases/unixODBC/Portfile

alakazam at macports.org alakazam at macports.org
Wed Jan 28 15:48:21 PST 2009


Revision: 46092
          http://trac.macports.org/changeset/46092
Author:   alakazam at macports.org
Date:     2009-01-28 15:48:21 -0800 (Wed, 28 Jan 2009)
Log Message:
-----------
Use spaces instead of tabs for indentation

Modified Paths:
--------------
    trunk/dports/databases/unixODBC/Portfile

Modified: trunk/dports/databases/unixODBC/Portfile
===================================================================
--- trunk/dports/databases/unixODBC/Portfile	2009-01-28 23:48:08 UTC (rev 46091)
+++ trunk/dports/databases/unixODBC/Portfile	2009-01-28 23:48:21 UTC (rev 46092)
@@ -1,97 +1,111 @@
 # $Id$
 
-PortSystem 1.0
-name			unixODBC
-version			2.2.14
-categories		databases
-platforms		darwin
-maintainers		alakazam simon at cotsworth.com
-description		Provides ODBC 3 connectivity for Unix
+PortSystem          1.0
 
-long_description	The unixODBC project provides UNIX applications with the same ODBC 3.51 API \
-				and facilities available under Windows. It provides a Driver Manager that \
-				supports the full ODBC API and performs the ODBC 3 to ODBC 2 translations \
-				with UNICODE to ANSI conversion. It also includes a set of graphical utilities \
-				that allow users to specify connections to DBMSes to be used by applications, \
-				a collection of ODBC drivers including a simple text based driver, an NNTP \
-				driver, a Postgres driver and others, and a selection of templates and \
-				libraries that to aid in the construction of ODBC drivers. It works with \
-				MySQL, Postgres, StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, \
-				Paradox 9, and many other applications and drivers. Connection pooling is \
-				also provided to increase performance with applications such as PHP.
+name                unixODBC
+version             2.2.14
+categories          databases
+platforms           darwin
+maintainers         alakazam simon at cotsworth.com
+description         Provides ODBC 3 connectivity for Unix
 
-homepage		http://www.unixodbc.org/
-master_sites	${homepage} \
-				ftp://ftp.easysoft.com/pub/beta/unixODBC/
+long_description    The unixODBC project provides UNIX applications with the \
+                    same ODBC 3.51 API and facilities available under Windows. \
+                    It provides a Driver Manager that supports the full ODBC \
+                    API and performs the ODBC 3 to ODBC 2 translations with \
+                    UNICODE to ANSI conversion. It also includes a set of \
+                    graphical utilities that allow users to specify \
+                    connections to DBMSes to be used by applications, a \
+                    collection of ODBC drivers including a simple text based \
+                    driver, an NNTP driver, a Postgres driver and others, and \
+                    a selection of templates and libraries that to aid in the \
+                    construction of ODBC drivers. It works with MySQL, \
+                    Postgres, StarOffice, Applixware, iHTML, PHP, Perl \
+                    DBD::ODBC, Paradox 9, and many other applications and \
+                    drivers. Connection pooling is also provided to increase \
+                    performance with applications such as PHP.
 
+homepage            http://www.unixodbc.org/
+master_sites        ${homepage} \
+                    ftp://ftp.easysoft.com/pub/beta/unixODBC/
+
 checksums           md5     f47c2efb28618ecf5f33319140a7acd0 \
                     sha1    ab18464c83d30d7b38b8bb58e1dd01e3ec211488 \
                     rmd160  e2a2d2de636a8b2ee1002cac809ba2a38d7eb4de
 
-depends_lib		port:libiconv port:readline
+depends_lib         port:libiconv port:readline
 
-patchfiles		patch-ltmain.sh
+patchfiles          patch-ltmain.sh
 
-configure.args	--enable-static --enable-shared --enable-gui=no --with-libiconv-prefix=${prefix}
+configure.args      --enable-static --enable-shared --enable-gui=no \
+                    --with-libiconv-prefix=${prefix}
 
-platform darwin 6 { 
-	depends_lib-append	port:dlcompat
+platform darwin 6 {
+    depends_lib-append  port:dlcompat
 }
 
-	global _cc _ccr _psq1 _psq2 _nn _odbc _ex1 _ex2
-	set _cc		"/usr/bin/gcc -bundle -flat_namespace -undefined suppress -o"
-	set _ccr	libodbccr.1.0.0
-	set	_psq1	libodbcpsql.1.0.0
-	set	_psq2	libodbcpsql.2.0.0
-	set	_nn		libnn.1.0.0
-	set _odbc	libodbc.1.0.0
+global      _cc _ccr _psq1 _psq2 _nn _odbc _ex1 _ex2
+set _cc     "/usr/bin/gcc -bundle -flat_namespace -undefined suppress -o"
+set _ccr    libodbccr.1.0.0
+set _psq1   libodbcpsql.1.0.0
+set _psq2   libodbcpsql.2.0.0
+set _nn     libnn.1.0.0
+set _odbc   libodbc.1.0.0
 
 variant gui description "Enable Qt3 based GUI support applications" {
-	depends_lib-append	port:qt3
-	configure.env-append	QTDIR=${prefix}
-	configure.args-delete	--enable-gui=no
-	configure.args-append	--enable-gui \
-	  --with-qt-dir=${prefix} \
-	  --with-qt-includes=${prefix}/include/qt3 \
-	  --with-qt-libraries=${prefix}/lib \
-	  --with-qt-bin=${prefix}/bin \
-	  --with-extra-includes=/usr/X11R6/include \
-	  --with-extra-libs=/usr/X11R6/lib
+    depends_lib-append      port:qt3
+    configure.env-append    QTDIR=${prefix}
+    configure.args-delete   --enable-gui=no
+    configure.args-append   --enable-gui \
+                            --with-qt-dir=${prefix} \
+                            --with-qt-includes=${prefix}/include/qt3 \
+                            --with-qt-libraries=${prefix}/lib \
+                            --with-qt-bin=${prefix}/bin \
+                            --with-extra-includes=/usr/X11R6/include \
+                            --with-extra-libs=/usr/X11R6/lib
 }
 
-post-destroot	{
-	# DOCS
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-	foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
-		if {[string match "*.html" $doc]} {
-			reinplace "s|${homepage}doc/||g" $doc
-		}
-		xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
-	}
-	foreach dir [list AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual] {
-		xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
-		foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
-			if {[string match "*.html" $file]} {
-				reinplace "s|${homepage}doc/||g" $file
-			}
-			xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
-		}
-	}
-
-	# TEMPLATES
-	xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
-	foreach template [glob ${portpath}/${filesdir}/*.template] {
-		xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
-	}
-	foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
-		reinplace "s|__PREFIX__|${prefix}|g" $driver
-	}
-
-	# CONFIG
-	foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
-		system "mv $ini $ini.dist"
-	}
-	destroot.keepdirs ${destroot}${prefix}/etc/ODBCDataSources
+post-destroot {
+    # DOCS
+    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+    
+    foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
+        if {[string match "*.html" $doc]} {
+            reinplace "s|${homepage}doc/||g" $doc
+        }
+        
+        xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
+    }
+    
+    foreach dir [list AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual] {
+        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
+        
+        foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
+            if {[string match "*.html" $file]} {
+                reinplace "s|${homepage}doc/||g" $file
+            }
+            
+            xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
+        }
+    }
+    
+    # TEMPLATES
+    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
+    
+    foreach template [glob ${portpath}/${filesdir}/*.template] {
+    	xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
+    }
+    
+    foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
+        reinplace "s|__PREFIX__|${prefix}|g" $driver
+    }
+    
+    # CONFIG
+    foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
+        system "mv $ini $ini.dist"
+    }
+    
+    destroot.keepdirs ${destroot}${prefix}/etc/ODBCDataSources
 }
 
 livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090128/8c6b7a13/attachment.html>


More information about the macports-changes mailing list