[46280] trunk/dports/lang
ryandesign at macports.org
ryandesign at macports.org
Sun Feb 1 18:45:08 PST 2009
Revision: 46280
http://trac.macports.org/changeset/46280
Author: ryandesign at macports.org
Date: 2009-02-01 18:45:07 -0800 (Sun, 01 Feb 2009)
Log Message:
-----------
pure-ffi: new port, version 0.3; see #18305
Added Paths:
-----------
trunk/dports/lang/pure-ffi/
trunk/dports/lang/pure-ffi/Portfile
trunk/dports/lang/pure-ffi/files/
trunk/dports/lang/pure-ffi/files/patch-Makefile.diff
Added: trunk/dports/lang/pure-ffi/Portfile
===================================================================
--- trunk/dports/lang/pure-ffi/Portfile (rev 0)
+++ trunk/dports/lang/pure-ffi/Portfile 2009-02-02 02:45:07 UTC (rev 46280)
@@ -0,0 +1,60 @@
+# $Id$
+
+PortSystem 1.0
+
+name pure-ffi
+version 0.3
+categories lang
+platforms darwin
+maintainers ryandesign
+use_parallel_build yes
+homepage http://pure-lang.googlecode.com/
+master_sites ${homepage}files/
+
+description an interface to libffi which enables you to \
+ call C functions from Pure and vice versa
+
+long_description ${name} provides ${description}. It goes \
+ beyond Pure's built-in C interface in that \
+ it also handles C structs and makes Pure \
+ functions callable from C. Moreover, \
+ depending on the libffi implementation, it \
+ may also be possible to call foreign \
+ languages other than C.
+
+checksums md5 8030fbff0c2fff58861f05850d2a0911 \
+ sha1 62d8f8e85aa8925fb2b41a9df9e44b1bae39d3ab \
+ rmd160 d607e91265866e908364143634a30a037a5c4219
+
+depends_lib-append path:lib/libpure.dylib:pure \
+ port:libffi
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+pre-build {
+ build.args-append CC=${configure.cc} \
+ CFLAGS="${configure.cflags}" \
+ CPPFLAGS="${configure.cppflags}" \
+ LDFLAGS="${configure.ldflags}"
+}
+
+post-destroot {
+ xinstall -d \
+ ${destroot}${prefix}/share/doc/${name} \
+ ${destroot}${prefix}/share/examples
+ xinstall -m 644 -W ${worksrcpath} \
+ COPYING \
+ README \
+ ${destroot}${prefix}/share/doc/${name}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+}
+
+platform darwin {
+ configure.cflags-append -fno-common
+}
+
+livecheck.check regex
+livecheck.url http://code.google.com/p/pure-lang/downloads/list
+livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Property changes on: trunk/dports/lang/pure-ffi/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/lang/pure-ffi/files/patch-Makefile.diff
===================================================================
--- trunk/dports/lang/pure-ffi/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/lang/pure-ffi/files/patch-Makefile.diff 2009-02-02 02:45:07 UTC (rev 46280)
@@ -0,0 +1,20 @@
+--- Makefile.orig 2009-01-29 17:33:22.000000000 -0600
++++ Makefile 2009-02-01 20:39:26.000000000 -0600
+@@ -54,14 +54,14 @@
+ all: ffi$(DLL)
+
+ ffi$(DLL): ffi.c
+- gcc $(shared) -o $@ $< $(FLAGS) -lffi -lpure -lgmp $(LIBS)
++ $(CC) $(shared) -o $@ $< $(FLAGS) -lffi -lpure -lgmp $(LIBS)
+
+ clean:
+ rm -f *$(DLL) *~ *.a *.o
+
+ install:
+- test -d "$(DESTDIR)$(libdir)/pure" || mkdir -p "$(DESTDIR)$(libdir)/pure"
+- cp ffi.pure ffi$(DLL) "$(DESTDIR)$(libdir)/pure"
++ test -d "$(DESTDIR)`readlink $(libdir)/pure`" || mkdir -p "$(DESTDIR)`readlink $(libdir)/pure`"
++ cp ffi.pure ffi$(DLL) "$(DESTDIR)`readlink $(libdir)/pure`"
+
+ uninstall:
+ rm -f "$(DESTDIR)$(libdir)/pure/ffi.pure" "$(DESTDIR)$(libdir)/pure/ffi$(DLL)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090201/ee46cacf/attachment-0001.html>
More information about the macports-changes
mailing list