From 084900cf435336e66fbbdb7f9cd2d26c098b47ef Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Wed, 25 Dec 2013 11:24:39 +0000 Subject: [PATCH] - Respect CC/CFLAGS - Use USE_GITHUB - Add LICENSE - Support staging PR: ports/184869 Submitted by: KATO Tsuguru --- devel/pit/Makefile | 20 +++++++++++++------- devel/pit/distinfo | 4 ++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/devel/pit/Makefile b/devel/pit/Makefile index 75a786a04893..a61066ab9fcc 100644 --- a/devel/pit/Makefile +++ b/devel/pit/Makefile @@ -4,19 +4,25 @@ PORTNAME= pit PORTVERSION= 0.1.0 CATEGORIES= devel -MASTER_SITES= http://github.com/michaeldv/${PORTNAME}/tarball/ -DISTNAME= ${PORTVERSION} -EXTRACT_SUFX= # none 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 diff --git a/devel/pit/distinfo b/devel/pit/distinfo index f0ee87ae1405..b6972dd7b6c2 100644 --- a/devel/pit/distinfo +++ b/devel/pit/distinfo @@ -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