[64957] trunk/dports/devel/hs-NewBinary/Portfile
gwright at macports.org
gwright at macports.org
Thu Mar 18 07:18:45 PDT 2010
Revision: 64957
http://trac.macports.org/changeset/64957
Author: gwright at macports.org
Date: 2010-03-18 07:18:45 -0700 (Thu, 18 Mar 2010)
Log Message:
-----------
Use PortGroup haskell infrastructure.
Modified Paths:
--------------
trunk/dports/devel/hs-NewBinary/Portfile
Modified: trunk/dports/devel/hs-NewBinary/Portfile
===================================================================
--- trunk/dports/devel/hs-NewBinary/Portfile 2010-03-18 14:15:54 UTC (rev 64956)
+++ trunk/dports/devel/hs-NewBinary/Portfile 2010-03-18 14:18:45 UTC (rev 64957)
@@ -2,48 +2,29 @@
PortSystem 1.0
-name hs-NewBinary
-set canonicalname NewBinary
-epoch 20081014
-version 0.1.1
-categories devel haskell
+PortGroup haskell 1.0
+haskell.setup NewBinary 0.2.1
maintainers nomaintainer
platforms darwin
-description The New Binary library for Haskell.
+description A binary I/O library for haskell
long_description \
- An older haskell library for fast binary I/O. New projects \
- should consider using hs-binary.
+ An older binary serialization library used by a number of \
+ haskell projects. For new projects consider an alternative \
+ such hs-binary.
-set hackage http://hackage.haskell.org/packages/archive
-homepage ${hackage}/pkg-list.html
-master_sites ${hackage}/${canonicalname}/${version}
-distname ${canonicalname}-${version}
+checksums md5 2a33134b9fc1a2cb9a6651f5b44fb964 \
+ sha1 5933bc1fa9c8aa808a08b4f7c04343aeabdff1eb \
+ rmd160 9759812bb309083f05fac9b1472572cbecd72f78
-checksums md5 20860c26d5a6f13a2b0a4bd3da77b8c7 \
- sha1 4035efa53938a964c698ad90793fd3926e4f4350 \
- rmd160 a21366c16fcf186c921ef5b670e3e87f7bd51ccd
+depends_lib port:ghc
-depends_build port:ghc
+universal_variant no
-configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
- }
+configure.args-append -v --enable-library-profiling \
+ --with-gcc=${configure.cc}
-build { system "cd ${worksrcpath} && runhaskell Setup build -v"
- }
+build.args-append -v
-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"
+livecheck.type none
- 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/f294ad96/attachment.html>
More information about the macports-changes
mailing list