[56920] trunk/dports/databases/freetds/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Sep 3 09:08:08 PDT 2009


Revision: 56920
          http://trac.macports.org/changeset/56920
Author:   ryandesign at macports.org
Date:     2009-09-03 09:08:04 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
freetds: reformatting / rearranging

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

Modified: trunk/dports/databases/freetds/Portfile
===================================================================
--- trunk/dports/databases/freetds/Portfile	2009-09-03 16:04:06 UTC (rev 56919)
+++ trunk/dports/databases/freetds/Portfile	2009-09-03 16:08:04 UTC (rev 56920)
@@ -1,15 +1,17 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
 name                freetds
 version             0.82
 categories          databases
 platforms           darwin
 maintainers         nomaintainer
+
 description         A set of libraries for Unix and Linux that allows your programs to natively \
                     talk to Microsoft SQL Server and Sybase databases
+
 long_description    FreeTDS is an open source implementation of the TDS (Tabular DataStream) \
                     protocol used by these databases for their own clients. It supports many \
                     different flavors of the protocol and supports several APIs to access it. \
@@ -23,29 +25,24 @@
 master_sites        ftp://ftp.ibiblio.org/pub/Linux/ALPHA/${name}/stable/ \
                     http://ibiblio.org/pub/Linux/ALPHA/${name}/stable/ \
                     http://ibiblio.org/pub/Linux/ALPHA/${name}/old/${version}/
-checksums           md5 3df6b2e83fd420e90f1becbd1162990a \
-                    sha1 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d \
-                    rmd160 d3596c512022332cdb3bab375950159f1e930a4b
+
+checksums           md5     3df6b2e83fd420e90f1becbd1162990a \
+                    sha1    7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d \
+                    rmd160  d3596c512022332cdb3bab375950159f1e930a4b
+
 depends_build       port:libtool
-depends_lib         port:libiconv port:ncurses port:readline
+
+depends_lib         port:libiconv \
+                    port:ncurses \
+                    port:readline
+
 patchfiles          patch-cspublic.h
+
 configure.args      --mandir=${prefix}/share/man \
                     --includedir=${prefix}/include/${name} \
                     --sysconfdir=${prefix}/etc/${name} \
                     --with-libiconv-prefix=${prefix}
 
-use_parallel_build  yes
-
-post-destroot {
-    # rename the freetds conf files so we don't clobber any existing ones
-    foreach file [list "freetds.conf" "locales.conf" "pool.conf"] {
-        file rename ${destroot}${prefix}/etc/freetds/${file} ${destroot}${prefix}/etc/freetds/${file}.sample
-    }
-
-    file rename ${destroot}${prefix}/share/doc/${name}-${version} \
-        ${destroot}${prefix}/share/doc/${name}
-}
-    
 post-patch {
     reinplace "s|../replacements/libreplacements.la||g" \
         ${worksrcpath}/src/server/Makefile.in \
@@ -53,24 +50,36 @@
         ${worksrcpath}/src/odbc/Makefile.in \
         ${worksrcpath}/src/dblib/Makefile.in \
         ${worksrcpath}/src/apps/Makefile.in
-
+    
     reinplace "s|../../replacements/libreplacements.la||g" \
         ${worksrcpath}/src/apps/fisql/Makefile.in \
         ${worksrcpath}/src/dblib/unittests/Makefile.in \
         ${worksrcpath}/src/tds/unittests/Makefile.in
 }
 
+use_parallel_build  yes
+
 pre-build {
     ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool
 }
 
+post-destroot {
+    # rename the freetds conf files so we don't clobber any existing ones
+    foreach file [list "freetds.conf" "locales.conf" "pool.conf"] {
+        file rename ${destroot}${prefix}/etc/freetds/${file} ${destroot}${prefix}/etc/freetds/${file}.sample
+    }
+    
+    file rename ${destroot}${prefix}/share/doc/${name}-${version} \
+        ${destroot}${prefix}/share/doc/${name}
+}
+
 post-activate {
     # copy over freetds sample files if none exists
     ui_msg "\n****************************************************************"
     foreach file [list "freetds.conf" "locales.conf" "pool.conf"] {
         if {![file exists ${prefix}/etc/freetds/${file}]} {
             ui_msg "Configuration file ${file} does not exist and has been created using"
-            ui_msg "    ${prefix}/etc/freetds/${file}.sample "
+            ui_msg "    ${prefix}/etc/freetds/${file}.sample"
             file copy ${prefix}/etc/freetds/${file}.sample ${prefix}/etc/freetds/${file}
         } else {
             ui_msg "Configuration file ${file} exists and has has been retained."
@@ -81,7 +90,7 @@
 }
 
 variant mssql description {Use MS style dblib} {
-       configure.args-append --enable-msdblib --with-tdsver=8.0
+    configure.args-append --enable-msdblib --with-tdsver=8.0
 }
 
 variant odbc description {Build odbc driver against unixODBC} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090903/4e0c8a19/attachment.html>


More information about the macports-changes mailing list