diff options
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/runawk/Makefile | 48 | ||||
-rw-r--r-- | lang/runawk/distinfo | 3 | ||||
-rw-r--r-- | lang/runawk/pkg-descr | 4 |
4 files changed, 56 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index 047d7061bf31..90659043e659 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -296,6 +296,7 @@ SUBDIR += ruby-usersguide SUBDIR += ruby18 SUBDIR += ruby19 + SUBDIR += runawk SUBDIR += s9fes SUBDIR += sather-specification SUBDIR += sather-tutorial 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/ |