[39820] trunk/dports/devel

gwright at macports.org gwright at macports.org
Sat Sep 6 13:50:06 PDT 2008


Revision: 39820
          http://trac.macports.org/changeset/39820
Author:   gwright at macports.org
Date:     2008-09-06 13:50:06 -0700 (Sat, 06 Sep 2008)
Log Message:
-----------
New port: hs-ghc-paths.  Library for locating GHC's installation
directories, used by new versions of haddock.

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

Added: trunk/dports/devel/hs-ghc-paths/Portfile
===================================================================
--- trunk/dports/devel/hs-ghc-paths/Portfile	                        (rev 0)
+++ trunk/dports/devel/hs-ghc-paths/Portfile	2008-09-06 20:50:06 UTC (rev 39820)
@@ -0,0 +1,47 @@
+# $Id: Portfile 34731 2008-03-03 23:38:59Z gwright at macports.org $
+
+PortSystem 1.0
+
+name		hs-ghc-paths
+set canonicalname	ghc-paths
+version		0.1.0.5
+categories	devel haskell
+maintainers	nomaintainer
+platforms	darwin
+description	Locate ghc's installation directories
+long_description	\
+		Locate GHC's installation directories. This package is	\
+		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
+
+configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix}"
+                }
+
+build           { system "cd ${worksrcpath} && runhaskell Setup build -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/20080906/1659564b/attachment-0001.html 


More information about the macports-changes mailing list