aboutsummaryrefslogtreecommitdiffstats
path: root/net/ruby-drb/Makefile
blob: fb3805bd7337996fc4a77bddfddd636fef1e085a (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
# New ports collection makefile for:    Ruby-DRb
# Date created:     9 Sep 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   drb
PORTVERSION=    1.3.9
CATEGORIES= net ruby
MASTER_SITES=   http://www2a.biglobe.ne.jp/~seki/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org
COMMENT=    Distributed Ruby

RUN_DEPENDS=    ${RUBY_SITELIBDIR}/acl.rb:${PORTSDIR}/security/ruby-acl

USE_RUBY=   yes

NO_BUILD=   yes

RUBY_RD_FILES=  doc/*.rd doc/ja/*.rd.ja

post-extract:
    ${MKDIR} ${WRKSRC}/acl/doc ${WRKSRC}/acl/lib ${WRKSRC}/acl/runit
    cd ${WRKSRC}; for f in */acl*; do ${MV} $$f ${WRKSRC}/acl/$$f; done
    ${MKDIR} ${WRKSRC}/sample/ja
    ${MV} ${WRKSRC}/sample/*.ja ${WRKSRC}/sample/ja/
    ${MKDIR} ${WRKSRC}/doc/ja
    ${MV} ${WRKSRC}/doc/*.ja ${WRKSRC}/doc/ja/

do-install:
    ${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR}/

post-install: doc-install

.include <bsd.port.mk>

doc-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
    ${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${RUBY_MODDOCDIR}
    ${CP} -R ${WRKSRC}/doc/* ${RUBY_MODDOCDIR}/
.endif