[51208] trunk/dports/devel/hs-zlib/Portfile
gwright at macports.org
gwright at macports.org
Wed May 20 13:01:38 PDT 2009
Revision: 51208
http://trac.macports.org/changeset/51208
Author: gwright at macports.org
Date: 2009-05-20 13:01:38 -0700 (Wed, 20 May 2009)
Log Message:
-----------
Use PortGroup haskell infrastructure.
Modified Paths:
--------------
trunk/dports/devel/hs-zlib/Portfile
Modified: trunk/dports/devel/hs-zlib/Portfile
===================================================================
--- trunk/dports/devel/hs-zlib/Portfile 2009-05-20 19:53:36 UTC (rev 51207)
+++ trunk/dports/devel/hs-zlib/Portfile 2009-05-20 20:01:38 UTC (rev 51208)
@@ -2,10 +2,8 @@
PortSystem 1.0
-name hs-zlib
-set canonicalname zlib
-version 0.5.0.0
-categories devel haskell
+PortGroup haskell 1.0
+haskell.setup zlib 0.5.0.0
maintainers nomaintainer
platforms darwin
@@ -15,10 +13,6 @@
and decompression in gzip and zlib format. The library \
acts directly on ByteString values.
-homepage http://hackage.haskell.org
-master_sites ${homepage}/packages/archive/${canonicalname}/${version}
-distname ${canonicalname}-${version}
-
checksums md5 22fa6d394c42c8584b234799b923f860 \
sha1 4a93e727a408754baf6ede0ed721863eb4ea0df2 \
rmd160 0ba0769d78b83b05726b15be55b10168db7d59bb
@@ -26,23 +20,7 @@
depends_build port:ghc
depends_lib port:zlib
-configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling --with-compiler=${prefix}/bin/ghc"
- }
+configure.args-append --enable-library-profiling
-build { system "cd ${worksrcpath} && runhaskell Setup build"
- }
-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"
+build.args-append -v
- 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/20090520/262da9ff/attachment.html>
More information about the macports-changes
mailing list