1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/uthash/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

42 lines
982 B
Makefile

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= uthash
PORTVERSION= 1.9.8p2
CATEGORIES= devel
MASTER_SITES= GHL
MAINTAINER= zi@FreeBSD.org
COMMENT= hash table for C structures
LICENSE= BSD1CLAUSE
LICENSE_NAME= BSD 1-Clause License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
OPTIONS_DEFINE= DOCS
USES= tar:bzip2
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= troydhanson
GH_COMMIT= d10c46a
GH_TAGNAME= ${GH_COMMIT}
PORTDOCS= ChangeLog.txt todo.txt userguide.txt utarray.txt \
utlist.txt utstring.txt
PLIST_FILES= include/utarray.h include/uthash.h include/utlist.h \
include/utstring.h
do-install:
@${INSTALL_DATA} ${WRKSRC}/src/utarray.h \
${WRKSRC}/src/uthash.h \
${WRKSRC}/src/utlist.h \
${WRKSRC}/src/utstring.h ${STAGEDIR}${PREFIX}/include/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>