aboutsummaryrefslogtreecommitdiffstats
path: root/lang/runawk
diff options
context:
space:
mode:
authorsahil <sahil@FreeBSD.org>2010-10-25 11:16:22 +0800
committersahil <sahil@FreeBSD.org>2010-10-25 11:16:22 +0800
commit98942f4f367d6404cbfc8d78a43676b60e222b4f (patch)
tree52f4aa6c8196d1696d58756c88f46b73a720b90e /lang/runawk
parentfa78865ede7269edbd316e7317498afa7f5bd3ba (diff)
downloadfreebsd-ports-gnome-98942f4f367d6404cbfc8d78a43676b60e222b4f.tar.gz
freebsd-ports-gnome-98942f4f367d6404cbfc8d78a43676b60e222b4f.tar.zst
freebsd-ports-gnome-98942f4f367d6404cbfc8d78a43676b60e222b4f.zip
- Update to 1.2.0
- Define LICENSE - Simplify do-install target
Diffstat (limited to 'lang/runawk')
-rw-r--r--lang/runawk/Makefile23
-rw-r--r--lang/runawk/distinfo6
2 files changed, 16 insertions, 13 deletions
diff --git a/lang/runawk/Makefile b/lang/runawk/Makefile
index 82f3465410ae..04137a6e8ecf 100644
--- a/lang/runawk/Makefile
+++ b/lang/runawk/Makefile
@@ -6,32 +6,34 @@
#
PORTNAME= runawk
-PORTVERSION= 1.1.0
+PORTVERSION= 1.2.0
CATEGORIES= lang
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= sahil@FreeBSD.org
COMMENT= Wrapper for AWK interpreter that implements a modules system
+BUILD_DEPENDS= mk-configure>=0.20.0:${PORTSDIR}/devel/mk-configure
+
MAKE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
-MAN1= ${PORTNAME}.1
-MANCOMPRESSED= yes
+MAN1= ${PORTNAME}.1 alt_getopt.1
-PLIST_FILES= bin/${PORTNAME}
+PLIST_FILES= bin/${PORTNAME} bin/alt_getopt bin/alt_getopt.sh
PORTDOCS= ChangeLog NEWS README TODO
PORTEXAMPLES= *
+LICENSE= MIT
+
.include <bsd.port.pre.mk>
+do-build:
+ @${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC}
+
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- @${INSTALL_DATA} ${WRKSRC}/modules/*.awk \
- ${WRKSRC}/modules/gawk/* ${DATADIR}
- @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
+ @${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC} ${INSTALL_TARGET}
post-install:
.if !defined(NOPORTDOCS)
@@ -42,8 +44,9 @@ post-install:
@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
- @(cd ${DATADIR}; ${FIND} -s *) \
+ @(cd ${DATADIR}; ${FIND} -s . -type f) \
| ${SED} -ne 's,^,${DATADIR:S,^${PREFIX}/,,}/,p' >> ${TMPPLIST}
+ @${ECHO_CMD} '@dirrm ${DATADIR:S|${PREFIX}/||}/gawk' >> ${TMPPLIST}
@${ECHO_CMD} '@dirrm ${DATADIR:S|${PREFIX}/||}' >> ${TMPPLIST}
.include <bsd.port.post.mk>
diff --git a/lang/runawk/distinfo b/lang/runawk/distinfo
index d475ec8b557e..9d087eeb901e 100644
--- a/lang/runawk/distinfo
+++ b/lang/runawk/distinfo
@@ -1,3 +1,3 @@
-MD5 (runawk-1.1.0.tar.gz) = 0fb31bb334ea1eec2a24f67159601a29
-SHA256 (runawk-1.1.0.tar.gz) = f2abbbca3c84ad453c114a40cd925f1cc8e264c96f04578249d159426a25412b
-SIZE (runawk-1.1.0.tar.gz) = 70784
+MD5 (runawk-1.2.0.tar.gz) = 0840c8a0ff63f323dcd6c6c5580295b8
+SHA256 (runawk-1.2.0.tar.gz) = fc71c6459026ebb59e66737beda3acbe8d375a9fd52a17c06085306b0a890b2e
+SIZE (runawk-1.2.0.tar.gz) = 71957