freebsd-ports/devel/chruby/Makefile
Bryan Drewery 5b5a90256d Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag.  This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.

The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
  GH -> GHL
  GITHUB -> GITHUB_LEGACY

Differential Revision:	https://reviews.freebsd.org/D748
Submitted by:	amdmi3
Reviewed by:	mat, swills, antoine, bdrewery
With hat:	portmgr
2015-03-19 16:44:57 +00:00

32 lines
692 B
Makefile

# Created by: Ross Timson <ross@rosstimson.com>
# $FreeBSD$
PORTNAME= chruby
PORTVERSION= 0.3.8
CATEGORIES= devel ruby
MASTER_SITES= GHL
MAINTAINER= ross@rosstimson.com
COMMENT= Changes the current Ruby
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
PLIST_FILES= bin/chruby-exec share/chruby/auto.sh share/chruby/chruby.sh
SUB_FILES= pkg-message
USE_GITHUB= yes
GH_ACCOUNT= postmodern
GH_COMMIT= b529bf2
GH_TAGNAME= v${PORTVERSION}
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/chruby-exec ${STAGEDIR}${PREFIX}/bin
( cd ${WRKSRC}/share/chruby && ${COPYTREE_BIN} \* ${STAGEDIR}${PREFIX}/share/chruby )
.include <bsd.port.mk>