aboutsummaryrefslogtreecommitdiffstats
path: root/irc/gdesklets-irc/Makefile
blob: cd330cdc78f3be2e8291ecf2d7820c05b8668a5f (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:    gdesklets-irc
# Date created:     6 May 2004
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   irc
PORTVERSION=    1.2
PORTREVISION=   8
CATEGORIES= irc gnome deskutils
MASTER_SITES=   http://gdesklets.gnomedesktop.org/files/
PKGNAMEPREFIX=  gdesklets-

MAINTAINER= perky@FreeBSD.org
COMMENT=    An IRC display and sensor for gdesklets

RUN_DEPENDS=    gdesklets:${PORTSDIR}/deskutils/gdesklets \
        ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted

USE_PYTHON= yes

NAME=       irc
DATADIR=    ${PREFIX}/share/gdesklets
LANG=       ko
WRKSRC=     ${WRKDIR}/${NAME}
SUB_FILES=  pkg-message
SUB_LIST=   NAME=${NAME}

do-build:
    @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}

do-install:
    @${MKDIR} ${DATADIR}/Displays/${NAME}/gfx
    @${MKDIR} ${DATADIR}/Sensors/${NAME}/gfx
    @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${DATADIR}/Sensors/${NAME}/
.for ii in ${LANG}
    @${MKDIR} ${DATADIR}/Sensors/${NAME}/locale/${ii}/LC_MESSAGES
    @${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/*.mo \
        ${DATADIR}/Sensors/${NAME}/locale/${ii}/LC_MESSAGES/
.endfor
    @${INSTALL_DATA} ${WRKSRC}/*.display ${DATADIR}/Displays/${NAME}/
    @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${DATADIR}/Displays/${NAME}/gfx/

post-install:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/Sensors/${NAME}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/Sensors/${NAME}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>