aboutsummaryrefslogtreecommitdiff
path: root/editors/diakonos/Makefile
blob: a299f317245d36640b4471c26e75d5f6763299bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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>