Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 14:49:45 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339246 - head/converters/ytnef
Message-ID:  <201401091449.s09EnjQQ077565@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan  9 14:49:45 2014
New Revision: 339246
URL: http://svnweb.freebsd.org/changeset/ports/339246

Log:
  Support stage

Modified:
  head/converters/ytnef/Makefile

Modified: head/converters/ytnef/Makefile
==============================================================================
--- head/converters/ytnef/Makefile	Thu Jan  9 14:48:54 2014	(r339245)
+++ head/converters/ytnef/Makefile	Thu Jan  9 14:49:45 2014	(r339246)
@@ -10,6 +10,8 @@ MASTER_SITES=	SF
 MAINTAINER=	delphus@gmail.com
 COMMENT=	Unpack data in MS Outlook TNEF format
 
+OPTIONS_DEFINE=	DOCS
+
 LIB_DEPENDS=	libytnef.so:${PORTSDIR}/devel/libytnef
 RUN_DEPENDS=	p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
 
@@ -23,18 +25,12 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 PLIST_FILES=	bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
 PORTDOCS=	AUTHORS NEWS README
 
-NO_STAGE=	yes
-
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
 		${WRKSRC}/src/ytnef/ytnefprocess.pl
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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