From 7e8e59740aa2999584311a6a4c24ea1fb2df8552 Mon Sep 17 00:00:00 2001 From: itetcu Date: Sat, 3 Apr 2010 16:52:52 +0000 Subject: 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 --- lang/Makefile | 1 + lang/runawk/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ lang/runawk/distinfo | 3 +++ lang/runawk/pkg-descr | 4 ++++ 4 files changed, 56 insertions(+) create mode 100644 lang/runawk/Makefile create mode 100644 lang/runawk/distinfo create mode 100644 lang/runawk/pkg-descr 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 +# +# $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 + +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 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/ -- cgit