Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 09:53:12 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354305 - head/sysutils/tty-clock
Message-ID:  <201405170953.s4H9rCKp080004@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sat May 17 09:53:11 2014
New Revision: 354305
URL: http://svnweb.freebsd.org/changeset/ports/354305
QAT: https://qat.redports.org/buildarchive/r354305/

Log:
  - Support USE_GITHUB
  - Support ncurses USES macro
  - Add LICENSE
  
  PR:		187761
  Submitted by:	Ports Fury

Modified:
  head/sysutils/tty-clock/Makefile
  head/sysutils/tty-clock/distinfo

Modified: head/sysutils/tty-clock/Makefile
==============================================================================
--- head/sysutils/tty-clock/Makefile	Sat May 17 09:52:23 2014	(r354304)
+++ head/sysutils/tty-clock/Makefile	Sat May 17 09:53:11 2014	(r354305)
@@ -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>

Modified: head/sysutils/tty-clock/distinfo
==============================================================================
--- head/sysutils/tty-clock/distinfo	Sat May 17 09:52:23 2014	(r354304)
+++ head/sysutils/tty-clock/distinfo	Sat May 17 09:53:11 2014	(r354305)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405170953.s4H9rCKp080004>