[27701] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 12 04:00:24 PDT 2007


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

Log Message:
-----------
Rename haskell-hinstaller to hs-installer and make
sure the files get installed to ${destroot}.

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

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

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

Modified: trunk/dports/devel/hs-hinstaller/Portfile
===================================================================
--- trunk/dports/devel/haskell-hinstaller/Portfile	2007-08-11 15:52:40 UTC (rev 27659)
+++ trunk/dports/devel/hs-hinstaller/Portfile	2007-08-12 11:00:23 UTC (rev 27701)
@@ -1,28 +1,30 @@
 # $Id$
 
 PortSystem 1.0
-name                haskell-hinstaller
-version             2007.5.13
-distname            hinstaller-${version}
-description         The hinstaller library for Haskell
-long_description    This module allows you to incorporate arbitrary files into \
-                    a haskell module during compilation. The files are then \
-                    available to you through functions which allows you to \
-                    write installer-type applications which write out the \
-                    files when run. Thus this can be considered in the same \
-                    model as Java .jar files or executable zip or other \
-                    file archives.
-homepage            http://www.wellquite.org/hinstaller/
-categories          devel
-maintainers         me at thomaskeller.biz
-master_sites        http://hackage.haskell.org/packages/archive/hinstaller/${version}/
-checksums           md5 3ae4db8f48e9cf7dec9438c7689ede3a
+name		hs-hinstaller
+version		2007.5.13
+distname	hinstaller-${version}
+categories	devel
+maintainers	me at thomaskeller.biz
+description	The hinstaller library for Haskell
+long_description	\
+	This module allows you to incorporate arbitrary files into \
+	a haskell module during compilation. The files are then \
+	available to you through functions which allows you to \
+	write installer-type applications which write out the \
+	files when run. Thus this can be considered in the same \
+	model as Java .jar files or executable zip or other \
+	file archives.
 
-depends_build       port:ghc
+homepage	http://www.wellquite.org/hinstaller/
+master_sites	http://hackage.haskell.org/packages/archive/hinstaller/${version}/
+checksums	md5 3ae4db8f48e9cf7dec9438c7689ede3a
 
+depends_build	port:ghc
+
 configure {
 	cd ${worksrcpath}
-	system "runghc Setup.hs configure"
+	system "runghc Setup.hs configure --prefix=${prefix}"
 }
 
 build {
@@ -32,6 +34,19 @@
 
 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/5152a54a/attachment.html


More information about the macports-changes mailing list