1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/sysutils/gdesklets-sysinfo/Makefile
2004-02-04 05:10:27 +00:00

54 lines
1.8 KiB
Makefile

# New ports collection makefile for: gdesklets-sysinfo
# Date created: 13 November 2003
# Whom: Franz Klammer <klammer@webonaut.com>
#
# $FreeBSD$
#
PORTNAME= sysinfo
PORTVERSION= 0.25
PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= http://gdesklets.gnomedesktop.org/files/
PKGNAMEPREFIX= gdesklets-
DISTNAME= SysInfo-${PORTVERSION}
MAINTAINER= klammer@webonaut.com
COMMENT= Desklet shows various information about your system
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_PYTHON= yes
NAME= SysInfo
DATADIR= ${PREFIX}/share/gnome
LANG= de es fr pt sq sr sr@Latn sv
PKGMESSAGE= ${WRKDIR}/pkg-message
WRKSRC= ${WRKDIR}/${NAME}
do-build:
@${WRKDIR}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
@${PATCH} -d ${WRKSRC} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py
@${FIND} ${WRKSRC} -name '*.orig' -delete
@${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
do-install:
@${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx
@${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}
@${INSTALL_DATA} ${WRKSRC}/*.display ${DATADIR}/gdesklets/Displays/${NAME}/
@${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${DATADIR}/gdesklets/Displays/${NAME}/gfx/
@${INSTALL_DATA} ${WRKSRC}/${NAME}/__init__.py ${DATADIR}/gdesklets/Sensors/${NAME}
.for ii in ${LANG}
@${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES
@${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/gdesklets.mo \
${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES/sysinfo-sensor.mo
.endfor
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>