[37647] trunk/dports/devel/hmake/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jun 16 23:05:28 PDT 2008


Revision: 37647
          http://trac.macosforge.org/projects/macports/changeset/37647
Author:   ryandesign at macports.org
Date:     2008-06-16 23:05:28 -0700 (Mon, 16 Jun 2008)

Log Message:
-----------
hmake:

 * update to 3.14 to fix issues build with ghc 6.8.x
 * add sha1 and rmd160 checksums
 * add forgotten dependencies on gmp and ncurses
 * use port:-style dependencies not deprecated lib:-style
 * mark ghc and nhc98 variants as conflicting with one another, because they do
 * make sure exactly one of ghc or nhc98 is always selected, because we need to compile with something
 * add variant descriptions
 * fix making ghc the default (it did not do so before)
 * do patching in the patch phase not in the configure phase

Modified Paths:
--------------
    trunk/dports/devel/hmake/Portfile

Modified: trunk/dports/devel/hmake/Portfile
===================================================================
--- trunk/dports/devel/hmake/Portfile	2008-06-17 04:15:00 UTC (rev 37646)
+++ trunk/dports/devel/hmake/Portfile	2008-06-17 06:05:28 UTC (rev 37647)
@@ -3,7 +3,7 @@
 PortSystem              1.0
 
 name                    hmake
-version                 3.13
+version                 3.14
 categories              devel
 maintainers             nomaintainer
 platforms               darwin
@@ -13,23 +13,30 @@
 homepage                http://www.haskell.org/hmake/
 master_sites            ${homepage}
 
-checksums               md5 c87f79f1846f6b5eccbe5f0a00928b8b
+checksums               md5 7fb58d8e5c257869200d87cff19d7b15 \
+                        sha1 c88e61a86053c2e2f600e534d1c323131b925e12 \
+                        rmd160 b9f88e2ee4ed4bb6cc2df3d644864eb5e60c4a60
 
-depends_lib             lib:libreadline.5:readline
+depends_lib             port:gmp \
+                        port:ncurses \
+                        port:readline
 
-default_variants        ghc
-
 configure.args          --mandir=${prefix}/share/man/man1
 
-variant ghc {
-    depends_build bin:ghc:ghc
+variant ghc conflicts nhc98 description {Build with ghc (default)} {
+    depends_build port:ghc
+    configure.args-append --buildwith=ghc
 }
 
-variant nhc98 {
-    depends_build bin:nhc98:nhc98
+variant nhc98 conflicts ghc description {Build with nhc98} {
+    depends_build port:nhc98
     configure.args-append --buildwith=nhc98
 }
 
-pre-configure {
+if {![variant_isset nhc98]} {
+    default_variants +ghc
+}
+
+patch {
     reinplace "s|-lreadline|-I${prefix}/include -L${prefix}/lib -lreadline|g" ${worksrcpath}/configure
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080616/f1db1d1e/attachment-0001.htm 


More information about the macports-changes mailing list