aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/ruby-xmpp4r/Makefile
blob: b299962990ed2c79e7adf4491ce3148b2c935bac (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-xmpp4r
# Date created:             21 Nov 2005
# Whom:                 Stephan Maka <stephan@spaceboyz.net>
#
# $FreeBSD$
#

PORTNAME=   xmpp4r
PORTVERSION=    0.3.2
CATEGORIES= net-im ruby
MASTER_SITES=   http://download.gna.org/xmpp4r/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    ruby

MAINTAINER= ports@FreeBSD.org
COMMENT=    XMPP/Jabber library for Ruby

USE_RUBY=   YES
USE_RUBY_RDOC=  YES

LIB_FILES=  lib/xmpp4r.rb lib/xmpp4r/callbacks.rb lib/xmpp4r
DOCS=       ChangeLog LICENSE README UPDATING
EXAMPLES=   basic advanced

do-build:
.if !defined(NOPORTDOCS)
    cd ${BUILD_WRKSRC}; ${RUBY_RDOC} \
        -o rdoc \
        --all --fileboxes --inline-source --line-numbers \
        ${LIB_FILES}
.endif

do-install:
    cd ${INSTALL_WRKSRC}; ${CP} -R ${LIB_FILES} ${RUBY_SITELIBDIR}/

.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
    ${CP} -R ${WRKSRC}/rdoc/ ${RUBY_MODDOCDIR}/rdoc
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES}
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/${f}/
    ${CP} -R ${WRKSRC}/data/doc/xmpp4r/examples/${f}/ ${RUBY_MODEXAMPLESDIR}/${f}/
.endfor
.endif

.include <bsd.port.mk>