aboutsummaryrefslogtreecommitdiffstats
path: root/irc/qwebirc/Makefile
blob: a905d2647edb32fdeec6c28575f33d62ebff3710 (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
# New ports collection makefile for:    qwebirc
# Date created:                         12 January 2010
# Whom:                                 Terry (tabmow@freenode.net)
#
# $FreeBSD$
#

PORTNAME=   qwebirc
PORTVERSION=    0.1
PORTREVISION=   1
CATEGORIES= irc www
MASTER_SITES=   https://bitbucket.org/slug/qwebirc/get/
DISTNAME=   stable
EXTRACT_SUFX=   .gz

MAINTAINER= tabmow@freenode.net
COMMENT=    Qwebirc is a fast, easy to use, free and open source Web IRC client

WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD=   yes

USE_PYTHON= yes
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twistedCore
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/web/__init__.py:${PORTSDIR}/www/py-twistedWeb
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/mail/__init__.py:${PORTSDIR}/mail/py-twistedMail
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/words/__init__.py:${PORTSDIR}/net-im/py-twistedWords
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/names/__init__.py:${PORTSDIR}/dns/py-twistedNames
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/twisted/conch/__init__.py:${PORTSDIR}/security/py-twistedConch

.include <bsd.port.pre.mk>

do-install:
    @${MKDIR} ${PREFIX}/www/${PORTNAME}
    (cd ${WRKDIR}/${PORTNAME} && \
    ${COPYTREE_SHARE} \* ${PREFIX}/www/${PORTNAME} )

post-install:
    @if [ ! -f ${PREFIX}/www/${PORTNAME}/config.py ]; then \
        ${CP} -p ${PREFIX}/www/${PORTNAME}/config.py.example ${PREFIX}/www/${PORTNAME}/config.py ; \
    fi
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}

.include <bsd.port.post.mk>