svn commit: r444275 - head/devel/ruby-sdl

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Jun 25 15:02:36 UTC 2017


Author: sunpoet
Date: Sun Jun 25 15:02:34 2017
New Revision: 444275
URL: https://svnweb.freebsd.org/changeset/ports/444275

Log:
  Convert to options target helper
  
  Approved by:	portmgr (blanket)

Modified:
  head/devel/ruby-sdl/Makefile

Modified: head/devel/ruby-sdl/Makefile
==============================================================================
--- head/devel/ruby-sdl/Makefile	Sun Jun 25 15:02:29 2017	(r444274)
+++ head/devel/ruby-sdl/Makefile	Sun Jun 25 15:02:34 2017	(r444275)
@@ -51,13 +51,11 @@ DOC_FILESEN=	*.rsd *ref.en.html
 OPTIONS_DEFINE=	DOCS EXAMPLES
 OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
-
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/*/sdl_ext.so
 	@${REINPLACE_CMD} -e 's|ruby|${LOCALBASE}/bin/ruby|g' ${WRKSRC}/doc/rsd.rb
 
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
 	${INSTALL_DATA} ${DOC_FILES_WRKSRC_JA:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}/ja/
 	${INSTALL_DATA} ${DOC_FILES_WRKSRC_EN:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@@ -65,11 +63,9 @@ post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/ja
 	${INSTALL_DATA} ${DOC_FILESJA:S|^|${DOCSRCDIRJA}/|} ${STAGEDIR}${DOCSDIR}/doc/ja/
 	${INSTALL_DATA} ${DOC_FILESEN:S|^|${DOCSRCDIREN}/|} ${STAGEDIR}${DOCSDIR}/doc/
-.endif
 
-.if ${PORT_OPTIONS:MEXAMPLES}
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list