2002-02-03 20:33:36 +01:00
|
|
|
# New ports collection makefile for: Ruby GetText Package
|
|
|
|
# Date created: 4 February 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gettext
|
2007-04-29 10:08:05 +02:00
|
|
|
PORTVERSION= 1.9.0
|
2002-02-03 20:33:36 +01:00
|
|
|
CATEGORIES= devel ruby
|
2006-08-08 13:35:27 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2002-02-03 20:33:36 +01:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-package-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2006-06-07 08:44:54 +02:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 06:04:59 +01:00
|
|
|
COMMENT= A Ruby implementation of the gettext library
|
2002-02-03 20:33:36 +01:00
|
|
|
|
2004-02-04 05:36:30 +01:00
|
|
|
BUILD_DEPENDS= racc:${PORTSDIR}/devel/ruby-racc
|
2002-10-27 17:46:24 +01:00
|
|
|
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2002-02-03 20:33:36 +01:00
|
|
|
USE_RUBY= yes
|
2006-08-24 09:46:49 +02:00
|
|
|
USE_RUBY_FEATURES= racc-runtime iconv
|
2002-02-03 20:33:36 +01:00
|
|
|
USE_RUBY_SETUP= yes
|
|
|
|
|
2006-06-07 08:44:54 +02:00
|
|
|
RUBY_SHEBANG_FILES= ${WRKSRC}/samples/*.rb
|
2002-10-23 23:02:09 +02:00
|
|
|
|
2006-08-24 09:42:34 +02:00
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
2007-04-29 10:08:05 +02:00
|
|
|
PORTDOCS= ChangeLog NEWS README
|
2006-06-07 08:38:29 +02:00
|
|
|
|
|
|
|
RUBY_REQUIRE= Ruby >= 184
|
2004-10-26 06:22:47 +02:00
|
|
|
|
2004-12-14 05:54:37 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-12-06 18:17:38 +01:00
|
|
|
|
2006-06-07 08:38:29 +02:00
|
|
|
.if !defined(RUBY_PROVIDED)
|
|
|
|
IGNORE= requires Ruby 1.8.4 or later
|
|
|
|
.endif
|
|
|
|
|
2004-12-14 05:54:37 +01:00
|
|
|
post-install: doc-install
|
2002-12-06 18:17:38 +01:00
|
|
|
|
|
|
|
doc-install:
|
2002-10-23 23:02:09 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-12-06 18:17:38 +01:00
|
|
|
cd ${WRKSRC}/samples; ${RUBY} makemo.rb
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
|
2006-06-07 08:38:29 +02:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2006-08-24 09:42:34 +02:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2004-10-26 06:22:47 +02:00
|
|
|
.endfor
|
2002-02-03 20:33:36 +01:00
|
|
|
.endif
|
2004-12-14 05:54:37 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|