Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 07:12:58 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346439 - head/misc/metalink-checker
Message-ID:  <201402280712.s1S7Cw5L042096@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Feb 28 07:12:57 2014
New Revision: 346439
URL: http://svnweb.freebsd.org/changeset/ports/346439
QAT: https://qat.redports.org/buildarchive/r346439/

Log:
  - Support staging
  - USES -> dos2unix

Modified:
  head/misc/metalink-checker/Makefile

Modified: head/misc/metalink-checker/Makefile
==============================================================================
--- head/misc/metalink-checker/Makefile	Fri Feb 28 07:11:47 2014	(r346438)
+++ head/misc/metalink-checker/Makefile	Fri Feb 28 07:12:57 2014	(r346439)
@@ -13,34 +13,23 @@ COMMENT=	Python script to check metalink
 
 LICENSE=	GPLv2
 
-USE_DOS2UNIX=	yes
+USES=		dos2unix
 USE_PYTHON=	yes
 NO_BUILD=	yes
 
-# Documents to install
-DOC_FILES=	\
-		README
-
-.ifndef(NOPORTDOCS)
-PORTDOCS=	*
-.endif
-
+PORTDOCS=	README
 PLIST_FILES=	bin/${PORTNAME}.py
 
-NO_STAGE=	yes
-do-patch:
+post-patch:
 	@${REINPLACE_CMD} -E \
 		-e "s|#!/usr/bin/env[[:space:]]python|#!${PYTHON_CMD}|" \
 		${WRKSRC}/${PORTNAME}.py
 
 do-install:
-# docs
-.ifndef(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
-	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>



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