source: trunk/dports/sysutils/sqsh/Portfile

Last change on this file was 149988, checked in by mf2k@…, 15 months ago

py-apycot py-cog py-dateutil py-epydoc py-logilab-common py-mako py-numpy py-pylint sqsh: Ports abandoned by dh. (#51239)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 149988 2016-07-07 18:55:53Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                sqsh
7version             2.4
8revision            1
9categories          sysutils databases
10license             GPL-2+
11maintainers         nomaintainer
12
13description         A Sybase Shell
14long_description    Sqsh (pronounced skwish) is short for SQshelL (pronounced s-q-shell), \
15                    a replacement for the venerable 'isql' program supplied by Sybase.
16homepage            http://sqsh.sourceforge.net/
17platforms           darwin
18
19master_sites        sourceforge
20checksums           md5     0ad6cc9452d3257866ccde5f14ffa013 \
21                    sha1    8446a3e03457489dddc9ecb79a5e88b0605edad3
22
23depends_lib         port:readline port:freetds
24extract.suffix      .tgz
25
26patchfiles          patch-sqsh_readline.c
27
28post-patch {
29    reinplace "s|malloc.h|stdlib.h|" ${worksrcpath}/src/sqsh_parser/tsql.c
30}
31
32configure.env       SYBASE=${prefix} CPPFLAGS=-I${prefix}/include/freetds INCDIRS=${prefix}/include LIBDIRS=${prefix}/lib
33configure.args      --with-readline --mandir=${prefix}/share/man
34
35build.target        build         
36use_parallel_build  yes
37
38destroot.target-append install.man
39
40post-destroot {
41    file rename ${destroot}${prefix}/etc/sqshrc ${destroot}${prefix}/etc/sqshrc.sample
42}
43
44post-activate {
45   if {![file exists ${prefix}/etc/sqshrc]} {
46      file copy ${prefix}/etc/sqshrc.sample ${prefix}/etc/sqshrc
47   } else {
48      ui_msg "\n****************************************************************"
49      ui_msg "The already existing sqshrc has been retained.  The distribution's"
50      ui_msg "sqshrc has instead been installed to "
51      ui_msg "    ${prefix}/etc/sqshrc.sample "
52      ui_msg "****************************************************************"
53   }
54}
Note: See TracBrowser for help on using the repository browser.