svn commit: r398528 - head/misc/rubygem-rabbit
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 3 17:11:01 UTC 2015
Author: sunpoet
Date: Sat Oct 3 17:11:00 2015
New Revision: 398528
URL: https://svnweb.freebsd.org/changeset/ports/398528
Log:
- Add NO_ARCH
- Convert to new options helper
- Convert to new options target helper
Approved by: portmgr (blanket)
Modified:
head/misc/rubygem-rabbit/Makefile
Modified: head/misc/rubygem-rabbit/Makefile
==============================================================================
--- head/misc/rubygem-rabbit/Makefile Sat Oct 3 17:10:56 2015 (r398527)
+++ head/misc/rubygem-rabbit/Makefile Sat Oct 3 17:11:00 2015 (r398528)
@@ -24,6 +24,7 @@ RUN_DEPENDS= rubygem-coderay>=1.0.0:${PO
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/
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>
More information about the svn-ports-head
mailing list