diff options
author | itetcu <itetcu@FreeBSD.org> | 2010-04-04 00:52:52 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2010-04-04 00:52:52 +0800 |
commit | 7e8e59740aa2999584311a6a4c24ea1fb2df8552 (patch) | |
tree | 36413a47755473e2ff1269608e60d4533f7a4785 | |
parent | 6efbb1a7c2ca4144ad070aea89aba7e6633bf6d3 (diff) | |
download | freebsd-ports-gnome-7e8e59740aa2999584311a6a4c24ea1fb2df8552.tar.gz freebsd-ports-gnome-7e8e59740aa2999584311a6a4c24ea1fb2df8552.tar.zst freebsd-ports-gnome-7e8e59740aa2999584311a6a4c24ea1fb2df8552.zip |
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>
-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/ |