blob: 5fbe7718bbdae2172bd65c0b2b075bb425d90405 (
plain)
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
|
# $FreeBSD$
PORTNAME= clock
PORTVERSION= 0.32
PORTREVISION= 14
CATEGORIES= x11-clocks gnome
MASTER_SITES= http://www.gdesklets.info/archive/
PKGNAMEPREFIX= gdesklets-
DISTNAME= clock-desklet-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Various clock displays for Gnome 2.x
RUN_DEPENDS= gdesklets:${PORTSDIR}/deskutils/gdesklets
USES= python:2
SUB_FILES= pkg-message
SUB_LIST= NAME="${NAME}"
DATADIR= ${PREFIX}/share/gdesklets
NAME= Clock
LANG= de fr pt sq sr sr@Latn sv
do-build:
@${PYTHON_CMD} ${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
@${PATCH} ${WRKSRC}/Clock/__init__.py < ${FILESDIR}/Clock::__init__.py
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/Displays/${NAME}
${INSTALL_DATA} ${WRKSRC}/*.display ${STAGEDIR}${DATADIR}/Displays/${NAME}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DATADIR}/Displays/${NAME}
@${MKDIR} ${STAGEDIR}${DATADIR}/Displays/${NAME}/gfx
${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${STAGEDIR}${DATADIR}/Displays/${NAME}/gfx
${INSTALL_DATA} ${WRKSRC}/gfx/*.xcf ${STAGEDIR}${DATADIR}/Displays/${NAME}/gfx
@${MKDIR} ${STAGEDIR}${DATADIR}/Sensors/${NAME}
${INSTALL_DATA} ${WRKSRC}/${NAME}/*.dat ${STAGEDIR}${DATADIR}/Sensors/${NAME}
${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${STAGEDIR}${DATADIR}/Sensors/${NAME}
.for ii in ${LANG}
@${MKDIR} ${STAGEDIR}${DATADIR}/Sensors/${NAME}/locale/${ii}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/*.mo \
${STAGEDIR}${DATADIR}/Sensors/${NAME}/locale/${ii}/LC_MESSAGES
.endfor
@${LN} -s ${DATADIR}/Displays/${NAME}/README \
${STAGEDIR}${DATADIR}/Sensors/${NAME}/README
.include <bsd.port.mk>
|