aboutsummaryrefslogtreecommitdiffstats
path: root/irc/py-gozerbot/Makefile
blob: 9b3f6c0e8ee3bda10846df7fe65aa9bd29ccaf4b (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
53
54
55
56
# New ports collection makefile for:    py-gozerbot
# Date created:     Wed Sep 19 00:04:39 CEST 2007
# Whom:         Sten Spans <sten@blinkenlights.nl>
#
# $FreeBSD$
#

PORTNAME=   gozerbot
PORTVERSION=    0.8.0.4
CATEGORIES= irc python
MASTER_SITES=   http://gozerbot.org/media/tarball/ \
        ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   gozerbot-${PORTVERSION}

MAINTAINER= sten@blinkenlights.nl
COMMENT=    Gozerbot - A modular Python IRC and Jabber bot

USE_PYTHON= 2.4+
USE_PYDISTUTILS=    yes
SUB_FILES=      pkg-message

OPTIONS=    XMPP  "Jabber functions" off \
        MYSQL "Mysql functions" off
OPTIONSFILE=    ${PORT_DBDIR}/py-${PORTNAME}/options

MAN1=       gozerbot.1
DOCS=BASIC COLLECTIVE FAQ FLEET FLOW JABBER \
    OPER PROGRAMPLUGIN RELAY RSS \
    THNX TOURDECODE UDP UPGRADE USER WEBSERVER

RUN_DEPENDS+=   ${LOCALBASE}/bin/gpg:${PORTSDIR}/security/gnupg

post-install:
    @${CAT} ${PKGMESSAGE}

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
    @${INSTALL_MAN} ${WRKSRC}/man/gozerbot.1.FreeBSD ${PREFIX}/man/man1/gozerbot.1

.include <bsd.port.pre.mk>

.if defined(WITH_MYSQL)
RUN_DEPENDS+=${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
.endif

.if defined(WITH_XMPP)
RUN_DEPENDS+=${PYTHON_SITELIBDIR}/xmpp/__init__.py:${PORTSDIR}/net-im/py-xmpppy
.endif

.include <bsd.port.post.mk>