mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
9b992276c9
by the installer script.
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# New ports collection makefile for: Ruby GetText Package
|
|
# Date created: 4 February 2002
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gettext
|
|
PORTVERSION= 1.5.0
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= http://rubyforge.org/frs/download.php/10363/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= ruby-${PORTNAME}-package-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= A Ruby implementation of the gettext library
|
|
|
|
BUILD_DEPENDS= racc:${PORTSDIR}/devel/ruby-racc
|
|
|
|
USE_GETTEXT= yes
|
|
USE_RUBY= yes
|
|
USE_RUBY_FEATURES= racc-runtime
|
|
USE_RUBY_SETUP= yes
|
|
|
|
RUBY_SHEBANG_FILES= ${WRKSRC}/samples/*.rb
|
|
|
|
DOCS= ChangeLog NEWS README
|
|
|
|
RUBY_REQUIRE= Ruby >= 184
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(RUBY_PROVIDED)
|
|
IGNORE= requires Ruby 1.8.4 or later
|
|
.endif
|
|
|
|
post-install: doc-install
|
|
|
|
doc-install:
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${WRKSRC}/samples; ${RUBY} makemo.rb
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|