freebsd-ports/sysutils/tty-clock/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

38 lines
768 B
Makefile

# Created by: Eric Freeman <freebsdports@chillibear.com>
# $FreeBSD$
PORTNAME= tty-clock
PORTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= GHL
MAINTAINER= ports@FreeBSD.org
COMMENT= Terminal based clock
LICENSE= BSD3CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= xorg62
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= a82fd71
USES= ncurses
ALL_TARGET= tty-clock
PLIST_FILES= bin/tty-clock
post-patch:
@${REINPLACE_CMD} -e \
'/^CC/s| =| ?=| ; \
s|/usr/local|$${PREFIX}| ; \
/^CFLAGS/s| =| +=| ; \
s|-Wall -g|-Wall| ; \
/^LDFLAGS/s| =| +=| ; \
/@echo /s|^|#| ; \
s|@$${CC} |$${CC} | ; \
s|@cp |$${BSD_INSTALL_PROGRAM} | ; \
s| $${INSTALLPATH}| $${DESTDIR}$${INSTALLPATH}| ; \
/@chmod /s|^|#|' ${WRKSRC}/Makefile
.include <bsd.port.mk>