[40759] trunk/dports/devel/hs-hinstaller/Portfile
gwright at macports.org
gwright at macports.org
Tue Oct 14 00:20:42 PDT 2008
Revision: 40759
http://trac.macports.org/changeset/40759
Author: gwright at macports.org
Date: 2008-10-14 00:20:38 -0700 (Tue, 14 Oct 2008)
Log Message:
-----------
Clean up in preparation for upcoming ghc 6.10.
Modified Paths:
--------------
trunk/dports/devel/hs-hinstaller/Portfile
Modified: trunk/dports/devel/hs-hinstaller/Portfile
===================================================================
--- trunk/dports/devel/hs-hinstaller/Portfile 2008-10-14 07:06:35 UTC (rev 40758)
+++ trunk/dports/devel/hs-hinstaller/Portfile 2008-10-14 07:20:38 UTC (rev 40759)
@@ -2,9 +2,9 @@
PortSystem 1.0
name hs-hinstaller
-version 2007.5.13
-distname hinstaller-${version}
-categories devel
+set canonicalname hinstaller
+version 2008.2.16
+categories devel haskell
maintainers me at thomaskeller.biz
description The hinstaller library for Haskell
long_description \
@@ -18,31 +18,31 @@
homepage http://www.wellquite.org/hinstaller/
master_sites http://hackage.haskell.org/packages/archive/hinstaller/${version}/
-checksums md5 3ae4db8f48e9cf7dec9438c7689ede3a
+distname ${canonicalname}-${version}
+checksums md5 0bcb6b537f50b5f980747880d492906d \
+ sha1 5890d7752ad9bf57972dc968ae96c90292645c32 \
+ rmd160 4af29721a7820c7a198217064921e1305a5908ec
+
depends_build port:ghc
-configure {
- system "cd ${worksrcpath} && runghc Setup.hs configure --prefix=${prefix}"
-}
+configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
+ }
-build {
- system "cd ${worksrcpath} && runghc Setup.hs build"
-}
+build { system "cd ${worksrcpath} && runhaskell Setup build -v"
+ }
-destroot {
- system "cd ${worksrcpath} && runghc Setup.hs copy --copy-prefix=${destroot}${prefix}"
- system "cd ${worksrcpath} && runghc Setup.hs register --gen-script"
- system "cd ${worksrcpath} && runghc Setup.hs unregister --gen-script"
+destroot { system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
+ system "cd ${worksrcpath} && runhaskell Setup register --gen-script"
+ system "cd ${worksrcpath} && runhaskell Setup unregister --gen-script"
- file mkdir ${destroot}${prefix}/libexec/${name}
- file copy ${worksrcpath}/register.sh \
- ${destroot}${prefix}/libexec/${name}
- file copy ${worksrcpath}/unregister.sh \
- ${destroot}${prefix}/libexec/${name}
+ file mkdir ${destroot}${prefix}/libexec/${name}
+ file copy ${worksrcpath}/register.sh \
+ ${destroot}${prefix}/libexec/${name}
+ file copy ${worksrcpath}/unregister.sh \
+ ${destroot}${prefix}/libexec/${name}
+ }
-}
-
post-activate { system "${prefix}/libexec/${name}/register.sh" }
#pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081014/7b51901d/attachment-0001.html
More information about the macports-changes
mailing list