Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 17:11:22 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356652 - head/mail/prom-wl
Message-ID:  <201406051711.s55HBMIm073554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Jun  5 17:11:22 2014
New Revision: 356652
URL: http://svnweb.freebsd.org/changeset/ports/356652
QAT: https://qat.redports.org/buildarchive/r356652/

Log:
  - Add staging support
  - Convert to new options framework

Modified:
  head/mail/prom-wl/Makefile

Modified: head/mail/prom-wl/Makefile
==============================================================================
--- head/mail/prom-wl/Makefile	Thu Jun  5 16:51:30 2014	(r356651)
+++ head/mail/prom-wl/Makefile	Thu Jun  5 17:11:22 2014	(r356652)
@@ -19,29 +19,27 @@ NO_BUILD=	yes
 ELISPDIR=	${PREFIX}/share/emacs/site-lisp
 SITEPKGDIR=	${PREFIX}/lib/xemacs/site-packages
 
-NO_STAGE=	yes
-do-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@(cd ${WRKSRC}; ${INSTALL_DATA} ChangeLog \
-					prom-wl-usage.jis \
-					${DOCSDIR}/)
-	@(cd ${FILESDIR}; ${INSTALL_SCRIPT} byte-compile ${DOCSDIR}/)
-.endif
-
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${FILESDIR} ; ${INSTALL_DATA} dot.emacs dot.procmailrc \
-					${EXAMPLESDIR}/)
-.endif
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-	@${MKDIR} ${ELISPDIR}
-	@(cd ${WRKSRC}; ${INSTALL_DATA} prom-wl.el ${ELISPDIR}/)
+do-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}; ${INSTALL_DATA} ChangeLog prom-wl-usage.jis \
+		${STAGEDIR}${DOCSDIR})
+	(cd ${FILESDIR}; ${INSTALL_SCRIPT} byte-compile ${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${FILESDIR} ; ${INSTALL_DATA} dot.emacs dot.procmailrc \
+		${STAGEDIR}${EXAMPLESDIR})
+	@${MKDIR} ${STAGEDIR}${ELISPDIR}
+	(cd ${WRKSRC}; ${INSTALL_DATA} prom-wl.el ${STAGEDIR}${ELISPDIR})
 
 # For xemacs package install configuration
-	@${MKDIR} ${SITEPKGDIR}/lisp/prom-wl ${SITEPKGDIR}/pkginfo
-	@${LN} -sf ${ELISPDIR}/prom-wl.el ${SITEPKGDIR}/lisp/prom-wl/prom-wl.el
-	@${ECHO_CMD} 'pkginfo/MANIFEST.prom-wl' > ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl
-	@${ECHO_CMD} 'lisp/prom-wl/prom-wl.el' >> ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl
+	@${MKDIR} ${STAGEDIR}${SITEPKGDIR}/lisp/prom-wl
+	@${MKDIR} ${STAGEDIR}${SITEPKGDIR}/pkginfo
+	@${LN} -sf ${ELISPDIR}/prom-wl.el \
+		${STAGEDIR}${SITEPKGDIR}/lisp/prom-wl/prom-wl.el
+	@${ECHO_CMD} 'pkginfo/MANIFEST.prom-wl' > \
+		${STAGEDIR}${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl
+	@${ECHO_CMD} 'lisp/prom-wl/prom-wl.el' >> \
+		${STAGEDIR}${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl
 
 .include <bsd.port.mk>



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