freebsd-ports/devel/ruby-build/Makefile
Steve Wills 6c1dbef99c - Update to 20130518 [1]
- Use local mirrors for GH to avoid intermittent issues

PR:		ports/179496 [1]
Submitted by:	"Fabian M. Borschel" <fmb@onibox.net> (maintainer) [1]
2013-06-23 02:22:11 +00:00

51 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= ruby-build
PORTVERSION= 20130518
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~swills/ \
GH
MAINTAINER= fmb@onibox.net
COMMENT= Compile and install different ruby versions
LICENSE= RUBY-BUILD
LICENSE_NAME= Sam Stephenson
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf \
curl:${PORTSDIR}/ftp/curl \
gmake:${PORTSDIR}/devel/gmake
OPTIONS_DEFINE= RBENV
RBENV_DESC= Install rbenv for installation support
OPTIONS_DEFAULT= RBENV
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRBENV}
RUN_DEPENDS+= rbenv:${PORTSDIR}/devel/rbenv
.endif
USE_GITHUB= yes
GH_ACCOUNT= sstephenson
GH_COMMIT= 1b170ee
GH_TAGNAME= v${PORTVERSION}
NO_BUILD= yes
PLIST_FILES= bin/ruby-build \
libexec/rbenv-install \
libexec/rbenv-uninstall
PORTDATA= *
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/ruby-build ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-install ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-uninstall ${PREFIX}/libexec
@${MKDIR} ${DATADIR}
( cd ${WRKSRC}/share/ruby-build && ${COPYTREE_BIN} \* ${DATADIR} )
.include <bsd.port.mk>