diff options
author | miwi <miwi@FreeBSD.org> | 2014-05-17 17:53:11 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-05-17 17:53:11 +0800 |
commit | f1a01ec3a24397e0d144dacb9034531d696c5966 (patch) | |
tree | 3c390eb9459a75bdf996e628f867315218c4c135 | |
parent | b85fd4d532879b1f97a408f25c03d1041c1736e5 (diff) | |
download | freebsd-ports-gnome-f1a01ec3a24397e0d144dacb9034531d696c5966.tar.gz freebsd-ports-gnome-f1a01ec3a24397e0d144dacb9034531d696c5966.tar.zst freebsd-ports-gnome-f1a01ec3a24397e0d144dacb9034531d696c5966.zip |
- Support USE_GITHUB
- Support ncurses USES macro
- Add LICENSE
PR: 187761
Submitted by: Ports Fury
-rw-r--r-- | sysutils/tty-clock/Makefile | 35 | ||||
-rw-r--r-- | sysutils/tty-clock/distinfo | 4 |
2 files changed, 24 insertions, 15 deletions
diff --git a/sysutils/tty-clock/Makefile b/sysutils/tty-clock/Makefile index 6c01ead2c9c3..d039351cc588 100644 --- a/sysutils/tty-clock/Makefile +++ b/sysutils/tty-clock/Makefile @@ -5,25 +5,34 @@ PORTNAME= tty-clock PORTVERSION= 2.0.0 PORTREVISION= 1 CATEGORIES= sysutils -MASTER_SITES= http://github.com/xorg62/${PORTNAME}/tarball/ -DISTNAME= a82fd71 -EXTRACT_SUFX= # none +MASTER_SITES= GH MAINTAINER= ports@FreeBSD.org COMMENT= Terminal based clock -WRKSRC= "${WRKDIR}/xorg62-${PORTNAME}-${DISTNAME}" -PLIST_FILES= bin/tty-clock +LICENSE= BSD -post-patch: - @${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS \+=|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e 's|LDFLAGS =|LDFLAGS \+=|' ${WRKSRC}/Makefile +USE_GITHUB= yes +GH_ACCOUNT= xorg62 +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= a82fd71 -do-build: - cd ${WRKSRC} && ${MAKE} +USES= ncurses +ALL_TARGET= tty-clock -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tty-clock ${STAGEDIR}${PREFIX}/bin +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> diff --git a/sysutils/tty-clock/distinfo b/sysutils/tty-clock/distinfo index 9b6e9b353968..67ede71eb5f7 100644 --- a/sysutils/tty-clock/distinfo +++ b/sysutils/tty-clock/distinfo @@ -1,2 +1,2 @@ -SHA256 (a82fd71) = 80fb9df9d257c73669c9363bc84823d9c42033e39f499d52abd74a698a4e5866 -SIZE (a82fd71) = 5033 +SHA256 (tty-clock-2.0.0.tar.gz) = 80fb9df9d257c73669c9363bc84823d9c42033e39f499d52abd74a698a4e5866 +SIZE (tty-clock-2.0.0.tar.gz) = 5033 |