1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/sysutils/vagrant/Makefile
Mathieu Arnold 597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00

77 lines
2.6 KiB
Makefile

# Created by: Joseph Benden <joe@thrallingpenguin.com>
# $FreeBSD$
PORTNAME= vagrant
PORTVERSION= 1.8.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= sysutils rubygems devel
MAINTAINER= joe@thrallingpenguin.com
COMMENT= Vagrant Virtual Machine Manager
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rubygem-builder32>=2.1.2:devel/rubygem-builder32 \
rubygem-bundler>=1.5.3:sysutils/rubygem-bundler \
rubygem-main>=1.0:devel/rubygem-main
RUN_DEPENDS= rubygem-bundler>=1.5.3:sysutils/rubygem-bundler \
rubygem-childprocess>=0.5.1:devel/rubygem-childprocess \
rubygem-erubis>=2.7.0:www/rubygem-erubis \
rubygem-hashicorp-checkpoint>=0.1.4:www/rubygem-hashicorp-checkpoint \
rubygem-i18n>=0.6.9:devel/rubygem-i18n \
rubygem-listen>=3.0.2:devel/rubygem-listen \
rubygem-log4r>=1.1.10:sysutils/rubygem-log4r \
rubygem-net-scp>=1.1.0:security/rubygem-net-scp \
rubygem-net-sftp>=2.1:security/rubygem-net-sftp \
rubygem-net-ssh>=3.0.1:security/rubygem-net-ssh \
rubygem-nokogiri>=1.6.3.1:textproc/rubygem-nokogiri \
rubygem-rb-kqueue>=0.2.2:devel/rubygem-rb-kqueue \
rubygem-rest-client>=1.6.0:www/rubygem-rest-client \
rubygem-wdm>=0.1.0:devel/rubygem-wdm \
rubygem-winrm>=1.3.0:sysutils/rubygem-winrm \
rubygem-winrm-fs>=0.2.0:sysutils/rubygem-winrm-fs
USE_GITHUB= yes
GH_ACCOUNT= mitchellh
USES= shebangfix
SHEBANG_FILES= scripts/bintray_upload.sh \
scripts/website_push_docs.sh \
scripts/website_push_www.sh
USE_RUBY= yes
GEMFILES= vagrant-${PORTVERSION}.gem
RUBYGEMBIN= gem${RUBY_SUFFIX}
PLIST_SUB+= GEMS_DIR="lib/ruby/gems/${RUBY_VER}/" \
GEM_BASE_DIR="lib/ruby/gems/${RUBY_VER}/gems" \
DOC_DIR="lib/ruby/gems/${RUBY_VER}/doc" \
PORTVERSION="${PORTVERSION}"
NO_ARCH= yes
RUBYGEM_ARGS= --no-ri --no-rdoc -l --no-update-sources \
--install-dir ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER} \
--ignore-dependencies --bindir=${STAGEDIR}${PREFIX}/bin
GEM_ENV+= RB_USER_INSTALL=yes
post-patch:
@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/bin/vagrant
do-build:
(cd ${WRKSRC}; (${ECHO_CMD} -e "install:\n\techo\n") > Makefile)
(cd ${WRKSRC}; ${SETENV} VAGRANT_INSTALLER_ENV=yes \
${GEM_ENV} ${RUBYGEMBIN} build vagrant.gemspec)
(cd ${WRKSRC}; ${SETENV} VAGRANT_INSTALLER_ENV=yes \
${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} \
${GEMFILES} -- --build-args ${CONFIGURE_ARGS})
${MKDIR} ${STAGEDIR}${DATADIR}/embedded/rgloader
${INSTALL_DATA} ${FILESDIR}/cacert.pem \
${STAGEDIR}${DATADIR}/embedded/cacert.pem
${INSTALL_SCRIPT} ${FILESDIR}/loader.rb \
${STAGEDIR}${DATADIR}/embedded/rgloader/loader.rb
post-install:
${RMDIR} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/doc
.include <bsd.port.mk>