[104310] trunk/dports/devel/hs-alex/Portfile

sean at macports.org sean at macports.org
Sat Mar 23 09:40:16 PDT 2013


Revision: 104310
          https://trac.macports.org/changeset/104310
Author:   sean at macports.org
Date:     2013-03-23 09:40:16 -0700 (Sat, 23 Mar 2013)
Log Message:
-----------
hs-alex: update to 3.0.5, use haskell port group, and add missing dep on QuickCheck

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

Modified: trunk/dports/devel/hs-alex/Portfile
===================================================================
--- trunk/dports/devel/hs-alex/Portfile	2013-03-23 16:40:07 UTC (rev 104309)
+++ trunk/dports/devel/hs-alex/Portfile	2013-03-23 16:40:16 UTC (rev 104310)
@@ -2,39 +2,25 @@
 # $Id$
 
 PortSystem          1.0
-name                hs-alex
-set canonicalname   alex
-version             2.3.3
+PortGroup           haskell 1.0
+
+haskell.setup       alex 3.0.5
 categories          devel haskell
 maintainers         gwright openmaintainer
 platforms           darwin
+
 description         A Lexical Analyzer Generator for Haskell
 long_description    Alex is a tool for generating lexical analysers \
                     in Haskell, given a description of the tokens to be \
                     recognised in the form of regular expressions. \
                     It is similar to the tools lex or flex for C/C++.
 
-homepage            http://www.haskell.org/${canonicalname}/
-master_sites        http://hackage.haskell.org/packages/archive/${canonicalname}/${version}
-distname            ${canonicalname}-${version}
+checksums           rmd160  3f543c6af966f6200f84f408022d62beaefb875f \
+                    sha256  c3326417a0538e355e5ad1871ab931b9c8145391e8b2ff79668eb643d9b99659
 
-checksums           md5     bc5d90c932470ee8a64e6cda162ca05e \
-                    sha1    6b70d5a42559d654993e9b4218c7ac68aa1335ec \
-                    rmd160  c703459cb39731592f0a6e8d6fe887111a6bd611
+depends_lib-append  port:hs-QuickCheck
 
-depends_build       port:ghc
-
-configure {
-    system "cd ${worksrcpath} && runhaskell Setup configure -v --ghc --with-gcc=${configure.cc} --prefix=${prefix} --program-suffix=\"-${version}\""
+pre-destroot {
+    touch ${worksrcpath}/register.sh
+    touch ${worksrcpath}/unregister.sh
 }
-
-build {
-    system "cd ${worksrcpath} && runhaskell Setup build -v"
-}
-
-destroot {
-    system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
-}
-
-livecheck.type      regex
-livecheck.regex     "version (.+) released"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130323/a250ed35/attachment.html>


More information about the macports-changes mailing list