# $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 .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