aboutsummaryrefslogtreecommitdiff
path: root/misc/rubygem-rabbit
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-03 17:11:00 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-03 17:11:00 +0000
commit41bb5e5d5c8e25b6c3792baa6d3767b697ec9c54 (patch)
tree8f56cee3625b31b43021d4bd1d64ec154e385afa /misc/rubygem-rabbit
parent00144b77a25ebc8fdd90d92c2a518c88597e5fea (diff)
downloadports-41bb5e5d5c8e25b6c3792baa6d3767b697ec9c54.tar.gz
ports-41bb5e5d5c8e25b6c3792baa6d3767b697ec9c54.zip
- Add NO_ARCH
- Convert to new options helper - Convert to new options target helper Approved by: portmgr (blanket)
Notes
Notes: svn path=/head/; revision=398528
Diffstat (limited to 'misc/rubygem-rabbit')
-rw-r--r--misc/rubygem-rabbit/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/misc/rubygem-rabbit/Makefile b/misc/rubygem-rabbit/Makefile
index c67bb1311807..6bbb8f8b4fb7 100644
--- a/misc/rubygem-rabbit/Makefile
+++ b/misc/rubygem-rabbit/Makefile
@@ -24,6 +24,7 @@ RUN_DEPENDS= rubygem-coderay>=1.0.0:${PORTSDIR}/textproc/rubygem-coderay \
rubygem-rsvg2>0:${PORTSDIR}/graphics/rubygem-rsvg2 \
rubygem-rttool>0:${PORTSDIR}/textproc/rubygem-rttool
+NO_ARCH= yes
USES= gettext
USE_RUBY= yes
USE_RUBYGEMS= yes
@@ -34,16 +35,10 @@ PLIST_FILES= bin/rabbit bin/rabbirc bin/rabbit-command bin/rabbit-slide \
OPTIONS_DEFINE= MIMETEX
MIMETEX_DESC= Run with mimetex
-.include <bsd.port.options.mk>
+MIMETEX_RUN_DEPENDS= ${LOCALBASE}/www/mimetex/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex
-.if ${PORT_OPTIONS:MMIMETEX}
-RUN_DEPENDS+= ${LOCALBASE}/www/mimetex/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex
-.endif
-
-.if ${PORT_OPTIONS:MMIMETEX}
-post-patch:
+post-patch-MIMETEX-on:
${REINPLACE_CMD} -e 's|"mimetex.cgi"|"${PREFIX}/www/mimetex/cgi-bin/mimetex.cgi"|' \
${WRKSRC}/lib/rabbit/parser/ext/tex.rb
-.endif
.include <bsd.port.mk>