aboutsummaryrefslogtreecommitdiff
path: root/devel/rubygem-locale/Makefile
blob: 80cb5ea9076c790fe687f5d7c7fb8e70a6e99135 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
# 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=	0.8.0
CATEGORIES=	devel ruby
MASTER_SITES=	ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
		ftp://ftp.tu-ilmenau.de/Mirrors/gentoo/distfiles/ \
		ftp://ftp.tugraz.at/ftp.tu-graz.ac.at/.mirror-sites/gentoo.inode.at/source/distfiles/ \
		ftp://mir1.ovh.net/gentoo-distfiles/distfiles/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DISTNAME=	ruby-${PORTNAME}-package-${PORTVERSION}
DIST_SUBDIR=	ruby

MAINTAINER=	ports@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=	bin/rgettext ${WRKSRC}/samples/*.rb

DOCS_EN=	ChangeLog README
DOCS_JA=	README.ja

.include <bsd.port.pre.mk>

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}/ja
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif

.include <bsd.port.post.mk>