diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2010-04-03 16:52:52 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2010-04-03 16:52:52 +0000 |
commit | cff5eb4fae89bb8472c42e5d58dd1010ab383d51 (patch) | |
tree | b84d7551105002711290827901e3a95a5c0be8dc /lang/runawk | |
parent | - Fix PLIST (diff) |
runawk is a small wrapper for AWK that impements a modules
system and helps one to write the standalone AWK programs.
WWW: http://runawk.sourceforge.net/
PR: ports/145126
Submitted by: Sahil Tandon <sahil at tandon.net>
Notes
Notes:
svn path=/head/; revision=252135
Diffstat (limited to 'lang/runawk')
-rw-r--r-- | lang/runawk/Makefile | 48 | ||||
-rw-r--r-- | lang/runawk/distinfo | 3 | ||||
-rw-r--r-- | lang/runawk/pkg-descr | 4 |
3 files changed, 55 insertions, 0 deletions
diff --git a/lang/runawk/Makefile b/lang/runawk/Makefile new file mode 100644 index 000000000000..f701b1feb1c2 --- /dev/null +++ b/lang/runawk/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: runawk +# Date created: 28 March 2010 +# Whom: Sahil Tandon <sahil@tandon.net> +# +# $FreeBSD$ +# + +PORTNAME= runawk +PORTVERSION= 0.21.0 +CATEGORIES= lang +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} + +MAINTAINER= sahil@tandon.net +COMMENT= Wrapper for AWK interpreter that implements a modules system + +MAKE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" + +MAN1= ${PORTNAME}.1 +MANCOMPRESSED= yes + +PLIST_FILES= bin/${PORTNAME} + +PORTDOCS= ChangeLog NEWS README TODO +PORTEXAMPLES= * + +.include <bsd.port.pre.mk> + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + @${MKDIR} ${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/modules/* ${DATADIR} + @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.gz ${MANPREFIX}/man/man1 + +post-install: +.if !defined(NOPORTDOCS) + @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR} + @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.endif + @(cd ${WRKSRC}/modules; ${FIND} -s *) \ + | ${SED} -ne 's,^,${DATADIR:S,^${PREFIX}/,,}/,p' >> ${TMPPLIST} + @${ECHO_CMD} '@dirrm ${DATADIR:S|${PREFIX}/||}' >> ${TMPPLIST} + +.include <bsd.port.post.mk> diff --git a/lang/runawk/distinfo b/lang/runawk/distinfo new file mode 100644 index 000000000000..51b83e137944 --- /dev/null +++ b/lang/runawk/distinfo @@ -0,0 +1,3 @@ +MD5 (runawk-0.21.0.tar.gz) = 31656c0203b72b13270119b0b1648a6a +SHA256 (runawk-0.21.0.tar.gz) = adcbd85df9d3c7fced563a07acb53517195cb7da45a2ee828cb7bd41956090b9 +SIZE (runawk-0.21.0.tar.gz) = 58022 diff --git a/lang/runawk/pkg-descr b/lang/runawk/pkg-descr new file mode 100644 index 000000000000..e598bba64f3a --- /dev/null +++ b/lang/runawk/pkg-descr @@ -0,0 +1,4 @@ +runawk is a small wrapper for AWK that impements a modules +system and helps one to write the standalone AWK programs. + +WWW: http://runawk.sourceforge.net/ |