diff options
author | pawel <pawel@FreeBSD.org> | 2012-11-01 18:34:25 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2012-11-01 18:34:25 +0800 |
commit | dae6eabd2fa3f666eb39e520a714da78d0ff01eb (patch) | |
tree | 8930aa6522652e028da0b96c736c00e09f7639a9 | |
parent | 0b963b7411e680e222df3bf25e1770c5bc91b09f (diff) | |
download | freebsd-ports-gnome-dae6eabd2fa3f666eb39e520a714da78d0ff01eb.tar.gz freebsd-ports-gnome-dae6eabd2fa3f666eb39e520a714da78d0ff01eb.tar.zst freebsd-ports-gnome-dae6eabd2fa3f666eb39e520a714da78d0ff01eb.zip |
confetti -- configuration file parser generator
WWW: https://github.com/mailru/confetti
PR: ports/170336
Submitted by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
Feature safe: yes
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/confetti/Makefile | 44 | ||||
-rw-r--r-- | textproc/confetti/distinfo | 2 | ||||
-rw-r--r-- | textproc/confetti/pkg-descr | 3 | ||||
-rw-r--r-- | textproc/confetti/pkg-plist | 8 |
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 1cec6499c280..b0f783fa1467 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -76,6 +76,7 @@ SUBDIR += codespell SUBDIR += cole SUBDIR += colordiff + SUBDIR += confetti SUBDIR += confget SUBDIR += cost SUBDIR += crimson diff --git a/textproc/confetti/Makefile b/textproc/confetti/Makefile new file mode 100644 index 000000000000..e57e24e8a03c --- /dev/null +++ b/textproc/confetti/Makefile @@ -0,0 +1,44 @@ +# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com> +# $FreeBSD$ + +PORTNAME= confetti +PORTVERSION= 0.0.${DATE} +CATEGORIES= textproc +MASTER_SITES= http://fbsd.zlonet.ru/distfiles/ + +MAINTAINER= g.veniamin@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> diff --git a/textproc/confetti/distinfo b/textproc/confetti/distinfo new file mode 100644 index 000000000000..21e647187922 --- /dev/null +++ b/textproc/confetti/distinfo @@ -0,0 +1,2 @@ +SHA256 (confetti-0.0.20120801.tar.bz2) = 7bc6a4bbfb7465adf0a9af80f03dd1bd21d96244a7b6887b2e7cfb2a9dadfd3b +SIZE (confetti-0.0.20120801.tar.bz2) = 120800 diff --git a/textproc/confetti/pkg-descr b/textproc/confetti/pkg-descr new file mode 100644 index 000000000000..fe7593777159 --- /dev/null +++ b/textproc/confetti/pkg-descr @@ -0,0 +1,3 @@ +confetti -- configuration file parser generator + +WWW: https://github.com/mailru/confetti diff --git a/textproc/confetti/pkg-plist b/textproc/confetti/pkg-plist new file mode 100644 index 000000000000..597af37250fb --- /dev/null +++ b/textproc/confetti/pkg-plist @@ -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%% |