ports/179396: [PATCH] devel/pure-gen: New Uses pure:ffi, add license, remove pkg-plist
nemysis
nemysis at gmx.ch
Fri Jun 7 08:50:01 UTC 2013
>Number: 179396
>Category: ports
>Synopsis: [PATCH] devel/pure-gen: New Uses pure:ffi, add license, remove pkg-plist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 07 08:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:
- Bump portrevision
- Shorten header
- Trim comment
- Add license
- New Uses pure:ffi
- Use PLIST_FILES and PLIST_DIRS instead of pkg-plist
- Add docs and examples
- Trim pkg-descr
Removed file(s):
- pkg-plist
Port maintainer (lichray at gmail.com) is cc'd.
Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20130607020600-37508/
>Fix:
--- pure-gen-0.15_1.patch begins here ---
diff -ruN /usr/ports/devel/pure-gen/Makefile ./Makefile
--- /usr/ports/devel/pure-gen/Makefile 2013-06-02 18:59:49.000000000 +0200
+++ ./Makefile 2013-06-07 10:32:24.000000000 +0200
@@ -1,26 +1,48 @@
-# New ports collection makefile for: pure-sql3
-# Date created: 2011-03-18
-# Whom: Zhihao Yuan <lichray at gmail.com>
-#
+# Created by: Zhihao Yuan <lichray at gmail.com>
# $FreeBSD: head/devel/pure-gen/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
PORTNAME= pure-gen
PORTVERSION= 0.15
+PORTREVISION= 1
CATEGORIES= devel
+#MASTER_SITES= https://cdn.bitbucket.org/purelang/pure-lang/downloads/
+MASTER_SITES= https://pure-lang.googlecode.com/files/
+DIST_SUBDIR= pure
MAINTAINER= lichray at gmail.com
-COMMENT= A C interface generator for the Pure language
+COMMENT= C interface generator for the Pure language
+
+LICENSE= BSD
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
hs-language-c>=0.3.2:${PORTSDIR}/devel/hs-language-c
-USE_PURE= yes
+CC= gcc
+
+USES= pure:ffi
+USE_GCC= 4.6+
+
+MAN1= ${PORTNAME}.1
+
+PLIST_FILES= bin/${PORTNAME} \
+ lib/${PORTNAME}/dump-ast
+PLIST_DIRS= lib/${PORTNAME}
+
+PORTDOCS= README README.dump-ast
+
+PORTEXAMPLES= *
+
+.include <bsd.port.options.mk>
-MAN1= pure-gen.1
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
-CC= gcc
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${EXAMPLESDIR}
+ @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/devel/pure-gen/pkg-descr ./pkg-descr
--- /usr/ports/devel/pure-gen/pkg-descr 2013-06-02 18:59:49.000000000 +0200
+++ ./pkg-descr 2013-04-05 01:25:59.000000000 +0200
@@ -7,4 +7,4 @@
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
+WWW: http://docs.pure-lang.googlecode.com/hg/pure-gen.html
diff -ruN /usr/ports/devel/pure-gen/pkg-plist ./pkg-plist
--- /usr/ports/devel/pure-gen/pkg-plist 2013-06-02 18:59:49.000000000 +0200
+++ ./pkg-plist 1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-bin/pure-gen
-lib/pure-gen/dump-ast
- at dirrm lib/pure-gen
--- pure-gen-0.15_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list