[53428] trunk/dports/sysutils
dh at macports.org
dh at macports.org
Sun Jul 5 17:16:40 PDT 2009
Revision: 53428
http://trac.macports.org/changeset/53428
Author: dh at macports.org
Date: 2009-07-05 17:16:40 -0700 (Sun, 05 Jul 2009)
Log Message:
-----------
* New port: sqsh, an interactive shell for Sybase.
Added Paths:
-----------
trunk/dports/sysutils/sqsh/
trunk/dports/sysutils/sqsh/Portfile
Added: trunk/dports/sysutils/sqsh/Portfile
===================================================================
--- trunk/dports/sysutils/sqsh/Portfile (rev 0)
+++ trunk/dports/sysutils/sqsh/Portfile 2009-07-06 00:16:40 UTC (rev 53428)
@@ -0,0 +1,47 @@
+# -*- 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
+
+name sqsh
+version 2.1.5
+categories database sysutils
+maintainers dh openmaintainer
+
+description A Sybase Shell
+long_description Sqsh (pronounced skwish) is short for SQshelL (pronounced s-q-shell), \
+ a replacement for the venerable 'isql' program supplied by Sybase.
+homepage http://sqsh.sourceforge.net/
+platforms darwin
+
+master_sites sourceforge
+extract.suffix .tgz
+checksums md5 6169fb449e6b0b7a26be703f350f4e46 \
+ sha1 4029f29b2cf8d29450a5d36544ab4b8ac8216f92 \
+ rmd160 82fc7ced0ec488f91308dd827ef9a397a3d708bb
+
+depends_lib port:readline port:freetds
+
+configure.env SYBASE=${prefix} CPPFLAGS=-I${prefix}/include/freetds INCDIRS=${prefix}/include LIBDIRS=${prefix}/lib
+configure.args --with-readline --mandir=${prefix}/share/man
+
+build.target build
+use_parallel_build yes
+
+destroot.target-append install.man
+
+post-destroot {
+ file rename ${destroot}${prefix}/etc/sqshrc ${destroot}${prefix}/etc/sqshrc.sample
+}
+
+post-activate {
+ if {![file exists ${prefix}/etc/sqshrc]} {
+ file copy ${prefix}/etc/sqshrc.sample ${prefix}/etc/sqshrc
+ } else {
+ ui_msg "\n****************************************************************"
+ ui_msg "The already existing sqshrc has been retained. The distribution's"
+ ui_msg "sqshrc has instead been installed to "
+ ui_msg " ${prefix}/etc/sqshrc.sample "
+ ui_msg "****************************************************************"
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090705/9c37b14f/attachment.html>
More information about the macports-changes
mailing list