diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-11-20 16:12:04 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-11-20 16:12:04 +0000 |
commit | c7f32dceca80551074aead80bc26fa0d1c4a6331 (patch) | |
tree | 347053bc9a21d67c75598b87d3787a0c50866a1e /mail/gdesklets-imapmail | |
parent | 38f4ec86d56361c295286c697514bbfba73efac3 (diff) | |
download | ports-c7f32dceca80551074aead80bc26fa0d1c4a6331.tar.gz ports-c7f32dceca80551074aead80bc26fa0d1c4a6331.zip |
Add gdesklets-imapmail, a gdesklets display that show new/total email in an
IMAP mailbox.
PR: 59512
Submitted by: Franz Klammer <klammer@webonaut.com>
Notes
Notes:
svn path=/head/; revision=94492
Diffstat (limited to 'mail/gdesklets-imapmail')
-rw-r--r-- | mail/gdesklets-imapmail/Makefile | 54 | ||||
-rw-r--r-- | mail/gdesklets-imapmail/distinfo | 1 | ||||
-rw-r--r-- | mail/gdesklets-imapmail/files/patch-Install_imapmail_Sensor.bin | 19 | ||||
-rw-r--r-- | mail/gdesklets-imapmail/pkg-descr | 4 | ||||
-rw-r--r-- | mail/gdesklets-imapmail/pkg-message | 14 | ||||
-rw-r--r-- | mail/gdesklets-imapmail/pkg-plist | 35 |
6 files changed, 127 insertions, 0 deletions
diff --git a/mail/gdesklets-imapmail/Makefile b/mail/gdesklets-imapmail/Makefile new file mode 100644 index 000000000000..04c63605d786 --- /dev/null +++ b/mail/gdesklets-imapmail/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: gdesklets-imapmail +# Date created: 19 November 2003 +# Whom: Franz Klammer <klammer@webonaut.com> +# +# $FreeBSD$ +# + +PORTNAME= imapmail +PORTVERSION= 0.1 +CATEGORIES= mail gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets- +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= klammer@webonaut.com +COMMENT= Displays new/total mail count from IMAP mailbox + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets \ + ${DATADIR}/gdesklets/Sensors/IconButton/__init__.py:${PORTSDIR}/deskutils/gdesklets-sensor-psi_iconbutton + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_PYTHON= yes + +NAME= imapmail +DATADIR= ${PREFIX}/share/gnome +WRKSRC= ${WRKDIR}/${PORTNAME} + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${FIND} ${WRKDIR}/${PORTNAME} -name '*.bak' -delete + +do-install: + @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/dark-theme/gfx + @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/light-theme/gfx + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME} + @${INSTALL_DATA} ${WRKSRC}/dark-theme/*.display \ + ${DATADIR}/gdesklets/Displays/${NAME}/dark-theme/ + @${INSTALL_DATA} ${WRKSRC}/dark-theme/gfx/*.png \ + ${DATADIR}/gdesklets/Displays/${NAME}/dark-theme/gfx/ + @${INSTALL_DATA} ${WRKSRC}/light-theme/*.display \ + ${DATADIR}/gdesklets/Displays/${NAME}/light-theme/ + @${INSTALL_DATA} ${WRKSRC}/light-theme/gfx/*.png \ + ${DATADIR}/gdesklets/Displays/${NAME}/light-theme/gfx/ + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py \ + ${DATADIR}/gdesklets/Sensors/${NAME}/ + +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> diff --git a/mail/gdesklets-imapmail/distinfo b/mail/gdesklets-imapmail/distinfo new file mode 100644 index 000000000000..397797aa3dd3 --- /dev/null +++ b/mail/gdesklets-imapmail/distinfo @@ -0,0 +1 @@ +MD5 (imapmail_0.1.tar.bz2) = 1f1854e0342448a0a7d575da5a763679 diff --git a/mail/gdesklets-imapmail/files/patch-Install_imapmail_Sensor.bin b/mail/gdesklets-imapmail/files/patch-Install_imapmail_Sensor.bin new file mode 100644 index 000000000000..cb324c740f6e --- /dev/null +++ b/mail/gdesklets-imapmail/files/patch-Install_imapmail_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_imapmail_Sensor.bin.orig Tue Nov 18 21:44:00 2003 ++++ Install_imapmail_Sensor.bin Tue Nov 18 21:44:56 2003 +@@ -75,15 +75,9 @@ + else: + cmd = "mkdir -p %(destination)s; cd %(destination)s; " \ + "LANG=C tar -xzvf %(tmp)s 2>&1" +- fail, out = commands.getstatusoutput(cmd % vars()) ++ commands.getstatusoutput(cmd % vars()) + os.unlink(tmp) + +- if (fail): +- if (no_message): print ERROR_TAR + out +- else: message(ERROR_TAR + out, "error") +- sys.exit(1) +- +- print out + if (not list_only): + if (no_message): print SUCCESS + else: message(SUCCESS, "info") diff --git a/mail/gdesklets-imapmail/pkg-descr b/mail/gdesklets-imapmail/pkg-descr new file mode 100644 index 000000000000..637d6e46d56c --- /dev/null +++ b/mail/gdesklets-imapmail/pkg-descr @@ -0,0 +1,4 @@ +This desklet shows new/total mailcount from an IMAP INBOX. +Display and sensor (imapmail sensor) adapted from code by Psi. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/mail/gdesklets-imapmail/pkg-message b/mail/gdesklets-imapmail/pkg-message new file mode 100644 index 000000000000..9e3435b58986 --- /dev/null +++ b/mail/gdesklets-imapmail/pkg-message @@ -0,0 +1,14 @@ +## +To view all installed applets: + + ls ${PREFIX}/share/gnome/gdesklets/Displays + +To use those applets: + + gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display + +Replace ${name} with the correct name of the applets you want to use. + +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 --git a/mail/gdesklets-imapmail/pkg-plist b/mail/gdesklets-imapmail/pkg-plist new file mode 100644 index 000000000000..7309e843cf67 --- /dev/null +++ b/mail/gdesklets-imapmail/pkg-plist @@ -0,0 +1,35 @@ +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/bg.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-bottom.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-bottomleft.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-bottomright.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-left.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-right.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-top.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-topleft.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/border-topright.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/email.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/error.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx/nonewmail.png +share/gnome/gdesklets/Displays/imapmail/dark-theme/imapmail.display +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/bg.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-bottom.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-bottomleft.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-bottomright.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-left.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-right.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-top.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-topleft.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/border-topright.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/email.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/error.png +share/gnome/gdesklets/Displays/imapmail/light-theme/gfx/nonewmail.png +share/gnome/gdesklets/Displays/imapmail/light-theme/imapmail.display +share/gnome/gdesklets/Sensors/imapmail/__init__.py +share/gnome/gdesklets/Sensors/imapmail/__init__.pyc +share/gnome/gdesklets/Sensors/imapmail/__init__.pyo +@dirrm share/gnome/gdesklets/Displays/imapmail/dark-theme/gfx +@dirrm share/gnome/gdesklets/Displays/imapmail/dark-theme +@dirrm share/gnome/gdesklets/Displays/imapmail/light-theme/gfx +@dirrm share/gnome/gdesklets/Displays/imapmail/light-theme +@dirrm share/gnome/gdesklets/Displays/imapmail +@dirrm share/gnome/gdesklets/Sensors/imapmail |