[64936] trunk/dports/devel/hs-ghc-paths/Portfile

gwright at macports.org gwright at macports.org
Wed Mar 17 16:26:16 PDT 2010


Revision: 64936
          http://trac.macports.org/changeset/64936
Author:   gwright at macports.org
Date:     2010-03-17 16:26:15 -0700 (Wed, 17 Mar 2010)
Log Message:
-----------
Use PortGroup haskell conventions.

Modified Paths:
--------------
    trunk/dports/devel/hs-ghc-paths/Portfile

Modified: trunk/dports/devel/hs-ghc-paths/Portfile
===================================================================
--- trunk/dports/devel/hs-ghc-paths/Portfile	2010-03-17 23:23:34 UTC (rev 64935)
+++ trunk/dports/devel/hs-ghc-paths/Portfile	2010-03-17 23:26:15 UTC (rev 64936)
@@ -2,9 +2,8 @@
 
 PortSystem 1.0
 
-name		hs-ghc-paths
-set canonicalname	ghc-paths
-version		0.1.0.5
+PortGroup	haskell 1.0
+haskell.setup	ghc-paths 0.1.0.5
 categories	devel haskell
 maintainers	nomaintainer
 platforms	darwin
@@ -14,34 +13,14 @@
 		required by haddock, the Haskell documentation	    	\
 		generator.
 
-homepage	http://hackage.haskell.org/haddock/
-master_sites	http://hackage.haskell.org/packages/archive/${canonicalname}/${version}
-distname	${canonicalname}-${version}
-
 checksums	md5     8fdc122e65845d2d53734f78e22c5155		\
 		sha1    f9a70a8564be268e4aa88436ea18fc84a1ce303a	\
 		rmd160  098804e5a48ce9381174245601b3896304464219
 
-depends_build	port:ghc
+universal_variant	no
 
-configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
-                }
+configure.args-append	-v --enable-library-profiling	\
+			--with-gcc=${configure.cc}
 
-build           { system "cd ${worksrcpath} && runhaskell Setup build -v"
-                }
+build.args-append	-v
 
-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}
-                }
-
-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/20100317/d24f0062/attachment-0001.html>


More information about the macports-changes mailing list