[27702] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 12 04:01:03 PDT 2007


Revision: 27702
          http://trac.macosforge.org/projects/macports/changeset/27702
Author:   gwright at macports.org
Date:     2007-08-12 04:01:02 -0700 (Sun, 12 Aug 2007)

Log Message:
-----------
Rename haskell-chunks to hs-chunks are make sure files
get installed to ${destroot}.

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

Added Paths:
-----------
    trunk/dports/devel/hs-chunks/

Copied: trunk/dports/devel/hs-chunks (from rev 27659, trunk/dports/devel/haskell-chunks)

Modified: trunk/dports/devel/hs-chunks/Portfile
===================================================================
--- trunk/dports/devel/haskell-chunks/Portfile	2007-08-11 15:52:40 UTC (rev 27659)
+++ trunk/dports/devel/hs-chunks/Portfile	2007-08-12 11:01:02 UTC (rev 27702)
@@ -1,27 +1,29 @@
 # $Id$
 
 PortSystem 1.0
-name                haskell-chunks
-version             2007.4.18
-distname            chunks-${version}
-description         The chunks library for Haskell
-long_description    This library supports templates inspired by the Perl \
-                    HTML::Chunks module, but this Haskell implementation \
-                    checks at compile time that the templates used exist and \
-                    are used correctly. The templates are combined within the \
-                    compiled Haskell, removing the dependency on the external \
-                    template file.
-homepage            http://www.wellquite.org/chunks/
-categories          devel
-maintainers         me at thomaskeller.biz
-master_sites        http://hackage.haskell.org/packages/archive/chunks/
-checksums           md5 783cd887026c2a096aac448ce8bd714b
+name		hs-chunks
+version		2007.4.18
+distname	chunks-${version}
+categories	devel
+maintainers	me at thomaskeller.biz
+description	The chunks library for Haskell
+long_description	\
+		This library supports templates inspired by the Perl \
+		HTML::Chunks module, but this Haskell implementation \
+		checks at compile time that the templates used exist and \
+		are used correctly. The templates are combined within the \
+		compiled Haskell, removing the dependency on the external \
+		template file.
 
-depends_build       port:ghc
+homepage	http://www.wellquite.org/chunks/
+master_sites	http://hackage.haskell.org/packages/archive/chunks/${version}
+checksums	md5 783cd887026c2a096aac448ce8bd714b
 
+depends_build	port:ghc
+
 configure {
 	cd ${worksrcpath}
-	system "runghc Setup.hs configure"
+	system "runghc Setup.hs configure --prefix=${prefix}"
 }
 
 build {
@@ -31,6 +33,18 @@
 
 destroot {
 	cd ${worksrcpath}
-	system "runghc Setup.hs install"
+	system "runghc Setup.hs copy --copy-prefix=${destroot}${prefix}"
+	system "runghc Setup.hs register   --gen-script"
+	system "runghc Setup.hs 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/20070812/6a4c3591/attachment.html


More information about the macports-changes mailing list