svn commit: r306791 - in head/textproc: . confetti
Pawel Pekala
pawel at FreeBSD.org
Thu Nov 1 10:34:26 UTC 2012
Author: pawel
Date: Thu Nov 1 10:34:25 2012
New Revision: 306791
URL: http://svn.freebsd.org/changeset/ports/306791
Log:
confetti -- configuration file parser generator
WWW: https://github.com/mailru/confetti
PR: ports/170336
Submitted by: Gvozdikov Veniamin <g.veniamin at googlemail.com>
Feature safe: yes
Added:
head/textproc/confetti/
head/textproc/confetti/Makefile (contents, props changed)
head/textproc/confetti/distinfo (contents, props changed)
head/textproc/confetti/pkg-descr (contents, props changed)
head/textproc/confetti/pkg-plist (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Thu Nov 1 10:14:37 2012 (r306790)
+++ head/textproc/Makefile Thu Nov 1 10:34:25 2012 (r306791)
@@ -76,6 +76,7 @@
SUBDIR += codespell
SUBDIR += cole
SUBDIR += colordiff
+ SUBDIR += confetti
SUBDIR += confget
SUBDIR += cost
SUBDIR += crimson
Added: head/textproc/confetti/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/confetti/Makefile Thu Nov 1 10:34:25 2012 (r306791)
@@ -0,0 +1,44 @@
+# Created by: Gvozdikov Veniamin <g.veniamin at googlemail.com>
+# $FreeBSD$
+
+PORTNAME= confetti
+PORTVERSION= 0.0.${DATE}
+CATEGORIES= textproc
+MASTER_SITES= http://fbsd.zlonet.ru/distfiles/
+
+MAINTAINER= g.veniamin at googlemail.com
+COMMENT= Configuration file parser generator
+
+BUILD_DEPENDS= flex:${PORTSDIR}/textproc/flex
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_BISON= build
+USE_PERL5= yes
+DATE= 20120801
+MAKE_ARGS+= FLEX=${LOCALBASE}/bin/flex
+MAKE_JOBS_UNSAFE=yes
+
+OPTIONS_DEFINE= EXAMPLES
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_SUB+= EXAMPLES=""
+.else
+PLIST_SUB+= EXAMPLES="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
+ ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+post-install:
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
Added: head/textproc/confetti/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/confetti/distinfo Thu Nov 1 10:34:25 2012 (r306791)
@@ -0,0 +1,2 @@
+SHA256 (confetti-0.0.20120801.tar.bz2) = 7bc6a4bbfb7465adf0a9af80f03dd1bd21d96244a7b6887b2e7cfb2a9dadfd3b
+SIZE (confetti-0.0.20120801.tar.bz2) = 120800
Added: head/textproc/confetti/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/confetti/pkg-descr Thu Nov 1 10:34:25 2012 (r306791)
@@ -0,0 +1,3 @@
+confetti -- configuration file parser generator
+
+WWW: https://github.com/mailru/confetti
Added: head/textproc/confetti/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/confetti/pkg-plist Thu Nov 1 10:34:25 2012 (r306791)
@@ -0,0 +1,8 @@
+bin/confetti
+%%EXAMPLES%%%%EXAMPLESDIR%%/example/example.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/example/Makefile
+%%EXAMPLES%%%%EXAMPLESDIR%%/example/my_my_product.cfg
+%%EXAMPLES%%%%EXAMPLESDIR%%/example/example_buffer.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/example/example.cfgtmpl
+%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/example
+%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%
More information about the svn-ports-head
mailing list