[64958] trunk/dports/devel/hs-parsedate/Portfile
gwright at macports.org
gwright at macports.org
Thu Mar 18 07:22:07 PDT 2010
Revision: 64958
http://trac.macports.org/changeset/64958
Author: gwright at macports.org
Date: 2010-03-18 07:22:06 -0700 (Thu, 18 Mar 2010)
Log Message:
-----------
Use PortGroup haskell infrastructure.
Modified Paths:
--------------
trunk/dports/devel/hs-parsedate/Portfile
Modified: trunk/dports/devel/hs-parsedate/Portfile
===================================================================
--- trunk/dports/devel/hs-parsedate/Portfile 2010-03-18 14:18:45 UTC (rev 64957)
+++ trunk/dports/devel/hs-parsedate/Portfile 2010-03-18 14:22:06 UTC (rev 64958)
@@ -2,46 +2,31 @@
PortSystem 1.0
-name hs-parsedate
-set canonicalname parsedate
-version 3000.0.0
-categories devel haskell
+PortGroup haskell 1.0
+haskell.setup parsedate 3000.0.0
maintainers nomaintainer
platforms darwin
-description The parsedate library for Haskell
+description Data and time parsing for haskell's CalendarTime
long_description \
- This library provides a function for parsing dates and \
- times given a date format string.
+ This library provides a function for parsing dates and times \
+ given a date format string. This package creates CalendarTime \
+ values and is meant for use with the old-time package. New code \
+ should use the hs-platform-time package, which now includes \
+ parsing, instead.
-homepage http://www.cs.chalmers.se/~bringert/darcs/parsedate/doc/
-master_sites http://hackage.haskell.org/packages/archive/${canonicalname}/${version}
-distname ${canonicalname}-${version}
-
-checksums md5 cddd2fce4584460a91dadc3e77048bf6 \
- sha1 61e1abc896de90d7cae15f26487e6731bc525778 \
+checksums md5 cddd2fce4584460a91dadc3e77048bf6 \
+ sha1 61e1abc896de90d7cae15f26487e6731bc525778 \
rmd160 6aa581e2e7cd7cfc2ae04858b5b977408d02fa31
-depends_build port:ghc
+depends_lib port:ghc \
+ port:hs-platform-parsec
-configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
- }
+universal_variant no
-build { system "cd ${worksrcpath} && runhaskell Setup build -v"
- }
+configure.args-append -v --enable-library-profiling \
+ --with-gcc=${configure.cc}
-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/20100318/f78cce79/attachment.html>
More information about the macports-changes
mailing list