mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
18c6e18276
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk Notable changes are. - Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk. - USE_RUBY=yes is replaced with USES=ruby. - USE_RUBY_EXTCONF is replaced with USES=ruby:extconf. - USE_RUBY_RDOC is replaced with USES=ruby:rdoc. - USE_RUBY_SETUP is replaces with USES=ruby:setup. - RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with USES=ruby:{build,none,run}. - RUBY_REQUIRE isn't used anywhere, so removed. - USES=gem now implies USES=ruby. This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863 I have just made some cosmetic changes and ran exp-run to test that the tree is not in a BROKEN state. Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D37925
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
PORTNAME= diakonos
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.9.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= editors ruby
|
|
|
|
MAINTAINER= christopher.petrik@usm.edu
|
|
COMMENT= Console editor for the masses
|
|
WWW= https://github.com/Pistos/diakonos
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE
|
|
|
|
RUN_DEPENDS= rubygem-curses>=1.3.1:devel/rubygem-curses
|
|
|
|
USES= ruby shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Pistos
|
|
SHEBANG_FILES= bin/${PORTNAME}
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
SUB_FILES= installation.rb
|
|
SUB_LIST= RUBY_SITELIBDIR=${RUBY_SITELIBDIR}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${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.sample
|
|
${INSTALL_DATA} ${WRKSRC}/diakonos-256-colour.conf \
|
|
${STAGEDIR}${PREFIX}/etc/diakonos-256-colour.conf.sample
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/help
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG README.rdoc \
|
|
${STAGEDIR}${DOCSDIR})
|
|
${INSTALL_DATA} ${WRKSRC}/help/*.dhf ${STAGEDIR}${DOCSDIR}/help
|
|
|
|
.include <bsd.port.mk>
|