[40757] trunk/dports/devel/hs-NewBinary/Portfile
gwright at macports.org
gwright at macports.org
Tue Oct 14 00:03:44 PDT 2008
Revision: 40757
http://trac.macports.org/changeset/40757
Author: gwright at macports.org
Date: 2008-10-14 00:03:38 -0700 (Tue, 14 Oct 2008)
Log Message:
-----------
Version bump to 0.1.1 and cleanup.
Modified Paths:
--------------
trunk/dports/devel/hs-NewBinary/Portfile
Modified: trunk/dports/devel/hs-NewBinary/Portfile
===================================================================
--- trunk/dports/devel/hs-NewBinary/Portfile 2008-10-14 06:30:12 UTC (rev 40756)
+++ trunk/dports/devel/hs-NewBinary/Portfile 2008-10-14 07:03:38 UTC (rev 40757)
@@ -2,42 +2,47 @@
PortSystem 1.0
name hs-NewBinary
-set shortname NewBinary
-version 2005-12-11
-categories devel
+set canonicalname NewBinary
+version 0.1.1
+epoch 20081014
+categories devel haskell
maintainers nomaintainer
platforms darwin
description The New Binary library for Haskell.
long_description \
- A module for fast binary I/O in haskell. Features \
- bit level I/O and byte level I/O
+ An older haskell library for fast binary I/O. New projects \
+ should consider using hs-binary.
-homepage http://www.n-heptane.com/nhlab/
-master_sites ${homepage}/${shortname}
-distname ${shortname}-${version}
+set hackage http://hackage.haskell.org/packages/archive
+homepage ${hackage}/pkg-list.html
+master_sites ${hackage}/${canonicalname}/${version}
+distname ${canonicalname}-${version}
-checksums md5 615d0e4ef004c54e132ff35b37c5580a
+checksums md5 20860c26d5a6f13a2b0a4bd3da77b8c7 \
+ sha1 4035efa53938a964c698ad90793fd3926e4f4350 \
+ rmd160 a21366c16fcf186c921ef5b670e3e87f7bd51ccd
depends_build port:ghc
-worksrcdir ${shortname}
+configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
+ }
-pre-configure { system "cd ${worksrcpath} && ghc -o Setup Setup.lhs -package Cabal"
- }
+build { system "cd ${worksrcpath} && runhaskell Setup build -v"
+ }
-configure { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
- }
+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 { system "cd ${worksrcpath} && ./Setup build"
- }
-
-destroot { system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}"
+ 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 { catch {system "cd ${worksrcpath} && ./Setup unregister"}
- system "cd ${worksrcpath} && ./Setup register"
- }
+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/20081014/1950cd49/attachment.html
More information about the macports-changes
mailing list