sync with latest thunderbird in ::mozilla

This commit is contained in:
Daniel Mierswa 2009-06-14 12:53:57 +02:00
parent a191dea3c2
commit b0a83745ac
4 changed files with 70 additions and 51 deletions

View file

@ -3,7 +3,12 @@
require multilib require multilib
export_exlib_phases src_prepare export_exlib_phases src_unpack src_prepare
mozilla_src_unpack() {
default
mkdir -p "${WORK}" || die "creating ${WORK} failed"
}
mozilla_src_prepare() { mozilla_src_prepare() {
default default

View file

@ -0,0 +1,15 @@
Upstream: Unknown
Source: Daniel Mierswa <impulze@impulze.org>
Reason: GCC errors out since #elif is empty
--- ./toolkit/xre/nsAppRunner.cpp.orig 2009-06-10 05:02:45.000000000 +0200
+++ ./toolkit/xre/nsAppRunner.cpp 2009-06-10 05:02:50.000000000 +0200
@@ -1370,7 +1370,7 @@
if (NS_FAILED(rv))
return rv;
-#elif
+#else
#error Oops, you need platform-specific code here
#endif

View file

@ -4,25 +4,21 @@
# this is a copy of Bernd Steinhausers exheres in mozilla.git # this is a copy of Bernd Steinhausers exheres in mozilla.git
# with added enigmail support # with added enigmail support
require mozilla require mozilla multilib
ENIGMAIL_VERSION="0.95.7" ENIGMAIL_PV=0.95.7
ENIGMAIL_TARBALL="enigmail-${ENIGMAIL_VERSION}.tar.gz"
SUMMARY="Mozilla's standalone mail client" SUMMARY="Mozilla's standalone mail client"
DESCRIPTION=" DESCRIPTION="
" "
HOMEPAGE="" HOMEPAGE="http://www.mozilla.com/en-US/products/thunderbird/"
DOWNLOADS=" DOWNLOADS="ftp://ftp.mozilla.org/pub/${PN}/releases/${PV}/source/${PNV}-source.tar.bz2
ftp://ftp.mozilla.org/pub/${PN}/releases/${PV}/source/${PNV}-source.tar.bz2 enigmail? ( http://www.mozilla-enigmail.org/download/source/enigmail-${ENIGMAIL_PV}.tar.gz )"
enigmail? ( UPSTREAM_RELEASE_NOTES="${HOMEPAGE}/${PV}/releasenotes/"
http://www.mozilla-enigmail.org/download/source/${ENIGMAIL_TARBALL}
)
"
LICENCES="MPL" LICENCES="MPL-1.1"
SLOT="0" SLOT="0"
PLATFORMS="~amd64" PLATFORMS="~amd64 ~x86"
MYOPTIONS="bindist enigmail ldap svg xinerama" MYOPTIONS="bindist enigmail ldap svg xinerama"
# libXIE? # libXIE?
@ -31,17 +27,16 @@ MYOPTIONS="bindist enigmail ldap svg xinerama"
# AC_CHECK_HEADER(X11/extensions/XIElib.h) # AC_CHECK_HEADER(X11/extensions/XIElib.h)
# media-libs/libpng # media-libs/libpng
# dev-libs/nss
DEPENDENCIES=" DEPENDENCIES="
build: build:
app-arch/unzip
dev-util/pkg-config dev-util/pkg-config
x11-proto/xextproto x11-proto/xextproto
xinerama? ( x11-proto/xineramaproto ) xinerama? ( x11-proto/xineramaproto )
build+run: build+run:
dev-libs/libIDL dev-libs/libIDL
dev-libs/nspr dev-libs/nspr
dev-libs/nss
media-libs/freetype media-libs/freetype
media-libs/jpeg media-libs/jpeg
x11-libs/pango x11-libs/pango
@ -55,85 +50,89 @@ DEPENDENCIES="
xinerama? ( x11-libs/libXinerama ) xinerama? ( x11-libs/libXinerama )
" "
WORK="${WORKBASE}"/mozilla WORK="${WORKBASE}"/build/mail
ECONF_SOURCE="${WORKBASE}"/mozilla ECONF_SOURCE="${WORKBASE}"/mozilla
export MOZILLA_OFFICIAL=1 export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1 export BUILD_OFFICIAL=1
enigmail_src_prepare() {
mv "${WORKBASE}/enigmail" "${WORKBASE}/mozilla/mailnews/extensions/enigmail/" || die "moving failed"
cd "${WORKBASE}/mozilla/mailnews/extensions/enigmail/" || die "cd failed"
expatch -p6 "${FILES}/enigmail-${ENIGMAIL_PV}-visibility_workaround.patch"
}
enigmail_src_configure() {
cd "${WORKBASE}/mozilla/mailnews/extensions/enigmail/" || die "cd failed"
./makemake -r -o "${WORK}" || die "makemake -r failed"
}
enigmail_src_compile() {
emake -C mailnews/extensions/enigmail/
}
enigmail_src_install() {
# taken from enigmail-0.95.7-r2.ebuild
local em_id=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${WORKBASE}/mozilla/mailnews/extensions/enigmail/package/install.rdf")
emake -C mailnews/extensions/enigmail/ xpi
unzip -d "${IMAGE}/usr/$(get_libdir)/${PN}/extensions/${em_id}" "${WORK}/dist/bin"/*xpi || die "unzip failed"
}
src_prepare() { src_prepare() {
mozilla_src_prepare mozilla_src_prepare
sed \ sed -e "/^mozappdir/ c mozappdir = /usr/$(get_libdir)/${PN}" \
-e "/^mozappdir/ c mozappdir = /usr/$(get_libdir)/${PN}" \ -i "${WORKBASE}"/mozilla/config/autoconf.mk.in || die "mozappdir sed failed."
-i "${WORKBASE}"/mozilla/config/autoconf.mk.in \
|| die "mozappdir sed failed."
if option enigmail ; then cd "${ECONF_SOURCE}" || die "cd ${ECONF_SOURCE} failed"
mv "${WORKBASE}/enigmail" mailnews/extensions \ expatch "${FILES}/${PNV}-nsAppRunner_empty_elif.patch"
|| die "mv enigmail failed"
cd mailnews/extensions/enigmail \ option enigmail && enigmail_src_prepare
|| die "cd enigmail failed"
expatch -p6 "${FILES}/enigmail_visibility_workaround.patch"
fi
} }
src_configure() { src_configure() {
mkdir -p "${WORK}"
cd "${WORK}"
export MOZ_OBJDIR=@TOPSRCDIR@/../build export MOZ_OBJDIR=@TOPSRCDIR@/../build
export MOZ_CO_PROJECT=browser export MOZ_CO_PROJECT=mail
export MOZ_BUILD_PROJECTS=browser export MOZ_BUILD_PROJECTS=mail
econf \ econf \
--enable-application=mail \ --enable-application=mail \
--enable-crypto \ --enable-crypto \
--enable-freetype \ --enable-freetype \
--enable-optimize \
--enable-system-cairo \ --enable-system-cairo \
--disable-mochitest \ --disable-mochitest \
--disable-gnomeui \ --disable-gnomeui \
--disable-gnomevfs \ --disable-gnomevfs \
--disable-javaxpcom \ --disable-javaxpcom \
--disable-optimize \
--disable-strip \ --disable-strip \
--disable-xprint \ --disable-xprint \
--with-system-nspr \ --with-system-nspr \
--with-system-nss \
--with-system-jpeg \ --with-system-jpeg \
--with-system-png \ --with-system-png \
--with-system-zlib \ --with-system-zlib \
--with-libIDL \ --with-libIDL \
--with-x \ --with-x \
--without-system-nss \
$(option_enable ldap) \ $(option_enable ldap) \
$(option_enable ldap ldap-experimental) \ $(option_enable ldap ldap-experimental) \
$(option_enable !bindist official-branding) \ $(option_enable !bindist official-branding) \
$(option_enable svg) \ $(option_enable svg) \
--with-default-mozilla-five-home=/usr/$(get_libdir)/${PN} \ --with-default-mozilla-five-home=/usr/$(get_libdir)/${PN} \
--with-distribution-id=org.exherbo --with-distribution-id=org.exherbo
option enigmail && enigmail_src_configure
} }
src_compile() { src_compile() {
default default
if option enigmail ; then
cd mailnews/extensions/enigmail \ option enigmail && enigmail_src_compile
|| die "cd enigmail failed"
./makemake -r \
|| die "./makemake -r failed"
emake \
|| die "emake in enigmail failed"
fi
} }
src_install() { src_install() {
default default
if option enigmail ; then
local enigmail_path="mailnews/extensions/enigmail"
local install_rdf="${enigmail_path}/package/install.rdf"
# taken from enigmail-0.95.7-r2.ebuild
local em_id=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' ${install_rdf})
local extension_path="/usr/$(get_libdir)/${PN}/extensions/${em_id}"
emake -C "${enigmail_path}" xpi option enigmail && enigmail_src_install
unzip -d "${IMAGE}/${extension_path}" "${WORK}/dist/bin"/*xpi
fi
} }