[40758] trunk/dports/devel/hs-chunks/Portfile

gwright at macports.org gwright at macports.org
Tue Oct 14 00:06:38 PDT 2008


Revision: 40758
          http://trac.macports.org/changeset/40758
Author:   gwright at macports.org
Date:     2008-10-14 00:06:35 -0700 (Tue, 14 Oct 2008)
Log Message:
-----------
Clean up in preparaion for ghc 6.10 release.

Modified Paths:
--------------
    trunk/dports/devel/hs-chunks/Portfile

Modified: trunk/dports/devel/hs-chunks/Portfile
===================================================================
--- trunk/dports/devel/hs-chunks/Portfile	2008-10-14 07:03:38 UTC (rev 40757)
+++ trunk/dports/devel/hs-chunks/Portfile	2008-10-14 07:06:35 UTC (rev 40758)
@@ -4,7 +4,7 @@
 name		hs-chunks
 version		2007.4.18
 distname	chunks-${version}
-categories	devel
+categories	devel haskell
 maintainers	me at thomaskeller.biz
 description	The chunks library for Haskell
 long_description	\
@@ -21,25 +21,22 @@
 
 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" }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081014/d101da96/attachment.html 


More information about the macports-changes mailing list