source: trunk/dports/devel/hsshellscript/Portfile

Last change on this file was 131201, checked in by cal@…, 3 years ago

revbump all haskell ports, follows r131199, #44891

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 131201 2015-01-06 19:52:47Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            hsshellscript
6version         2.1.0
7revision        1
8categories      devel
9license         LGPL-2.1+
10maintainers     nomaintainer
11platforms       darwin
12
13description     Haskell for Unix Shell Scripting
14long_description        \
15                HsShell allows the use of the Haskell programming       \
16                language for tasks which are usually done by shell scripts.
17
18homepage        http://www.volker-wysk.de/hsshellscript/
19master_sites    ${homepage}/dist/
20
21checksums       md5 1d85645fdf43b1496be5767272220cf1
22
23depends_build   bin:c2hs:hs-c2hs                \
24                bin:ghc:ghc
25
26patchfiles      patch-Makefile
27
28configure       {
29                  set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
30                  reinplace -locale en_US.ISO8859-1 s|/usr/local/imports|${prefix}/lib/ghc-${ghcversion}/imports| ${worksrcpath}/Makefile
31                  reinplace -locale en_US.ISO8859-1 s|/usr/local|${prefix}|g ${worksrcpath}/Makefile
32                }
33
34build.target    { }
35
36post-destroot   { system "ranlib ${destroot}${prefix}/lib/libhsshellscript.a" }
37
38post-activate   {
39                  set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
40                  system "cd ${worksrcpath} && DEST_IMPORTS=${prefix}/lib/ghc-${ghcversion}/imports/hsshellscript \
41                          DEST_LIB=${prefix}/lib \
42                          ghc-pkg -i lib/hsshellscript.pkg --update-package --auto-ghci-libs"
43                }
Note: See TracBrowser for help on using the repository browser.