blob: 20e3949d55058a4b604bd3a22dcd2cd643ba0e20 (
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
|
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$
PORTNAME= term-ansicolor
PORTVERSION= 1.2.2
CATEGORIES= devel ruby
MASTER_SITES= RG
MAINTAINER= clsung@FreeBSD.org
COMMENT= Term::ANSIColor for Ruby
RUN_DEPENDS= rubygem-tins>=0.8:${PORTSDIR}/devel/rubygem-tins
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PLIST_FILES+= bin/colortab bin/term_display bin/term_mandel
PORTEXAMPLES= cdiff decolor
NO_STAGE= yes
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
post-patch:
# Chop out the cdiff and decolor binaries; these should be installed to
# EXAMPLESDIR
${REINPLACE_CMD} -e '/^- [cd][de][ic][fo][fl]o*r*$$/d' \
${WRKSRC}/term-ansicolor-${PORTVERSION}.gemspec
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/bin/,} ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk>
|