Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2013 10:49:04 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328669 - head/x11/trayer
Message-ID:  <201309291049.r8TAn4xh003468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Sun Sep 29 10:49:03 2013
New Revision: 328669
URL: http://svnweb.freebsd.org/changeset/ports/328669

Log:
  Support staging.

Modified:
  head/x11/trayer/Makefile

Modified: head/x11/trayer/Makefile
==============================================================================
--- head/x11/trayer/Makefile	Sun Sep 29 10:46:21 2013	(r328668)
+++ head/x11/trayer/Makefile	Sun Sep 29 10:49:03 2013	(r328669)
@@ -19,20 +19,17 @@ MAKE_ARGS=	"PREFIX=${PREFIX}"
 WRKSRC=		${WRKDIR}/sargon-${PORTNAME}-srg-${GITVERSION:S/^0-g//}
 
 PORTDOCS=	README CREDITS CHANGELOG
-MAN1=		trayer.1
 
-PLIST_FILES=	bin/trayer
+PLIST_FILES=	bin/trayer man/man1/trayer.1.gz
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+post-patch:
+	@${REINPLACE_CMD} -e 's|$$(PREFIX)/|$$(DESTDIR)&|' ${WRKSRC}/Makefile
 
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>



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