pure-gen is a C interface generator for the Pure language. It takes a C

header file as input and generates a corresponding Pure module with the
constant definitions and extern declarations needed to use the C module
from Pure. pure-gen can also generate FFI interfaces rather than externs
(using the pure-ffi module, see below), and it can optionally create a C
wrapper module which allows you to create interfaces to pretty much any
code which can be called via C. Interfaces to C++ can be made using SWIG's
new C language module which can wrap arbitrary C++ libraries in C.

WWW:    http://docs.pure-lang.googlecode.com/hg/pure-gen.html

PR:		ports/155872
Submitted by:	Zhihao Yuan <lichray@gmail.com>
This commit is contained in:
Wen Heping 2011-04-12 02:24:37 +00:00
parent f587378eef
commit dc5b948753
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272551
5 changed files with 53 additions and 0 deletions

View file

@ -2769,6 +2769,7 @@
SUBDIR += pty
SUBDIR += ptypes
SUBDIR += publib
SUBDIR += pure-gen
SUBDIR += pushmi
SUBDIR += pwlib
SUBDIR += py-AddOns

37
devel/pure-gen/Makefile Normal file
View file

@ -0,0 +1,37 @@
# New ports collection makefile for: pure-sql3
# Date created: 2011-03-18
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-gen
PORTVERSION= 0.10
CATEGORIES= devel
MASTER_SITES= http://pure-lang.googlecode.com/files/
MAINTAINER= lichray@gmail.com
COMMENT= A C interface generator for the Pure language
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
${LOCALBASE}/lib/language-c-0.3.2/:${PORTSDIR}/devel/hs-language-c
LIB_DEPENDS= pure.7:${PORTSDIR}/lang/pure
MAN1= pure-gen.1
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GMAKE= yes
MAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}" mandir=${PREFIX}/man
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>

2
devel/pure-gen/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (pure-gen-0.10.tar.gz) = 4434eeef004b1d099f39c9d565cd5fc0e31955a6e7e785a5fc2af292fcc11473
SIZE (pure-gen-0.10.tar.gz) = 52509

10
devel/pure-gen/pkg-descr Normal file
View file

@ -0,0 +1,10 @@
pure-gen is a C interface generator for the Pure language. It takes a C
header file as input and generates a corresponding Pure module with the
constant definitions and extern declarations needed to use the C module
from Pure. pure-gen can also generate FFI interfaces rather than externs
(using the pure-ffi module, see below), and it can optionally create a C
wrapper module which allows you to create interfaces to pretty much any
code which can be called via C. Interfaces to C++ can be made using SWIG's
new C language module which can wrap arbitrary C++ libraries in C.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-gen.html

3
devel/pure-gen/pkg-plist Normal file
View file

@ -0,0 +1,3 @@
bin/pure-gen
lib/pure-gen/dump-ast
@dirrm lib/pure-gen