diff options
author | pav <pav@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-26 22:02:05 +0800 |
---|---|---|
committer | pav <pav@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-26 22:02:05 +0800 |
commit | c210f63feeaac24055f52271b5e14aec2d9bef16 (patch) | |
tree | 755ec8bbd029ffff41bd03731dcdd569ca293cd3 /mail | |
parent | 902c17764a02a8894cdc2b1017889a3c5295d913 (diff) | |
download | marcuscom-ports-c210f63feeaac24055f52271b5e14aec2d9bef16.tar.gz marcuscom-ports-c210f63feeaac24055f52271b5e14aec2d9bef16.tar.zst marcuscom-ports-c210f63feeaac24055f52271b5e14aec2d9bef16.zip |
Add jylefort's mail-notification updated for Evolution 2.6
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5978 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-notification/Makefile | 106 | ||||
-rw-r--r-- | mail/mail-notification/distinfo | 3 | ||||
-rw-r--r-- | mail/mail-notification/files/patch-src_mn-gmail-mailbox-properties.c | 11 | ||||
-rw-r--r-- | mail/mail-notification/files/patch-src_mn-imap-mailbox.c | 16 | ||||
-rw-r--r-- | mail/mail-notification/pkg-descr | 24 | ||||
-rw-r--r-- | mail/mail-notification/pkg-plist | 43 |
6 files changed, 203 insertions, 0 deletions
diff --git a/mail/mail-notification/Makefile b/mail/mail-notification/Makefile new file mode 100644 index 000000000..0475464d9 --- /dev/null +++ b/mail/mail-notification/Makefile @@ -0,0 +1,106 @@ +# New ports collection makefile for: mail-notification +# Date created: 18 Sep 2003 +# Whom: Jean-Yves Lefort <jylefort@brutele.be> +# +# $FreeBSD$ +# + +PORTNAME= mail-notification +PORTVERSION= 2.0 +PORTREVISION= 3 +CATEGORIES= mail ipv6 +MASTER_SITES= ${MASTER_SITE_SAVANNAH} +MASTER_SITE_SUBDIR= mailnotify + +MAINTAINER= jylefort@FreeBSD.org +COMMENT= A mail notification for freedesktop.org-compliant system trays + +USE_REINPLACE= yes +USE_X_PREFIX= yes +USE_GNOME= gnomeprefix gnomehack eel2 +GNU_CONFIGURE= yes +USE_GMAKE= yes +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +GCONF_SCHEMAS= mail-notification.schemas +INSTALLS_OMF= yes + +OPTIONS= MBOX "mbox support" on \ + MH "MH support" on \ + MAILDIR "Maildir support" on \ + POP3 "POP3 support" on \ + IMAP "IMAP support" on \ + SSL "SSL/TLS support" on \ + SASL "SASL authentication support" on \ + GMAIL "Gmail support" on \ + EVOLUTION "Evolution support" off \ + SYLPHEED "Sylpheed support" on + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_MBOX) +CONFIGURE_ARGS+= --disable-mbox +.endif +.if defined(WITHOUT_MH) +CONFIGURE_ARGS+= --disable-mh +.endif +.if defined(WITHOUT_MAILDIR) +CONFIGURE_ARGS+= --disable-maildir +.endif +.if defined(WITHOUT_POP3) +CONFIGURE_ARGS+= --disable-pop3 +.endif +.if defined(WITHOUT_IMAP) +CONFIGURE_ARGS+= --disable-imap +.endif +.if defined(WITHOUT_POP3) && defined(WITHOUT_IMAP) +# only POP3 and IMAP use SSL and SASL +WITHOUT_SSL= yes +WITHOUT_SASL= yes +.endif +.if defined(WITHOUT_GMAIL) +CONFIGURE_ARGS+= --disable-gmail +PLIST_SUB+= GMAIL="@comment " +.else +PLIST_SUB+= GMAIL="" +.endif +.if defined(WITHOUT_EVOLUTION) +CONFIGURE_ARGS+= --disable-evolution +PLIST_SUB+= EVOLUTION="@comment " +.else +BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/mail/evolution:patch \ + ${X11BASE}/libdata/pkgconfig/evolution-plugin-2.6.pc:${PORTSDIR}/mail/evolution +RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/evolution-plugin-2.6.pc:${PORTSDIR}/mail/evolution +EVOLUTION_WRKSRC!= cd ${PORTSDIR}/mail/evolution && ${MAKE} -V WRKSRC +CONFIGURE_ARGS+= --with-evolution-source-dir="${EVOLUTION_WRKSRC}" +PLIST_SUB+= EVOLUTION="" LITERAL_PREFIX="${PREFIX}" +.endif +.if defined(WITHOUT_SYLPHEED) +CONFIGURE_ARGS+= --disable-sylpheed +.endif +.if defined(WITH_MBOX) \ + || defined(WITH_MH) \ + || defined(WITH_MAILDIR) \ + || defined(WITH_POP3) \ + || defined(WITH_IMAP) \ + || defined(WITH_SYLPHEED) +LIB_DEPENDS+= gmime-2.0:${PORTSDIR}/mail/gmime2 +.endif +.if defined(WITHOUT_SSL) +CONFIGURE_ARGS+= --disable-ssl +.else +# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk +.include "${PORTSDIR}/Mk/bsd.openssl.mk" +.endif +.if defined(WITHOUT_SASL) +CONFIGURE_ARGS+= --disable-sasl +.else +LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|evolution-plugin-2.2|evolution-plugin-2.6|' \ + ${WRKSRC}/configure + +.include <bsd.port.post.mk> diff --git a/mail/mail-notification/distinfo b/mail/mail-notification/distinfo new file mode 100644 index 000000000..b37e84f9b --- /dev/null +++ b/mail/mail-notification/distinfo @@ -0,0 +1,3 @@ +MD5 (mail-notification-2.0.tar.gz) = 56ef7401aba1cb27d881fb0f33a3248d +SHA256 (mail-notification-2.0.tar.gz) = e4ec2fe27b3d399a6289857ef5a33e564bfe641a829f597e9dac753ae643339b +SIZE (mail-notification-2.0.tar.gz) = 869151 diff --git a/mail/mail-notification/files/patch-src_mn-gmail-mailbox-properties.c b/mail/mail-notification/files/patch-src_mn-gmail-mailbox-properties.c new file mode 100644 index 000000000..1ae37750b --- /dev/null +++ b/mail/mail-notification/files/patch-src_mn-gmail-mailbox-properties.c @@ -0,0 +1,11 @@ +--- src/mn-gmail-mailbox-properties.c.orig Tue Aug 9 22:01:56 2005 ++++ src/mn-gmail-mailbox-properties.c Wed Aug 10 14:29:05 2005 +@@ -180,7 +180,7 @@ + GTK_ENTRY(auth->password_entry), + NULL); + +- g_signal_connect(auth->username_entry, "changed", G_CALLBACK(mn_mailbox_properties_notify_default_name), self); ++ g_signal_connect_swapped(auth->username_entry, "changed", G_CALLBACK(mn_mailbox_properties_notify_default_name), self); + + #line 186 "mn-gmail-mailbox-properties.c" + } diff --git a/mail/mail-notification/files/patch-src_mn-imap-mailbox.c b/mail/mail-notification/files/patch-src_mn-imap-mailbox.c new file mode 100644 index 000000000..7856dd51e --- /dev/null +++ b/mail/mail-notification/files/patch-src_mn-imap-mailbox.c @@ -0,0 +1,16 @@ +--- src/mn-imap-mailbox.c.orig Tue Aug 9 22:01:56 2005 ++++ src/mn-imap-mailbox.c Wed Jan 25 19:22:48 2006 +@@ -1646,7 +1646,12 @@ + */ + if (mn_ascii_validate(input)) + { +- if (g_str_has_prefix(input, "+ ")) ++ if (! strcmp(input, "+")) ++ { ++ response = g_new0(MNClientSessionResponse, 1); ++ response->continuation = g_strdup(""); ++ } ++ else if (g_str_has_prefix(input, "+ ")) + { + response = g_new0(MNClientSessionResponse, 1); + response->continuation = g_strdup(input + 2); diff --git a/mail/mail-notification/pkg-descr b/mail/mail-notification/pkg-descr new file mode 100644 index 000000000..3301a81ad --- /dev/null +++ b/mail/mail-notification/pkg-descr @@ -0,0 +1,24 @@ +Mail Notification is a status icon (aka tray icon) that informs you if you +have new mail. + +It works with system trays implementing the freedesktop.org System Tray +Specification, such as the GNOME Panel Notification Area, the Xfce +Notification Area and the KDE System Tray. + +Mail Notification features include: + + * multiple mailbox support + * mbox, MH, Maildir, POP3, IMAP, Gmail, Evolution and Sylpheed support + * SASL authentication support + * APOP authentication support + * SSL/TLS support + * automatic detection of mailbox format + * immediate notification (the status icon is updated immediately or + within seconds after a mailbox changes) + * a mail summary + * HIG 2.0 compliance + +WWW: http://www.nongnu.org/mailnotify/ + +- Jean-Yves Lefort +jylefort@FreeBSD.org diff --git a/mail/mail-notification/pkg-plist b/mail/mail-notification/pkg-plist new file mode 100644 index 000000000..deb9150db --- /dev/null +++ b/mail/mail-notification/pkg-plist @@ -0,0 +1,43 @@ +bin/mail-notification +etc/sound/events/mail-notification.soundlist +libdata/bonobo/servers/GNOME_MailNotification.server +%%EVOLUTION%%libdata/bonobo/servers/GNOME_MailNotification_Evolution.server +share/gnome/applications/mail-notification-properties.desktop +share/gnome/applications/mail-notification.desktop +share/gnome/help/mail-notification/C/documentation-license.xml +share/gnome/help/mail-notification/C/figures/mail.png +share/gnome/help/mail-notification/C/figures/mailbox-emblem-error.png +share/gnome/help/mail-notification/C/figures/mailbox-emblem-polled.png +share/gnome/help/mail-notification/C/figures/mailbox-emblem-unknown.png +share/gnome/help/mail-notification/C/mail-notification.xml +share/gnome/help/mail-notification/C/software-license.xml +share/gnome/mail-notification/ui/edit-toolbars-dialog.glade +%%GMAIL%%share/gnome/mail-notification/ui/gmail.png +share/gnome/mail-notification/ui/hand-open.png +share/gnome/mail-notification/ui/logo.png +share/gnome/mail-notification/ui/mail-summary-popup.glade +share/gnome/mail-notification/ui/mailbox-properties-dialog.glade +share/gnome/mail-notification/ui/main-window.png +share/gnome/mail-notification/ui/menus.xml +share/gnome/mail-notification/ui/properties-dialog.glade +share/gnome/mail-notification/ui/toolbars.xml +share/gnome/omf/mail-notification/mail-notification-C.omf +share/gnome/pixmaps/mail-notification.png +share/locale/bg/LC_MESSAGES/mail-notification.mo +share/locale/de/LC_MESSAGES/mail-notification.mo +share/locale/fr/LC_MESSAGES/mail-notification.mo +share/locale/pl/LC_MESSAGES/mail-notification.mo +share/locale/pt/LC_MESSAGES/mail-notification.mo +share/locale/ru/LC_MESSAGES/mail-notification.mo +share/locale/sr/LC_MESSAGES/mail-notification.mo +share/locale/sr@Latn/LC_MESSAGES/mail-notification.mo +%%EVOLUTION%%@cwd %%X11BASE%% +%%EVOLUTION%%lib/evolution/2.6/plugins/liborg-gnome-mail-notification.so +%%EVOLUTION%%lib/evolution/2.6/plugins/org-gnome-mail-notification.eplug +%%EVOLUTION%%@cwd %%LITERAL_PREFIX%% +@dirrm share/gnome/omf/mail-notification +@dirrm share/gnome/mail-notification/ui +@dirrm share/gnome/mail-notification +@dirrm share/gnome/help/mail-notification/C/figures +@dirrm share/gnome/help/mail-notification/C +@dirrm share/gnome/help/mail-notification |