From c68eeb3c7ef4f51e434a3208dba36a5f2966f908 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Wed, 7 Jan 2004 19:23:44 +0000 Subject: [PATCH] Update to 0.25. PR: ports/61014 Submitted by: Franz Klammer (maintainer) --- sysutils/gdesklets-sysinfo/Makefile | 16 +- sysutils/gdesklets-sysinfo/distinfo | 2 +- .../files/patch-sysinfo.display | 59 ++++++++ .../files/postbuild-patch-__init__.py | 141 ++++++++++++++++-- sysutils/gdesklets-sysinfo/pkg-plist | 38 +++-- 5 files changed, 220 insertions(+), 36 deletions(-) create mode 100644 sysutils/gdesklets-sysinfo/files/patch-sysinfo.display diff --git a/sysutils/gdesklets-sysinfo/Makefile b/sysutils/gdesklets-sysinfo/Makefile index e1775e5f35a9..2c23425950f9 100644 --- a/sysutils/gdesklets-sysinfo/Makefile +++ b/sysutils/gdesklets-sysinfo/Makefile @@ -6,8 +6,7 @@ # PORTNAME= sysinfo -PORTVERSION= 0.23 -PORTREVISION= 1 +PORTVERSION= 0.25 CATEGORIES= sysutils gnome MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ PKGNAMEPREFIX= gdesklets- @@ -20,26 +19,25 @@ RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutil 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: - @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} - @${PATCH} -d ${WRKDIR} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py + @${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}/gfx + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME} @${INSTALL_DATA} ${WRKSRC}/*.display ${DATADIR}/gdesklets/Displays/${NAME}/ - @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DATADIR}/gdesklets/Displays/${NAME}/ - @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DATADIR}/gdesklets/Displays/${NAME}/ @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${DATADIR}/gdesklets/Displays/${NAME}/gfx/ @${INSTALL_DATA} ${WRKSRC}/${NAME}/__init__.py ${DATADIR}/gdesklets/Sensors/${NAME} - @${INSTALL_DATA} ${WRKSRC}/${NAME}/gfx/*.png ${DATADIR}/gdesklets/Sensors/${NAME}/gfx/ .for ii in ${LANG} @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES @${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/gdesklets.mo \ @@ -47,6 +45,8 @@ do-install: .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 diff --git a/sysutils/gdesklets-sysinfo/distinfo b/sysutils/gdesklets-sysinfo/distinfo index d9f235fa0828..b05e16bce0b4 100644 --- a/sysutils/gdesklets-sysinfo/distinfo +++ b/sysutils/gdesklets-sysinfo/distinfo @@ -1 +1 @@ -MD5 (SysInfo-0.23.tar.bz2) = 071151b2674937fe4c3f9fc8e0a8bff8 +MD5 (SysInfo-0.25.tar.bz2) = 6d6c6c21b0f73227c33649d07a88b4c6 diff --git a/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display b/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display new file mode 100644 index 000000000000..b1fe2bd0d03d --- /dev/null +++ b/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display @@ -0,0 +1,59 @@ +--- sysinfo.display.orig Tue Jan 6 11:29:16 2004 ++++ sysinfo.display Tue Jan 6 12:05:28 2004 +@@ -36,9 +36,8 @@ + +