[39914] trunk/dports/devel/hs-Crypto/Portfile
gwright at macports.org
gwright at macports.org
Thu Sep 11 10:45:53 PDT 2008
Revision: 39914
http://trac.macports.org/changeset/39914
Author: gwright at macports.org
Date: 2008-09-11 10:45:53 -0700 (Thu, 11 Sep 2008)
Log Message:
-----------
Various fixes and a version bump.
Modified Paths:
--------------
trunk/dports/devel/hs-Crypto/Portfile
Modified: trunk/dports/devel/hs-Crypto/Portfile
===================================================================
--- trunk/dports/devel/hs-Crypto/Portfile 2008-09-11 17:34:53 UTC (rev 39913)
+++ trunk/dports/devel/hs-Crypto/Portfile 2008-09-11 17:45:53 UTC (rev 39914)
@@ -1,10 +1,11 @@
# $Id$
PortSystem 1.0
+
name hs-Crypto
-set shortname Crypto
-version 3.0.3
-categories devel
+set canonicalname Crypto
+version 4.1.0
+categories devel haskell
maintainers nomaintainer
platforms darwin
@@ -17,29 +18,38 @@
interwork with other cryptographic implementations \
and examples showing how to handle other ASN.1 definitions.
-homepage http://www.haskell.org/crypto/
-master_sites ${homepage}/downloads/
-distname ${shortname}-${version}
+homepage http://hackage.haskell.org/
+master_sites ${homepage}/packages/archive/${canonicalname}/${version}/
+distname ${canonicalname}-${version}
-checksums md5 1171f41ede25fe501c10afd116dc7e68
+checksums md5 d19377c8ad518d2aff338a89507809a7 \
+ sha1 5ba9c270fe445a8011dd89052d28754a06f9454a \
+ rmd160 d7f4ccc8e7071a591ccb18da765bd037cd4b28b8
depends_build port:ghc
-pre-configure { system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal"
+configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling"
}
-configure { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
+build { system "cd ${worksrcpath} && runhaskell Setup build -v"
}
-build { system "cd ${worksrcpath} && ./Setup build"
- }
+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"
-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/20080911/4ef32943/attachment-0001.html
More information about the macports-changes
mailing list