Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Oct 2015 17:11:01 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r398528 - head/misc/rubygem-rabbit
Message-ID:  <201510031711.t93HB14Q013491@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510031711.t93HB14Q013491>