Bug 183603 - remove hard-coded gcc from sysutils/multitail
remove hard-coded gcc from sysutils/multitail
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Beat Gaetzi
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-03 01:30 UTC by Adam Weinberger
Modified: 2013-11-18 13:30 UTC (History)
0 users

See Also:


Attachments
multitail.patch (334 bytes, patch)
2013-11-03 01:30 UTC, Adam Weinberger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer 2013-11-03 01:30:00 UTC
sysutils/multitail hardcodes CC=gcc.

Fix: The following patch fixes this.
Comment 1 Adam Weinberger freebsd_committer 2013-11-03 01:30:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beat

Over to maintainer.
Comment 2 dfilter freebsd_committer 2013-11-18 13:26:11 UTC
Author: beat
Date: Mon Nov 18 13:26:04 2013
New Revision: 334189
URL: http://svnweb.freebsd.org/changeset/ports/334189

Log:
  - Remove hardcoded CC [1]
  - Convert to USES
  - Convert to staging
  
  PR:		ports/183603 [1]
  Submitted by:	adamw@ [1]

Modified:
  head/sysutils/multitail/Makefile

Modified: head/sysutils/multitail/Makefile
==============================================================================
--- head/sysutils/multitail/Makefile	Mon Nov 18 13:18:57 2013	(r334188)
+++ head/sysutils/multitail/Makefile	Mon Nov 18 13:26:04 2013	(r334189)
@@ -14,27 +14,27 @@ COMMENT=	Tail multiple files on console 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/license.txt
 
-USE_GMAKE=	yes
+USES=		gmake
 
-MAN1=		multitail.1
-PLIST_FILES=	bin/multitail etc/multitail.conf.sample
+PLIST_FILES=	bin/multitail etc/multitail.conf.sample \
+		man/man1/multitail.1.gz
 PORTDOCS=	readme.txt license.txt
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,/etc/multitail.conf,${PREFIX}/etc/multitail.conf,' \
+		-e 's/CC=gcc/CC?=gcc/' \
 		${WRKSRC}/mt.c ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/multitail ${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/multitail.1 ${MANPREFIX}/man/man1
-	${INSTALL_DATA} ${WRKSRC}/multitail.conf ${PREFIX}/etc/multitail.conf.sample
+	${INSTALL_PROGRAM} ${WRKSRC}/multitail ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_MAN} ${WRKSRC}/multitail.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/multitail.conf ${STAGEDIR}${PREFIX}/etc/multitail.conf.sample
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Beat Gaetzi freebsd_committer 2013-11-18 13:30:20 UTC
State Changed
From-To: open->closed

Committed. Thanks!