[39915] trunk/dports/devel/hs-HTTP/Portfile

gwright at macports.org gwright at macports.org
Thu Sep 11 11:21:03 PDT 2008


Revision: 39915
          http://trac.macports.org/changeset/39915
Author:   gwright at macports.org
Date:     2008-09-11 11:21:02 -0700 (Thu, 11 Sep 2008)
Log Message:
-----------
Minor cleanups and add to subcategory "haskell".

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

Modified: trunk/dports/devel/hs-HTTP/Portfile
===================================================================
--- trunk/dports/devel/hs-HTTP/Portfile	2008-09-11 17:45:53 UTC (rev 39914)
+++ trunk/dports/devel/hs-HTTP/Portfile	2008-09-11 18:21:02 UTC (rev 39915)
@@ -3,9 +3,9 @@
 PortSystem 1.0
 
 name		hs-HTTP
-set shortname	HTTP
+set canonicalname	HTTP
 version		3001.0.4
-categories	devel
+categories	devel haskell
 maintainers	nomaintainer
 platforms	darwin
 
@@ -17,8 +17,8 @@
 
 set hackage	http://hackage.haskell.org
 homepage	http://www.haskell.org/http
-master_sites	${hackage}/packages/archive/${shortname}/${version}
-distname	${shortname}-${version}
+master_sites	${hackage}/packages/archive/${canonicalname}/${version}
+distname	${canonicalname}-${version}
 
 checksums	md5     2cab180e319a4d7db25832cfa57cfbc5		\
 		sha1    b08a2440b31e89fb75191593d98fe4c12c6cc0b0	\
@@ -33,8 +33,17 @@
 		}
 
 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"
 
-post-activate   { catch {system "cd ${worksrcpath} && runhaskell Setup unregister"}
-		  system "cd ${worksrcpath} && runhaskell Setup register"
-                }
+                  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/20080911/232ab487/attachment.html 


More information about the macports-changes mailing list