mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk Notable changes are. - Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk. - USE_RUBY=yes is replaced with USES=ruby. - USE_RUBY_EXTCONF is replaced with USES=ruby:extconf. - USE_RUBY_RDOC is replaced with USES=ruby:rdoc. - USE_RUBY_SETUP is replaces with USES=ruby:setup. - RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with USES=ruby:{build,none,run}. - RUBY_REQUIRE isn't used anywhere, so removed. - USES=gem now implies USES=ruby. This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863 I have just made some cosmetic changes and ran exp-run to test that the tree is not in a BROKEN state. Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D37925
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
PORTNAME= setup.rb
|
|
PORTVERSION= 3.4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= http://www.loveruby.net/archive/${PORTNAME:R}/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:R}-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= Common installer script for ruby packages
|
|
WWW= http://www.loveruby.net/en/setup.html
|
|
|
|
USES= ruby
|
|
|
|
NO_BUILD= yes
|
|
|
|
_SCRIPTS= setup.rb
|
|
|
|
DOCS_EN= doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO
|
|
DOCS_JA= doc.ja/* NEWS.ja Usage_ja.txt README.ja
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-extract:
|
|
.for f in ${_SCRIPTS}
|
|
${CP} -p ${WRKSRC}/${f} ${WRKSRC}/ruby-${f}
|
|
.endfor
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's!%%LOCALBASE%%!${LOCALBASE}!g' \
|
|
${WRKSRC}/ruby-setup.rb
|
|
|
|
do-install:
|
|
.for f in ${_SCRIPTS}
|
|
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_SITELIBDIR}/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/ruby-${f} ${STAGEDIR}${PREFIX}/bin/
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
|
|
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
|
|
.for f in ${DOCS_EN}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
|
|
.endfor
|
|
.for f in ${DOCS_JA}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|