diff options
author | pawel <pawel@FreeBSD.org> | 2014-04-05 03:26:35 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-04-05 03:26:35 +0800 |
commit | adeb981c406b84e2a7dc0e54b798874a5ff4c8da (patch) | |
tree | 4670758aa72a2de2e74a2a37d98026e50fbf3580 /editors | |
parent | bb4b3cf9a2a19006df9f06b2dba2391e5c94af0b (diff) | |
download | freebsd-ports-gnome-adeb981c406b84e2a7dc0e54b798874a5ff4c8da.tar.gz freebsd-ports-gnome-adeb981c406b84e2a7dc0e54b798874a5ff4c8da.tar.zst freebsd-ports-gnome-adeb981c406b84e2a7dc0e54b798874a5ff4c8da.zip |
- Add staging support
- Define DOCS option
Diffstat (limited to 'editors')
-rw-r--r-- | editors/diakonos/Makefile | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/editors/diakonos/Makefile b/editors/diakonos/Makefile index ad880dcd63f4..7073d6cde66a 100644 --- a/editors/diakonos/Makefile +++ b/editors/diakonos/Makefile @@ -4,8 +4,8 @@ PORTNAME= diakonos PORTVERSION= 0.9.1 CATEGORIES= editors ruby -MASTER_SITES= http://diakonos.pist0s.ca/archives/ \ - http://distfiles.bsdjunk.com +MASTER_SITES= http://diakonos.pist0s.ca/archives/ \ + http://distfiles.bsdjunk.com MAINTAINER= ports@FreeBSD.org COMMENT= Linux editor for the masses @@ -17,30 +17,24 @@ NO_BUILD= yes SUB_FILES= installation.rb SUB_LIST= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|/usr/bin/env ruby|${RUBY}|g' ${WRKSRC}/bin/${PORTNAME} do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin/ - ${MKDIR} ${RUBY_SITELIBDIR}/${PORTNAME} - cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${RUBY_SITELIBDIR}/ - ${INSTALL_SCRIPT} ${WRKDIR}/installation.rb ${RUBY_SITELIBDIR}/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/diakonos.conf ${PREFIX}/etc/diakonos.conf.dist; \ - if [ ! -f ${PREFIX}/etc/diakonos.conf ]; then \ - ${INSTALL_DATA} ${PREFIX}/etc/diakonos.conf.dist ${PREFIX}/etc/diakonos.conf; \ - fi - ${INSTALL_DATA} ${WRKSRC}/diakonos-256-colour.conf ${PREFIX}/etc/diakonos-256-colour.conf.dist; \ - if [ ! -f ${PREFIX}/etc/diakonos-256-colour.conf ]; then \ - ${INSTALL_DATA} ${PREFIX}/etc/diakonos-256-colour.conf.dist ${PREFIX}/etc/diakonos-256-colour.conf; \ - fi - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR}/help - ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/LICENCE ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/README.rdoc ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/help/*.dhf ${DOCSDIR}/help/ -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME} + cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_SITELIBDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/installation.rb \ + ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/diakonos.conf \ + ${STAGEDIR}${PREFIX}/etc/diakonos.conf.dist + ${INSTALL_DATA} ${WRKSRC}/diakonos-256-colour.conf \ + ${STAGEDIR}${PREFIX}/etc/diakonos-256-colour.conf.dist + @${MKDIR} ${STAGEDIR}${DOCSDIR}/help + (cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG LICENCE README.rdoc \ + ${STAGEDIR}${DOCSDIR}) + ${INSTALL_DATA} ${WRKSRC}/help/*.dhf ${STAGEDIR}${DOCSDIR}/help .include <bsd.port.mk> |