Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 03:26:56 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/187761: sysutils/tty-clock: Support USE_GITHUB
Message-ID:  <20140320032656.cc61b0a95b8afafefa3ac522@yahoo.com>
Resent-Message-ID: <201403191840.s2JIe8eO002630@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187761
>Category:       ports
>Synopsis:       sysutils/tty-clock: Support USE_GITHUB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 18:40:07 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Support USE_GITHUB
- Support ncurses USES macro
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/sysutils/tty-clock/Makefile sysutils/tty-clock/Makefile
--- /usr/ports/sysutils/tty-clock/Makefile	2014-01-03 19:19:02.000000000 +0900
+++ sysutils/tty-clock/Makefile	2014-03-20 00:00:00.000000000 +0900
@@ -5,25 +5,34 @@
 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 -urN /usr/ports/sysutils/tty-clock/distinfo sysutils/tty-clock/distinfo
--- /usr/ports/sysutils/tty-clock/distinfo	2014-01-23 04:25:23.000000000 +0900
+++ sysutils/tty-clock/distinfo	2014-03-20 00:00:00.000000000 +0900
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:



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