summaryrefslogtreecommitdiff
path: root/mail/thunderbird
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2008-12-21 17:04:40 +0000
committerjmcneill <jmcneill@pkgsrc.org>2008-12-21 17:04:40 +0000
commit2ed3fcbe6c871cd5aaa441a11bcc4721d42dea19 (patch)
tree7fc0c4dd561b7fc48a8f5116fa4a4aaf0f4af956 /mail/thunderbird
parentc1bee47fed13a4c087a3055210e65755ddddf65c (diff)
downloadpkgsrc-2ed3fcbe6c871cd5aaa441a11bcc4721d42dea19.tar.gz
Add .desktop file for GNOME/KDE/Xfce integration, bump PKGREVISION.
ok wiz@
Diffstat (limited to 'mail/thunderbird')
-rw-r--r--mail/thunderbird/Makefile3
-rw-r--r--mail/thunderbird/Makefile-thunderbird.common12
-rw-r--r--mail/thunderbird/PLIST4
-rw-r--r--mail/thunderbird/files/thunderbird.desktop.in11
4 files changed, 27 insertions, 3 deletions
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile
index 0bfea39c0b4..05c656b3469 100644
--- a/mail/thunderbird/Makefile
+++ b/mail/thunderbird/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.30 2007/11/15 15:05:22 tron Exp $
+# $NetBSD: Makefile,v 1.31 2008/12/21 17:04:40 jmcneill Exp $
MOZILLA= thunderbird
+PKGREVISION= 1
COMMENT= Mozilla mail client
MOZILLA_USE_GTK2= # yes
diff --git a/mail/thunderbird/Makefile-thunderbird.common b/mail/thunderbird/Makefile-thunderbird.common
index 5befaddbdbb..ac3a0ae78bc 100644
--- a/mail/thunderbird/Makefile-thunderbird.common
+++ b/mail/thunderbird/Makefile-thunderbird.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile-thunderbird.common,v 1.39 2008/12/19 07:59:26 roy Exp $
+# $NetBSD: Makefile-thunderbird.common,v 1.40 2008/12/21 17:04:40 jmcneill Exp $
# used by mail/thunderbird/Makefile
# used by mail/thunderbird-gtk1/Makefile
@@ -29,6 +29,16 @@ INSTALL_TEMPLATES+= ${.CURDIR}/../../mail/thunderbird/INSTALL
post-install:
${FIND} ${DESTDIR:Q}${PREFIX:Q}/lib/${MOZILLA}/defaults -type f -exec ${CHMOD} u+w {} \;
+ ${SED} \
+ -e 's|@MOZILLA@|${MOZILLA}|g' \
+ -e 's|@MOZILLA_NAME@|Thunderbird|g' \
+ -e 's|@MOZILLA_ICON@|${MOZILLA}.xpm|g' \
+ < ${.CURDIR}/../../mail/thunderbird/files/thunderbird.desktop.in \
+ > ${WRKDIR}/${MOZILLA}.desktop
+ ${INSTALL_DATA} ${WRKDIR}/${MOZILLA}.desktop \
+ ${DESTDIR:Q}${PREFIX:Q}/share/applications/${MOZILLA}.desktop
+ ${LN} -sf ${DESTDIR:Q}${PREFIX:Q}/lib/${MOZILLA}/chrome/icons/default/default.xpm \
+ ${DESTDIR:Q}${PREFIX:Q}/share/pixmaps/${MOZILLA}.xpm
.include "../../mk/bsd.fast.prefs.mk"
diff --git a/mail/thunderbird/PLIST b/mail/thunderbird/PLIST
index f3c4f8bb2de..0f621ada9c6 100644
--- a/mail/thunderbird/PLIST
+++ b/mail/thunderbird/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.24 2008/08/22 09:42:15 ghen Exp $
+@comment $NetBSD: PLIST,v 1.25 2008/12/21 17:04:40 jmcneill Exp $
bin/${MOZILLA}
@comment begin PROGRAMS
lib/${MOZILLA}/${MOZILLA_BIN}
@@ -2847,6 +2847,8 @@ include/${MOZILLA}/nss/sslproto.h
include/${MOZILLA}/nss/sslt.h
include/${MOZILLA}/nss/watcomfx.h
@comment end INCLUDE-PUBLIC
+share/applications/${MOZILLA}.desktop
+share/pixmaps/${MOZILLA}.xpm
@exec env LD_LIBRARY_PATH=%D/lib/${MOZILLA}:%D/lib MOZILLA_FIVE_HOME=%D/lib/${MOZILLA} %D/lib/${MOZILLA}/regxpcom
@unexec ${RM} -f %D/lib/${MOZILLA}/chrome/app-chrome.manifest
@unexec ${RM} %D/lib/${MOZILLA}/components/compreg.dat
diff --git a/mail/thunderbird/files/thunderbird.desktop.in b/mail/thunderbird/files/thunderbird.desktop.in
new file mode 100644
index 00000000000..4b327acadac
--- /dev/null
+++ b/mail/thunderbird/files/thunderbird.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=@MOZILLA_NAME@
+GenericName=Mail Client
+Comment=Mail client and News Reader
+Exec=@MOZILLA@ %U
+Icon=@MOZILLA_ICON@
+StartupNotify=false
+Terminal=false
+Type=Application
+Categories=Application;Network;