aboutsummaryrefslogtreecommitdiff
path: root/x11-clocks/gdesklets-clock
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-18 04:06:29 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-18 04:06:29 +0000
commit1fe6f1816071f8a2d2341d069060b5737a4ab925 (patch)
treeff624df8d92f75b38a59581488e849262dfb7e01 /x11-clocks/gdesklets-clock
parent7e2fa65b61dcd6ab05b5c718433c16d0a8999385 (diff)
downloadports-1fe6f1816071f8a2d2341d069060b5737a4ab925.tar.gz
ports-1fe6f1816071f8a2d2341d069060b5737a4ab925.zip
Notes
Diffstat (limited to 'x11-clocks/gdesklets-clock')
-rw-r--r--x11-clocks/gdesklets-clock/Makefile27
-rw-r--r--x11-clocks/gdesklets-clock/pkg-plist1
2 files changed, 19 insertions, 9 deletions
diff --git a/x11-clocks/gdesklets-clock/Makefile b/x11-clocks/gdesklets-clock/Makefile
index 964a4996e6c0..3552164ff72d 100644
--- a/x11-clocks/gdesklets-clock/Makefile
+++ b/x11-clocks/gdesklets-clock/Makefile
@@ -5,10 +5,11 @@
# $FreeBSD$
#
-PORTNAME= gdesklets-clock
+PORTNAME= clock
PORTVERSION= 0.32
CATEGORIES= x11-clocks gnome
MASTER_SITES= http://gdesklets.gnomedesktop.org/files/
+PKGNAMEPREFIX= gdesklets-
DISTNAME= clock-desklet-${PORTVERSION}
MAINTAINER= mezz7@cox.net
@@ -18,20 +19,30 @@ RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutil
USE_BZIP2= yes
USE_X_PREFIX= yes
+
NAME= Clock
+DATADIR= ${PREFIX}/share/gnome
+LANG= de fr pt sq sr sr@Latn sv
do-build:
@${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
@${FIND} ${WRKSRC} -name '*.orig' -delete
do-install:
- @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}
- @${CP} ${WRKSRC}/*.display ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
- @${CP} -Rp ${WRKSRC}/gfx ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
- @${CP} -Rp ${WRKSRC}/${NAME} ${PREFIX}/share/gnome/gdesklets/Sensors/
- @${CP} ${WRKSRC}/README ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
- @${LN} -s ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/README \
- ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/README
+ @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx
+.for ii in ${LANG}
+ @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES
+ @${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/*.mo \
+ ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES/
+.endfor
+ @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${DATADIR}/gdesklets/Sensors/${NAME}/
+ @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.dat ${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}/gfx/*.xcf ${DATADIR}/gdesklets/Displays/${NAME}/gfx/
+ @${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}/gdesklets/Displays/${NAME}/
+ @${LN} -s ${DATADIR}/gdesklets/Displays/${NAME}/README \
+ ${DATADIR}/gdesklets/Sensors/${NAME}/README
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/x11-clocks/gdesklets-clock/pkg-plist b/x11-clocks/gdesklets-clock/pkg-plist
index 29a26dd01ad9..e75d46f8d072 100644
--- a/x11-clocks/gdesklets-clock/pkg-plist
+++ b/x11-clocks/gdesklets-clock/pkg-plist
@@ -11,7 +11,6 @@ share/gnome/gdesklets/Displays/Clock/osXclock.display
share/gnome/gdesklets/Displays/Clock/plainclock.display
share/gnome/gdesklets/Displays/Clock/pocket-watch.display
share/gnome/gdesklets/Displays/Clock/rafclock.display
-share/gnome/gdesklets/Sensors/Clock/ChangeLog
share/gnome/gdesklets/Sensors/Clock/README
share/gnome/gdesklets/Sensors/Clock/__init__.py
share/gnome/gdesklets/Sensors/Clock/locale/de/LC_MESSAGES/gdesklets.mo