# ChangeLog for app-office/mozilla-sunbird-bin
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.1 2004/08/20 03:54:45 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.2 2004/11/18 19:03:06 agriffis Exp $
+
+*mozilla-sunbird-bin-0.2.20041112 (18 Nov 2004)
+
+ 18 Nov 2004; Aron Griffis <agriffis@gentoo.org>
+ +mozilla-sunbird-bin-0.2.20041112.ebuild:
+ Update to 0.2 beta #69100
*mozilla-sunbird-bin-0.2.20040812 (19 Aug 2004)
-MD5 faa43582d2d97de75a6338647c65a28c mozilla-sunbird-bin-0.2.20040812.ebuild 1819
-MD5 58c7e6a40c3d9fc05bdf7a99ced54a37 ChangeLog 553
+MD5 33c4f2dd83a114eb1a3da26078cc36d9 ChangeLog 725
MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
+MD5 faa43582d2d97de75a6338647c65a28c mozilla-sunbird-bin-0.2.20040812.ebuild 1819
+MD5 a39deba5648cfdff4c1ea033210764f7 mozilla-sunbird-bin-0.2.20041112.ebuild 1819
MD5 e0bba3fd8ec5b2e7a7894d053162e4ad files/digest-mozilla-sunbird-bin-0.2.20040812 80
-MD5 4496a3c35ce5936332ac41702c3e32f7 files/icon/mozillasunbird-bin.desktop 199
+MD5 f7ff8c3d10e4af0dc6b1cff980261255 files/digest-mozilla-sunbird-bin-0.2.20041112 80
MD5 fa424078d248f495300ecc507858beb2 files/icon/mozillasunbird-bin-icon.png 6418
+MD5 4496a3c35ce5936332ac41702c3e32f7 files/icon/mozillasunbird-bin.desktop 199
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.2.20041112.ebuild,v 1.1 2004/11/18 19:03:06 agriffis Exp $
+
+inherit mozilla-launcher
+
+MY_PV=${PV##*.} ; MY_PV=${MY_PV:0:4}-${MY_PV:4:2}-${MY_PV:6:2}
+DESCRIPTION="The Mozilla Sunbird Calendar"
+SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/calendar/sunbird/nightly/${MY_PV}/sunbird-i686-linux-gtk2+xft.tar.gz"
+HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html"
+# can't mirror because the name isn't unique
+RESTRICT="nostrip nomirror"
+
+KEYWORDS="-* ~x86 ~amd64"
+SLOT="0"
+LICENSE="MPL-1.1 NPL-1.1"
+IUSE=""
+S=${WORKDIR}/sunbird
+
+DEPEND="virtual/libc"
+RDEPEND="virtual/x11
+ x86? (
+ >=sys-libs/lib-compat-1.0-r2
+ >=x11-libs/gtk+-2.2
+ )
+ amd64? (
+ >=app-emulation/emul-linux-x86-baselibs-1.0
+ >=app-emulation/emul-linux-x86-gtklibs-1.0
+ )
+ virtual/x11
+ >=net-www/mozilla-launcher-1.18"
+
+src_install() {
+ # Install sunbird in /opt
+ dodir /opt
+ mv ${S} ${D}/opt/sunbird
+
+ # Fixing permissions
+ chown -R root:root ${D}/opt/sunbird
+
+ # mozilla-launcher-1.8 supports -bin versions
+ dodir /usr/bin
+ dosym /usr/libexec/mozilla-launcher /usr/bin/sunbird-bin
+
+ # Install icon and .desktop for menu entry
+ insinto /usr/share/pixmaps
+ doins ${FILESDIR}/icon/mozillasunbird-bin-icon.png
+ insinto /usr/share/applications
+ doins ${FILESDIR}/icon/mozillasunbird-bin.desktop
+}
+
+pkg_preinst() {
+ export MOZILLA_FIVE_HOME=${ROOT}/opt/sunbird
+
+ # Remove entire installed instance to prevent all kinds of
+ # problems... see bug 44772 for example
+ rm -rf "${MOZILLA_FIVE_HOME}"
+}
+
+pkg_postinst() {
+ export MOZILLA_FIVE_HOME=${ROOT}/opt/sunbird
+
+ update_mozilla_launcher_symlinks
+}
+
+pkg_postrm() {
+ update_mozilla_launcher_symlinks
+}