source: trunk/dports/devel/hs-hslogger/Portfile @ 29789

Last change on this file since 29789 was 29789, checked in by ryandesign@…, 13 years ago

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            hs-hslogger
5set shortname   hslogger
6version         1.0.2
7categories      devel
8maintainers     gwright@macports.org
9platforms       darwin
10description     A logging framework for Haskell
11long_description        \
12                hslogger lets each log message have a priority          \
13                and source be associated with it. The programmer        \
14                can then define global handlers that route or filter    \
15                messages based on the priority and source. hslogger     \
16                also has a syslog handler built in.
17
18homepage        http://software.complete.org/${shortname}
19master_sites    http://hackage.haskell.org/packages/archive/${shortname}/${version}
20
21distfiles       ${shortname}-${version}${extract.suffix}
22
23checksums       md5 402a0000fd59ee437377773cbe723f4f
24
25depends_build   port:ghc
26
27worksrcdir      ${shortname}-${version}
28
29configure       { cd ${worksrcpath}
30                  system "runhaskell Setup.hs configure --prefix=${prefix}"
31                }
32
33build           { cd ${worksrcpath}
34                  system "runhaskell Setup.hs build"
35                }
36
37destroot        { cd ${worksrcpath}
38                  system "runhaskell Setup.hs copy --copy-prefix=${destroot}${prefix}"
39                  system "runhaskell Setup.hs register   --gen-script"
40                  system "runhaskell Setup.hs unregister --gen-script"
41
42                  file mkdir ${destroot}${prefix}/libexec/${name}
43                  file copy ${worksrcpath}/register.sh \
44                            ${destroot}${prefix}/libexec/${name}
45                  file copy ${worksrcpath}/unregister.sh \
46                            ${destroot}${prefix}/libexec/${name}
47                }
48
49post-activate   { system "${prefix}/libexec/${name}/register.sh" }
50
51#pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
52
Note: See TracBrowser for help on using the repository browser.