Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Mar 2004 17:34:08 -0600
From:      Jeremy Messenger <mezz7@cox.net>
To:        freebsd-gnome@freebsd.org
Subject:   Need the tester for gdesklets-starterbar on FreeBSD 4.x only..
Message-ID:  <opr4kg26zb8ckrg5@smtp.central.cox.net>

next in thread | raw e-mail | index | archive | help
------------q0qystuEALd0bueu55BEht
Content-Type: text/plain; format=flowed; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hello,

I need someone to do the test deskutils/gdesklets-starterbar on FreeBSD 
4.x, which Joe gave me the headup that misc/ossp-uuid went in the ports 
tree last month. The FreeBSD 5.x already has uuidgen, but not in 4.x. I 
almost forgot about it, so now I have finally do it.

Here's an attach of gdesklets-starterbar.diff.

Thanks!

Cheers,
Mezz


-- 
bsdforums.org 's moderator, mezz.
------------q0qystuEALd0bueu55BEht
Content-Disposition: attachment; filename=gdesklets-starterbar.diff
Content-Type: text/plain; name=gdesklets-starterbar.diff
Content-Transfer-Encoding: 8bit

diff -ur gdesklets-starterbar.orig/Makefile gdesklets-starterbar/Makefile
--- gdesklets-starterbar.orig/Makefile	Wed Feb  4 13:20:38 2004
+++ gdesklets-starterbar/Makefile	Mon Mar  8 17:27:18 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	starterbar
 PORTVERSION=	0.22.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	deskutils gnome
 MASTER_SITES=	http://gdesklets.gnomedesktop.org/files/
 PKGNAMEPREFIX= gdesklets-
@@ -19,17 +19,19 @@
 RUN_DEPENDS=	${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets
 
 USE_BZIP2=	yes
+USE_PYTHON=	yes
 USE_X_PREFIX=	yes
 USE_REINPLACE=	yes
 
 NAME=		StarterBar
 DATADIR=	${PREFIX}/share/gnome
+PKGMESSAGE=	${WRKDIR}/pkg-message
 LANG=		de fr pt sq sr sr@Latn sv
 
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 500000
-IGNORE=		"Requires FreeBSD 5.0 or later, because of uuidgen command first appeared in FreeBSD 5.0"
+RUN_DEPENDS+=	uuid:${PORTSDIR}/misc/ossp-uuid
 .endif
 
 do-build:
@@ -39,8 +41,13 @@
 	@${PATCH} ${WRKSRC}/${NAME}/__init__.py < ${FILESDIR}/${NAME}::__init__.py
 	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
 		${WRKSRC}/${NAME}/IconTheme.py
+.if ${OSVERSION} < 500000
+	@${REINPLACE_CMD} -e 's|uuidgen|uuid|g' \
+		${WRKSRC}/${NAME}/IconSet.py
+.endif
 	@${FIND} ${WRKSRC} -name '*.orig' -delete
 	@${FIND} ${WRKSRC} -name '*.bak' -delete
+	@${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g ; s|%%NAME%%|${NAME}|g' > ${PKGMESSAGE}
 
 do-install:
 	@${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx
@@ -60,6 +67,8 @@
 		${DATADIR}/gdesklets/Sensors/${NAME}/README
 
 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.post.mk>
diff -ur gdesklets-starterbar.orig/pkg-message gdesklets-starterbar/pkg-message
--- gdesklets-starterbar.orig/pkg-message	Fri Sep 26 06:14:37 2003
+++ gdesklets-starterbar/pkg-message	Mon Mar  8 17:20:51 2004
@@ -1,18 +1,16 @@
 ##
 To view the README:
 
-	cat ${PREFIX}/share/gnome/gdesklets/Displays/${name}/README
-	cat ${PREFIX}/share/gnome/gdesklets/Sensors/${name}/README
+	cat %%PREFIX%%/share/gnome/gdesklets/Displays/%%NAME%%/README
+	cat %%PREFIX%%/share/gnome/gdesklets/Sensors/%%NAME%%/README
 
 To view the installed applets:
-
-	ls ${PREFIX}/share/gnome/gdesklets/Displays
+i
+	ls %%PREFIX%%/share/gnome/gdesklets/Displays
 
 To use those applets:
 
-	gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display
-
-Replace the ${name} with the correct name to what you want to use applets.
+	gdesklets %%PREFIX%%/share/gnome/gdesklets/Displays/%%NAME%%/starterbar.display
 
 NOTE: Be sure to login as your user when you use the gdesklets command,
       as the configuration will be stored in the ~/.gdesklets/ directory.
diff -ur gdesklets-starterbar.orig/pkg-plist gdesklets-starterbar/pkg-plist
--- gdesklets-starterbar.orig/pkg-plist	Tue Nov 11 13:47:16 2003
+++ gdesklets-starterbar/pkg-plist	Mon Mar  8 17:17:31 2004
@@ -13,13 +13,25 @@
 share/gnome/gdesklets/Displays/StarterBar/starterbar.display
 share/gnome/gdesklets/Sensors/StarterBar/.order
 share/gnome/gdesklets/Sensors/StarterBar/Animator.py
+share/gnome/gdesklets/Sensors/StarterBar/Animator.pyc
+share/gnome/gdesklets/Sensors/StarterBar/Animator.pyo
 share/gnome/gdesklets/Sensors/StarterBar/ChangeLog
 share/gnome/gdesklets/Sensors/StarterBar/DesktopReader.py
+share/gnome/gdesklets/Sensors/StarterBar/DesktopReader.pyc
+share/gnome/gdesklets/Sensors/StarterBar/DesktopReader.pyo
 share/gnome/gdesklets/Sensors/StarterBar/Icon.py
+share/gnome/gdesklets/Sensors/StarterBar/Icon.pyc
+share/gnome/gdesklets/Sensors/StarterBar/Icon.pyo
 share/gnome/gdesklets/Sensors/StarterBar/IconSet.py
+share/gnome/gdesklets/Sensors/StarterBar/IconSet.pyc
+share/gnome/gdesklets/Sensors/StarterBar/IconSet.pyo
 share/gnome/gdesklets/Sensors/StarterBar/IconTheme.py
+share/gnome/gdesklets/Sensors/StarterBar/IconTheme.pyc
+share/gnome/gdesklets/Sensors/StarterBar/IconTheme.pyo
 share/gnome/gdesklets/Sensors/StarterBar/README
 share/gnome/gdesklets/Sensors/StarterBar/__init__.py
+share/gnome/gdesklets/Sensors/StarterBar/__init__.pyc
+share/gnome/gdesklets/Sensors/StarterBar/__init__.pyo
 share/gnome/gdesklets/Sensors/StarterBar/home.desktop
 share/gnome/gdesklets/Sensors/StarterBar/locale/de/LC_MESSAGES/gdesklets.mo
 share/gnome/gdesklets/Sensors/StarterBar/locale/fr/LC_MESSAGES/gdesklets.mo

------------q0qystuEALd0bueu55BEht--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opr4kg26zb8ckrg5>