From ff74787a2403899ea55ff37689e352eaaf5356cf Mon Sep 17 00:00:00 2001
From: Renato Botelho <garga@FreeBSD.org>
Date: Fri, 28 Mar 2014 13:10:16 +0000
Subject: Support stage

Approved by:	portmgr (blanket)
---
 x11/urxvt-perls/Makefile | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

(limited to 'x11')

diff --git a/x11/urxvt-perls/Makefile b/x11/urxvt-perls/Makefile
index 77778ad05d87..223d001f9227 100644
--- a/x11/urxvt-perls/Makefile
+++ b/x11/urxvt-perls/Makefile
@@ -16,25 +16,19 @@ NO_BUILD=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	muennich
 GH_COMMIT=	dd6e9d7
+PORTDOCS=	README
 
 INSTDIR_REL=	lib/urxvt/perl
 SCRIPTS=	clipboard keyboard-select url-select
 PLIST_FILES+=	${SCRIPTS:C/^/${INSTDIR_REL}\//}
-PLIST_DIRSTRY+=	${INSTDIR_REL}
-.if !defined(NOPORTDOCS)
-PLIST_FILES+=	${DOCSDIR_REL}/README
-PLIST_DIRS+=	${DOCSDIR_REL}
-.endif
+PLIST_DIRSTRY+=	${INSTDIR_REL} lib/urxvt
 
-NO_STAGE=	yes
 do-install:
-	${MKDIR} ${PREFIX}/${INSTDIR_REL}
+	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR_REL}
 .for s in ${SCRIPTS}
-	${INSTALL_DATA} ${WRKSRC}/${s} ${PREFIX}/${INSTDIR_REL}
+	${INSTALL_DATA} ${WRKSRC}/${s} ${STAGEDIR}${PREFIX}/${INSTDIR_REL}
 .endfor
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}/README
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/README
 
 .include <bsd.port.mk>
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0