Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2014 12:52:11 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361075 - head/print/lpr-wrapper
Message-ID:  <201407071252.s67CqBxc066849@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Mon Jul  7 12:52:11 2014
New Revision: 361075
URL: http://svnweb.freebsd.org/changeset/ports/361075
QAT: https://qat.redports.org/buildarchive/r361075/

Log:
  Stagify, use shebangfix to fix bash path.

Modified:
  head/print/lpr-wrapper/Makefile

Modified: head/print/lpr-wrapper/Makefile
==============================================================================
--- head/print/lpr-wrapper/Makefile	Mon Jul  7 12:51:56 2014	(r361074)
+++ head/print/lpr-wrapper/Makefile	Mon Jul  7 12:52:11 2014	(r361075)
@@ -10,23 +10,18 @@ MASTER_SITES=	http://www.mathstat.dal.ca
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A user level printer frontend
 
-USE_GHOSTSCRIPT_RUN=	yes
+RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
+		ppdfilt:${PORTSDIR}/print/libppd \
+		psdim:${PORTSDIR}/print/psdim \
+		mpage:${PORTSDIR}/print/mpage \
+		pstops:${PORTSDIR}/print/psutils
 
+USES=		shebangfix
+SHEBANG_FILES=	lpr-wrapper.in lpr-wrapper-cups.in lpr-wrapper-features
+USE_GHOSTSCRIPT_RUN=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX}
 
-RUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
-RUN_DEPENDS+=	ppdfilt:${PORTSDIR}/print/libppd
-RUN_DEPENDS+=	psdim:${PORTSDIR}/print/psdim
-RUN_DEPENDS+=	mpage:${PORTSDIR}/print/mpage
-RUN_DEPENDS+=	pstops:${PORTSDIR}/print/psutils
-
 PLIST_FILES=	bin/lpr-wrapper bin/lpr-wrapper-cups bin/lpr-wrapper-features
 
-NO_STAGE=	yes
-post-build:
-	${REINPLACE_CMD} -e 's|#!/bin/bash|#!/usr/bin/env bash|' \
-		${WRKSRC}/lpr-wrapper ${WRKSRC}/lpr-wrapper-cups \
-		${WRKSRC}/lpr-wrapper-features
-
 .include <bsd.port.mk>



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