[65186] trunk/dports/devel
nox at macports.org
nox at macports.org
Tue Mar 23 05:40:38 PDT 2010
Revision: 65186
http://trac.macports.org/changeset/65186
Author: nox at macports.org
Date: 2010-03-23 05:40:36 -0700 (Tue, 23 Mar 2010)
Log Message:
-----------
Create new port hs-HOC
HOC is a Haskell to Objective-C binding. In a nutshell, it enables you
to use Objective-C objects and frameworks from Haskell, and also enables
you to write Objective-C objects in Haskell.
Added Paths:
-----------
trunk/dports/devel/hs-HOC/
trunk/dports/devel/hs-HOC/Portfile
trunk/dports/devel/hs-HOC/files/
trunk/dports/devel/hs-HOC/files/patch-InterfaceGenerator2-Parser.hs.diff
Added: trunk/dports/devel/hs-HOC/Portfile
===================================================================
--- trunk/dports/devel/hs-HOC/Portfile (rev 0)
+++ trunk/dports/devel/hs-HOC/Portfile 2010-03-23 12:40:36 UTC (rev 65186)
@@ -0,0 +1,51 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup haskell 1.0
+
+set rev 413
+haskell.setup HOC 0.7-r${rev}
+name hs-HOC
+license BSD-4
+platforms darwin
+categories devel
+maintainers nox openmaintainer
+description A Haskell to Objective-C binding
+
+long_description \
+ HOC is a Haskell to Objective-C binding. In a nutshell, it enables you to \
+ use Objective-C objects and frameworks from Haskell, and also enables you \
+ to write Objective-C objects in Haskell.
+
+homepage http://code.google.com/p/hoc/
+fetch.type svn
+svn.url http://hoc.googlecode.com/svn/trunk/hoc
+svn.revision ${rev}
+
+worksrcdir hoc
+
+patchfiles patch-InterfaceGenerator2-Parser.hs.diff
+
+pre-configure {
+ reinplace s:/usr/include/ffi:[exec pkg-config libffi --variable includedir]: \
+ ${worksrcpath}/HOC.cabal
+ reinplace "s:gcc -m32:${configure.cc} ${configure.cc_archflags}:" \
+ ${worksrcpath}/Setup.hs
+}
+
+depends_build-append \
+ port:hs-binary \
+ port:hs-parsec \
+ port:hs-platform-fgl \
+ port:libffi \
+ port:pkgconfig
+
+depends_lib-append \
+ port:gmp
+
+configure.args-append \
+ --docdir=${prefix}/share/doc/${name} \
+ --extra-lib-dirs=${prefix}/lib \
+ --flags="BinaryInterfaces ObjCv2"
+
+universal_variant no
Property changes on: trunk/dports/devel/hs-HOC/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/hs-HOC/files/patch-InterfaceGenerator2-Parser.hs.diff
===================================================================
--- trunk/dports/devel/hs-HOC/files/patch-InterfaceGenerator2-Parser.hs.diff (rev 0)
+++ trunk/dports/devel/hs-HOC/files/patch-InterfaceGenerator2-Parser.hs.diff 2010-03-23 12:40:36 UTC (rev 65186)
@@ -0,0 +1,21 @@
+--- InterfaceGenerator2/Parser.hs.orig 2010-03-23 02:10:18.000000000 +0100
++++ InterfaceGenerator2/Parser.hs 2010-03-23 02:21:31.000000000 +0100
+@@ -125,6 +125,7 @@
+ do
+ val <- integer objc
+ optional (reserved objc "U" <|> reserved objc "L"
++ <|> reserved objc "ULL"
+ <|> reserved objc "UL") -- ### TODO: no space allowed before 'U'
+ return val
+
+@@ -402,6 +403,10 @@
+ parens objc (skipParens)
+ return ()
+ <|>
++ do reserved objc "NS_FORMAT_FUNCTION" <|> reserved objc "__OSX_AVAILABLE_STARTING"
++ skipParens
++ return ()
++ <|>
+ do x <- identifier objc
+ guard $ all (\c -> isUpper c || isDigit c || c == '_') x
+ -- guard (any (`isPrefixOf` x) ["AVAILABLE_MAC_", "DEPRECATED_IN_"])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100323/3db652df/attachment-0001.html>
More information about the macports-changes
mailing list