Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:47:30 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184869: devel/pit: Support CC/CFLAGS properly
Message-ID:  <20131217024730.3ace0aa170c48908f7d4ee4d@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAJGc016363@freefall.freebsd.org>

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

>Number:         184869
>Category:       ports
>Synopsis:       devel/pit: Support CC/CFLAGS properly
>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:   Mon Dec 16 18:10:19 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Support USE_GITHUB
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/pit/Makefile devel/pit/Makefile
--- /usr/ports/devel/pit/Makefile	2013-11-06 21:50:43.000000000 +0900
+++ devel/pit/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -3,20 +3,28 @@
 
 PORTNAME=	pit
 PORTVERSION=	0.1.0
+PORTREVISION=	1
 CATEGORIES=	devel
-MASTER_SITES=	http://github.com/michaeldv/${PORTNAME}/tarball/
-DISTNAME=	${PORTVERSION}
-EXTRACT_SUFX=	# none
+MASTER_SITES=	GH
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Command-line project manager that integrates with Git
 
-FETCH_ARGS=	-pRr
-WRKSRC=		"${WRKDIR}/michaeldv-${PORTNAME}-fd6b3ef"
+LICENSE=	BSD
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	michaeldv
+GH_COMMIT=	fd6b3ef
+
 PLIST_FILES=	bin/pit
 
-NO_STAGE=	yes
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|CC =|CC ?=| ; \
+		 s|$$(CC) -o|$$(CC) $$(CFLAGS) -o|' ${WRKSRC}/Makefile
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/pit ${PREFIX}/bin
+	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} pit ${STAGEDIR}${PREFIX}/bin)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/pit/distinfo devel/pit/distinfo
--- /usr/ports/devel/pit/distinfo	2013-11-06 21:50:43.000000000 +0900
+++ devel/pit/distinfo	2013-12-17 00:00:00.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (0.1.0) = aaa10ee27a5e9add2b5973acab6205e88c8c56c754df6856965b40a22985114c
-SIZE (0.1.0) = 23246
+SHA256 (pit-0.1.0.tar.gz) = aaa10ee27a5e9add2b5973acab6205e88c8c56c754df6856965b40a22985114c
+SIZE (pit-0.1.0.tar.gz) = 23246
>Release-Note:
>Audit-Trail:
>Unformatted:



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