From lichray@gmail.com  Tue Mar 22 21:02:02 2011
Return-Path: <lichray@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 20ABF106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2011 21:02:02 +0000 (UTC)
	(envelope-from lichray@gmail.com)
Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182])
	by mx1.freebsd.org (Postfix) with ESMTP id DCDC68FC1A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2011 21:02:01 +0000 (UTC)
Received: by iyj12 with SMTP id 12so9433271iyj.13
        for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2011 14:02:01 -0700 (PDT)
Received: by 10.42.139.131 with SMTP id g3mr9513877icu.474.1300827715203;
        Tue, 22 Mar 2011 14:01:55 -0700 (PDT)
Received: from compaq.yuetime (c-98-228-191-105.hsd1.il.comcast.net [98.228.191.105])
        by mx.google.com with ESMTPS id i2sm4826486icv.15.2011.03.22.14.01.52
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 22 Mar 2011 14:01:54 -0700 (PDT)
Received: by compaq.yuetime (sSMTP sendmail emulation); Tue, 22 Mar 2011 16:01:51 -0500
Message-Id: <4d890e42.42922a0a.27c0.57c1@mx.google.com>
Date: Tue, 22 Mar 2011 16:01:51 -0500
From: Zhihao Yuan <lichray@gmail.com>
Reply-To: Zhihao Yuan <lichray@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: devel/pure-gen - A C interface generator for the Pure language
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:    wen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 22 21:10:00 UTC 2011
>Closed-Date:    Tue Apr 12 02:28:17 UTC 2011
>Last-Modified:  Tue Apr 12 02:30:16 UTC 2011
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->wen 
Responsible-Changed-By: wen 
Responsible-Changed-When: Wed Mar 23 00:30:49 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155872 
State-Changed-From-To: open->closed 
State-Changed-By: wen 
State-Changed-When: Tue Apr 12 02:28:16 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155872 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/155872: commit references a PR
Date: Tue, 12 Apr 2011 02:24:52 +0000 (UTC)

 wen         2011-04-12 02:24:38 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel                Makefile 
   Added files:
     devel/pure-gen       Makefile distinfo pkg-descr pkg-plist 
   Log:
   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>
   
   Revision  Changes    Path
   1.4300    +1 -0      ports/devel/Makefile
   1.1       +37 -0     ports/devel/pure-gen/Makefile (new)
   1.1       +2 -0      ports/devel/pure-gen/distinfo (new)
   1.1       +10 -0     ports/devel/pure-gen/pkg-descr (new)
   1.1       +3 -0      ports/devel/pure-gen/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
