ports/184869: devel/pit: Support CC/CFLAGS properly
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:19 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list