- Remove .include <bsd.port.options.mk> - Silence patch message - Use GEM_NAME - Cosmetic change - Update pkg-descr - Update WWW - Take maintainership
34 lines
809 B
Makefile
34 lines
809 B
Makefile
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= term-ansicolor
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Term::ANSIColor for Ruby
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= rubygem-tins>=1.0:${PORTSDIR}/devel/rubygem-tins
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBYGEMS= yes
|
|
RUBYGEM_AUTOPLIST= yes
|
|
|
|
PLIST_FILES= bin/colortab bin/term_display bin/term_mandel
|
|
PORTEXAMPLES= cdiff decolor
|
|
|
|
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}/${GEM_NAME}.gemspec
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
|
|
cd ${WRKSRC}/bin/ && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
.include <bsd.port.mk>
|