[106826] trunk/dports/devel
cal at macports.org
cal at macports.org
Sat Jun 8 17:10:53 PDT 2013
Revision: 106826
https://trac.macports.org/changeset/106826
Author: cal at macports.org
Date: 2013-06-08 17:10:53 -0700 (Sat, 08 Jun 2013)
Log Message:
-----------
cpphs: rename to hs-cpphs, update to 1.16, use haskell PortGroup, rebuild against newer GHC
Modified Paths:
--------------
trunk/dports/devel/cpphs/Portfile
Added Paths:
-----------
trunk/dports/devel/hs-cpphs/
trunk/dports/devel/hs-cpphs/Portfile
Modified: trunk/dports/devel/cpphs/Portfile
===================================================================
--- trunk/dports/devel/cpphs/Portfile 2013-06-08 23:54:17 UTC (rev 106825)
+++ trunk/dports/devel/cpphs/Portfile 2013-06-09 00:10:53 UTC (rev 106826)
@@ -1,49 +1,11 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name cpphs
-version 1.3
-categories devel
-maintainers gwright
-platforms darwin
-description cpp implemented in Haskell.
-long_description \
- cpphs is a liberalised re-implementation of cpp, \
- the C pre-processor, in Haskell.
-
-homepage http://www.haskell.org/cpphs/
-master_sites http://www.cs.york.ac.uk/fp/${name}/
-
-checksums md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc
-
-depends_lib port:ghc
-
-pre-configure {
- system "ghc -o ${worksrcpath}/Setup ${worksrcpath}/Setup.hs -package Cabal"
- }
-
-configure {
- system "cd ${worksrcpath} && ${worksrcpath}/Setup configure --ghc --prefix=${prefix}"
- }
-
-build {
- system "cd ${worksrcpath} && ${worksrcpath}/Setup build -v"
- }
-
-destroot {
-
- system "cd ${worksrcpath} && ${worksrcpath}/Setup copy --copy-prefix=${destroot}${prefix}"
- system "cd ${worksrcpath} && ${worksrcpath}/Setup register --gen-script"
- system "cd ${worksrcpath} && ${worksrcpath}/Setup unregister --gen-script"
-
- 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" }
+name cpphs
+version 1.3
+license Permissive
+categories devel haskell
+replaced_by hs-cpphs
+PortGroup obsolete 1.0
Added: trunk/dports/devel/hs-cpphs/Portfile
===================================================================
--- trunk/dports/devel/hs-cpphs/Portfile (rev 0)
+++ trunk/dports/devel/hs-cpphs/Portfile 2013-06-09 00:10:53 UTC (rev 106826)
@@ -0,0 +1,27 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup haskell 1.0
+
+haskell.setup cpphs 1.16
+checksums rmd160 4b8d10b9f52e8bcbc2fa35c398fd853cce37af71 \
+ sha256 b7562ee6dd504f210a363c6bb7ea542e67f0a6ad75aca66080e66801870e69bb
+
+license LGPL
+platforms darwin
+maintainers nomaintainer
+
+description A liberalised re-implementation of cpp, the C pre-processor.
+long_description \
+ Cpphs is a re-implementation of the C pre-processor that is both more \
+ compatible with Haskell, and itself written in Haskell so that it can be \
+ distributed with compilers.
+
+pre-activate {
+ # deactivate hack added 2013-06-09
+ if {![catch {set installed [lindex [registry_active cpphs] 0]}]} {
+ # this port used to be named cpphs
+ registry_deactivate_composite cpphs "" [list ports_nodepcheck 1]
+ }
+}
Property changes on: trunk/dports/devel/hs-cpphs/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130608/0f8d4807/attachment.html>
More information about the macports-changes
mailing list