freebsd-ports/textproc/ruby-format/Makefile

38 lines
898 B
Makefile
Raw Normal View History

# New ports collection makefile for: FormatR
# Date created: 20 September 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= format
2003-08-10 12:39:22 +02:00
PORTVERSION= 1.08
CATEGORIES= textproc ruby
2003-01-03 13:08:30 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}r
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
2002-01-26 12:55:28 +01:00
DISTNAME= FormatR.${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
2003-02-18 06:42:05 +01:00
COMMENT= Perl like formats for Ruby
USE_RUBY= yes
2001-12-21 21:37:00 +01:00
NO_BUILD= yes
2002-01-26 12:55:28 +01:00
post-patch:
${RUBY} -i.orig -pe 'gsub(/"(format_test\.pl)/, "\"./\\1")' ${WRKSRC}/test_format.rb
do-install:
${INSTALL_DATA} ${WRKSRC}/format.rb ${RUBY_SITELIBDIR}/
.if !defined(NOPORTDOCS)
2002-10-06 23:38:34 +02:00
${MKDIR} ${RUBY_MODEXAMPLESDIR}/test
2001-12-21 21:37:00 +01:00
.for f in test_format.rb format_test.pl
2002-10-06 23:38:34 +02:00
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
2001-12-21 21:37:00 +01:00
.endfor
2002-10-06 23:38:34 +02:00
${INSTALL_DATA} ${WRKSRC}/test/* ${RUBY_MODEXAMPLESDIR}/test/
.endif
.include <bsd.port.mk>