aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorsahil <sahil@FreeBSD.org>2011-01-24 03:11:41 +0800
committersahil <sahil@FreeBSD.org>2011-01-24 03:11:41 +0800
commit90d18c9fdfb0bffbbecd8ef90fcaf527a3b4954c (patch)
tree61026b2f410f8417e7d2582149995a27ed4a63a3 /lang
parentae5de19ae8591412325581a6e51b2363edf4a9a4 (diff)
downloadfreebsd-ports-gnome-90d18c9fdfb0bffbbecd8ef90fcaf527a3b4954c.tar.gz
freebsd-ports-gnome-90d18c9fdfb0bffbbecd8ef90fcaf527a3b4954c.tar.zst
freebsd-ports-gnome-90d18c9fdfb0bffbbecd8ef90fcaf527a3b4954c.zip
Update to 1.3.1 and simplify the conditional
installation of examples and documentation. Feature safe: yes
Diffstat (limited to 'lang')
-rw-r--r--lang/runawk/Makefile30
-rw-r--r--lang/runawk/distinfo5
2 files changed, 17 insertions, 18 deletions
diff --git a/lang/runawk/Makefile b/lang/runawk/Makefile
index 04137a6e8ecf..b556d680f5f5 100644
--- a/lang/runawk/Makefile
+++ b/lang/runawk/Makefile
@@ -6,28 +6,36 @@
#
PORTNAME= runawk
-PORTVERSION= 1.2.0
+PORTVERSION= 1.3.1
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
+BUILD_DEPENDS= mk-configure>=0.21.0:${PORTSDIR}/devel/mk-configure
MAKE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib" \
- CPPFLAGS="-I${LOCALBASE}/include"
+ CPPFLAGS="-I${LOCALBASE}/include" SUBPRJ_DFLT="${SUBPRJ_DFLT}"
MAN1= ${PORTNAME}.1 alt_getopt.1
PLIST_FILES= bin/${PORTNAME} bin/alt_getopt bin/alt_getopt.sh
-PORTDOCS= ChangeLog NEWS README TODO
-PORTEXAMPLES= *
+SUBPRJ_DFLT= runawk modules
LICENSE= MIT
-.include <bsd.port.pre.mk>
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+SUBPRJ_DFLT+= doc
+.endif
+
+.if !defined(NOPORTEXAMPLES)
+PORTEXAMPLES= *
+SUBPRJ_DFLT+= examples
+MAKE_ENV+= EGDIR="${EXAMPLESDIR}"
+.endif
do-build:
@${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC}
@@ -36,17 +44,9 @@ do-install:
@${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC} ${INSTALL_TARGET}
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 ${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>
+.include <bsd.port.mk>
diff --git a/lang/runawk/distinfo b/lang/runawk/distinfo
index 9d087eeb901e..1ff4864bbd2d 100644
--- a/lang/runawk/distinfo
+++ b/lang/runawk/distinfo
@@ -1,3 +1,2 @@
-MD5 (runawk-1.2.0.tar.gz) = 0840c8a0ff63f323dcd6c6c5580295b8
-SHA256 (runawk-1.2.0.tar.gz) = fc71c6459026ebb59e66737beda3acbe8d375a9fd52a17c06085306b0a890b2e
-SIZE (runawk-1.2.0.tar.gz) = 71957
+SHA256 (runawk-1.3.1.tar.gz) = 1645b680521f2e1b8004a797e5ec50de1e788f7361f018d2243507678b81b16c
+SIZE (runawk-1.3.1.tar.gz) = 74276