[27703] trunk/dports/devel

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


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

Log Message:
-----------
Rename haskell-parsedate to hs-parsedate and make sure
files are installed into ${destroot}.

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

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

Copied: trunk/dports/devel/hs-parsedate (from rev 27658, trunk/dports/devel/haskell-parsedate)

Modified: trunk/dports/devel/hs-parsedate/Portfile
===================================================================
--- trunk/dports/devel/haskell-parsedate/Portfile	2007-08-11 11:17:36 UTC (rev 27658)
+++ trunk/dports/devel/hs-parsedate/Portfile	2007-08-12 11:01:39 UTC (rev 27703)
@@ -1,23 +1,25 @@
 # $Id$
 
 PortSystem 1.0
-name                haskell-parsedate
-version             2006.11.10
-distname            parsedate-${version}
-description         The parsedate library for Haskell
-long_description    This library provides a function for parsing dates and \
-                    times given a date format string.
-homepage            http://www.cs.chalmers.se/~bringert/darcs/parsedate/doc/
-categories          devel
-maintainers         me at thomaskeller.biz
-master_sites        http://hackage.haskell.org/packages/archive/parsedate/
-checksums           md5 371c62793961add3e3aa46e0a40b5675
+name		hs-parsedate
+version		2006.11.10
+distname	parsedate-${version}
+categories	devel
+maintainers	nomaintainer at macports.org
+description	The parsedate library for Haskell
+long_description	\
+		This library provides a function for parsing dates and \
+		times given a date format string.
 
-depends_build       port:ghc
+homepage	http://www.cs.chalmers.se/~bringert/darcs/parsedate/doc/
+master_sites	http://hackage.haskell.org/packages/archive/parsedate/${version}
+checksums	md5 371c62793961add3e3aa46e0a40b5675
 
+depends_build	port:ghc
+
 configure {
 	cd ${worksrcpath}
-	system "runghc Setup.hs configure"
+	system "runghc Setup.hs configure --prefix=${prefix}"
 }
 
 build {
@@ -27,6 +29,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/900c0740/attachment.html


More information about the macports-changes mailing list