summaryrefslogtreecommitdiffstats
path: root/editors/diakonos/Makefile
blob: ea34c04e9df06a7e4af7065270b4a90b5591aeaa (plain)
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
# Created by: Chris Petrik <chris@officialunix.com>
# $FreeBSD$

PORTNAME=	diakonos
PORTVERSION=	0.9.4
PORTREVISION=	1
CATEGORIES=	editors ruby
MASTER_SITES=	http://diakonos.pist0s.ca/archives/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Linux editor for the masses

LICENSE=	MIT

USE_RUBY=	yes

NO_BUILD=	yes
SUB_FILES=	installation.rb
SUB_LIST=	RUBY_SITELIBDIR=${RUBY_SITELIBDIR}

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} 's|/usr/bin/env ruby|${RUBY}|g' ${WRKSRC}/bin/${PORTNAME}

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
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/help

post-install-DOCS-on:
	(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG LICENCE README.rdoc \
		${STAGEDIR}${DOCSDIR})
	${INSTALL_DATA} ${WRKSRC}/help/*.dhf ${STAGEDIR}${DOCSDIR}/help

.include <bsd.port.mk>
OpenPOWER on IntegriCloud