aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ruby-irc/Makefile
blob: a2f33d37e2cc3f6d833d2249381693979e3b73bd (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
# New ports collection makefile for:    Ruby/IRC
# Date created:     19 Jan 2001
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   irc
PORTVERSION=    0.14
CATEGORIES= irc ruby
MASTER_SITES=   http://ibiblio.lsu.edu/main/pub/languages/ruby/contrib/ \
        ftp://ftp.tms.ru/pub/ruby/libraries/irc/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    IRC client framework for Ruby

USE_RUBY=   yes

NO_BUILD=   yes

DOCS_EN=    BUGS        ChangeLog   MANIFEST \
        NEWS        README      TODO
DOCS_JA=    MEMO.ja     README.ja   doc.ja/*

do-install:
    ${INSTALL_DATA} ${WRKSRC}/localize.rb ${RUBY_SITELIBDIR}
    ${MKDIR} ${RUBY_SITELIBDIR}/irc
    ${INSTALL_DATA} ${WRKSRC}/irc/*.rb ${RUBY_SITELIBDIR}/irc/
.if !defined(NOPORTDOCS)
    ${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
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/cpi
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja/cpi
    ${INSTALL_DATA} ${WRKSRC}/cpi/*.cpi ${RUBY_MODEXAMPLESDIR}/cpi/
    ${INSTALL_DATA} ${WRKSRC}/cpi.ja/*.cpi ${RUBY_MODEXAMPLESDIR}/ja/cpi/
    ${INSTALL_DATA} ${WRKSRC}/bot.rb ${RUBY_MODEXAMPLESDIR}/
    ${INSTALL_DATA} ${WRKSRC}/bot.ja.rb ${RUBY_MODEXAMPLESDIR}/ja/bot.rb
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/log
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja/log
.endif

.include <bsd.port.mk>