source: trunk/dports/devel/hs-plugins/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: 2.3 KB
Line 
1# $Id: Portfile 131201 2015-01-06 19:52:47Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            hs-plugins
6epoch           20050407
7version         20050407
8revision        2
9categories      devel
10maintainers     nomaintainer
11platforms       darwin
12license         LGPL-2.1+
13
14#bugs           Now builds from a snapshot to be compatible with
15#               ghc-6.4.  The previous 0.9.8 release was incompatible
16#               with the new library packing system introduced with
17#               6.4, the Common Architecture for Builing Applications
18#               and Libraries (Cabal).  Will track releases again once
19#               support for ghc-6.4 is introduced.
20
21description     A plugin library for Haskell
22long_description        \
23                hs-plugins was originally designed as a system          \
24                for replacing all the various configuration languages   \
25                in existence (particularly mutt and vim) but developed  \
26                to be very suitable for plugins in general.
27
28homepage        http://www.cse.unsw.edu.au/~dons/hs-plugins/hs-plugins.html
29master_sites    ftp://ftp.cse.unsw.edu.au/pub/users/dons/hs-plugins/snapshots
30
31checksums       md5 c53af7d0563a8473da41c940e20922f3
32
33depends_build   bin:ghc:ghc
34
35patchfiles      src_build.mk.patch
36
37use_autoconf    yes
38
39destroot.destdir        PREFIX=${destroot}${prefix}
40
41post-activate   {
42
43                  # start by unregistering old versions
44
45                  system "cd ${worksrcpath} && ghc-pkg -r printf  || true"
46                  system "cd ${worksrcpath} && ghc-pkg -r eval    || true"
47                  system "cd ${worksrcpath} && ghc-pkg -r plugins || true"
48                  system "cd ${worksrcpath} && ghc-pkg -r hi      || true"
49                  system "cd ${worksrcpath} && ghc-pkg -r altdata || true"
50
51                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/altdata/altdata.conf.in"
52                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/hi/hi.conf.in"
53                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/plugins/plugins.conf.in"
54                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/eval/eval.conf.in"
55                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/printf/printf.conf.in"
56
57                  system "ranlib ${prefix}/lib/${name}/libHSplugins.a"
58                  system "ranlib ${prefix}/lib/${name}/libHShi.a"
59                  system "ranlib ${prefix}/lib/${name}/libHSaltdata.a"
60                  system "ranlib ${prefix}/lib/${name}/libHSeval.a"
61                  system "ranlib ${prefix}/lib/${name}/libHSprintf.a"
62                }
Note: See TracBrowser for help on using the repository browser.