Date: Tue, 22 Mar 2011 16:01:51 -0500 From: Zhihao Yuan <lichray@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/155872: New port: devel/pure-gen - A C interface generator for the Pure language Message-ID: <4d890e42.42922a0a.27c0.57c1@mx.google.com> Resent-Message-ID: <201103222110.p2MLA0nW090236@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155872 >Category: ports >Synopsis: New port: devel/pure-gen - A C interface generator for the Pure language >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 22 21:10:00 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: Northern Illinois University >Environment: System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 >Description: pure-gen is a C interface generator for the Pure language. It can be used to generated the Pure bindings to C libs, like pure-gtk. Check here for details: https://code.google.com/p/pure-lang/wiki/Addons#pure-gen >How-To-Repeat: >Fix: Note that this port requires a Haskell module, and my method to specify the dependence may not be good enough. --- pure-gen.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pure-gen # pure-gen/pkg-plist # pure-gen/pkg-descr # pure-gen/Makefile # pure-gen/distinfo # echo c - pure-gen mkdir -p pure-gen > /dev/null 2>&1 echo x - pure-gen/pkg-plist sed 's/^X//' >pure-gen/pkg-plist << '66036d23bd52b494cdb46d9d3d5149c4' Xbin/pure-gen Xlib/pure-gen/dump-ast X@dirrm lib/pure-gen 66036d23bd52b494cdb46d9d3d5149c4 echo x - pure-gen/pkg-descr sed 's/^X//' >pure-gen/pkg-descr << '799dddbb36e9e9730f0b8980390c8a97' Xpure-gen is a C interface generator for the Pure language. It takes a C Xheader file as input and generates a corresponding Pure module with the Xconstant definitions and extern declarations needed to use the C module Xfrom Pure. pure-gen can also generate FFI interfaces rather than externs X(using the pure-ffi module, see below), and it can optionally create a C Xwrapper module which allows you to create interfaces to pretty much any Xcode which can be called via C. Interfaces to C++ can be made using SWIG's Xnew C language module which can wrap arbitrary C++ libraries in C. X XWWW: http://docs.pure-lang.googlecode.com/hg/pure-gen.html 799dddbb36e9e9730f0b8980390c8a97 echo x - pure-gen/Makefile sed 's/^X//' >pure-gen/Makefile << 'c5f1923ff67e899533334b852471c268' X# New ports collection makefile for: pure-sql3 X# Date created: 2011-03-18 X# Whom: Zhihao Yuan <lichray@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= pure-gen XPORTVERSION= 0.10 XCATEGORIES= devel XMASTER_SITES= http://pure-lang.googlecode.com/files/ X XMAINTAINER= lichray@gmail.com XCOMMENT= A C interface generator for the Pure language X XBUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ X ${LOCALBASE}/lib/language-c-0.3.2/:${PORTSDIR}/devel/hs-language-c XLIB_DEPENDS+= pure.6:${PORTSDIR}/lang/pure X XMAN1= pure-gen.1 XLICENSE_FILE= ${WRKSRC}/COPYING X XUSE_GMAKE= yes X XMAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}" mandir=${PREFIX}/man X XPORTEXAMPLES= * X X.include <bsd.port.pre.mk> X Xpost-install: X.if !defined(NOPORTEXAMPLES) X @${MKDIR} ${EXAMPLESDIR} X (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) X.endif X X.include <bsd.port.post.mk> c5f1923ff67e899533334b852471c268 echo x - pure-gen/distinfo sed 's/^X//' >pure-gen/distinfo << '688a883d7628579ed5bad59a05173bb0' XSHA256 (pure-gen-0.10.tar.gz) = 4434eeef004b1d099f39c9d565cd5fc0e31955a6e7e785a5fc2af292fcc11473 XSIZE (pure-gen-0.10.tar.gz) = 52509 688a883d7628579ed5bad59a05173bb0 exit --- pure-gen.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d890e42.42922a0a.27c0.57c1>