2009-01-03 04:02:40 +01:00
|
|
|
# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
# this is a copy of Bernd Steinhausers exheres in mozilla.git
|
|
|
|
# with added enigmail support
|
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
require mozilla multilib
|
2009-01-03 04:02:40 +01:00
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
ENIGMAIL_PV=0.95.7
|
2009-01-03 04:02:40 +01:00
|
|
|
|
|
|
|
SUMMARY="Mozilla's standalone mail client"
|
|
|
|
DESCRIPTION="
|
|
|
|
"
|
2009-06-14 12:53:57 +02:00
|
|
|
HOMEPAGE="http://www.mozilla.com/en-US/products/thunderbird/"
|
|
|
|
DOWNLOADS="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 )"
|
|
|
|
UPSTREAM_RELEASE_NOTES="${HOMEPAGE}/${PV}/releasenotes/"
|
2009-01-03 04:02:40 +01:00
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
LICENCES="MPL-1.1"
|
2009-01-03 04:02:40 +01:00
|
|
|
SLOT="0"
|
2009-06-14 12:53:57 +02:00
|
|
|
PLATFORMS="~amd64 ~x86"
|
2009-01-03 04:02:40 +01:00
|
|
|
MYOPTIONS="bindist enigmail ldap svg xinerama"
|
|
|
|
|
|
|
|
# libXIE?
|
|
|
|
# AC_CHECK_LIB(XIE, XieFloGeometry, [MOZ_XIE_LIBS="-lXIE"],,
|
|
|
|
# $XLIBS $XEXT_LIBS)
|
|
|
|
# AC_CHECK_HEADER(X11/extensions/XIElib.h)
|
|
|
|
|
|
|
|
# media-libs/libpng
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build:
|
|
|
|
dev-util/pkg-config
|
|
|
|
x11-proto/xextproto
|
|
|
|
xinerama? ( x11-proto/xineramaproto )
|
|
|
|
build+run:
|
|
|
|
dev-libs/libIDL
|
|
|
|
dev-libs/nspr
|
2009-06-14 12:53:57 +02:00
|
|
|
dev-libs/nss
|
2009-01-03 04:02:40 +01:00
|
|
|
media-libs/freetype
|
|
|
|
media-libs/jpeg
|
|
|
|
x11-libs/pango
|
|
|
|
x11-libs/cairo[svg?]
|
|
|
|
x11-libs/gtk+:2
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXt
|
|
|
|
x11-libs/libICE
|
|
|
|
x11-libs/libSM
|
|
|
|
xinerama? ( x11-libs/libXinerama )
|
|
|
|
"
|
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
WORK="${WORKBASE}"/build/mail
|
2009-01-03 04:02:40 +01:00
|
|
|
ECONF_SOURCE="${WORKBASE}"/mozilla
|
|
|
|
export MOZILLA_OFFICIAL=1
|
|
|
|
export BUILD_OFFICIAL=1
|
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2009-01-03 04:02:40 +01:00
|
|
|
src_prepare() {
|
|
|
|
mozilla_src_prepare
|
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
sed -e "/^mozappdir/ c mozappdir = /usr/$(get_libdir)/${PN}" \
|
|
|
|
-i "${WORKBASE}"/mozilla/config/autoconf.mk.in || die "mozappdir sed failed."
|
|
|
|
|
|
|
|
cd "${ECONF_SOURCE}" || die "cd ${ECONF_SOURCE} failed"
|
|
|
|
expatch "${FILES}/${PNV}-nsAppRunner_empty_elif.patch"
|
|
|
|
|
|
|
|
option enigmail && enigmail_src_prepare
|
2009-01-03 04:02:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
export MOZ_OBJDIR=@TOPSRCDIR@/../build
|
2009-06-14 12:53:57 +02:00
|
|
|
export MOZ_CO_PROJECT=mail
|
|
|
|
export MOZ_BUILD_PROJECTS=mail
|
2009-01-03 04:02:40 +01:00
|
|
|
|
|
|
|
econf \
|
|
|
|
--enable-application=mail \
|
|
|
|
--enable-crypto \
|
|
|
|
--enable-freetype \
|
|
|
|
--enable-system-cairo \
|
|
|
|
--disable-mochitest \
|
|
|
|
--disable-gnomeui \
|
|
|
|
--disable-gnomevfs \
|
|
|
|
--disable-javaxpcom \
|
2009-06-14 12:53:57 +02:00
|
|
|
--disable-optimize \
|
2009-01-03 04:02:40 +01:00
|
|
|
--disable-strip \
|
|
|
|
--disable-xprint \
|
|
|
|
--with-system-nspr \
|
2009-06-14 12:53:57 +02:00
|
|
|
--with-system-nss \
|
2009-01-03 04:02:40 +01:00
|
|
|
--with-system-jpeg \
|
|
|
|
--with-system-png \
|
|
|
|
--with-system-zlib \
|
|
|
|
--with-libIDL \
|
|
|
|
--with-x \
|
|
|
|
$(option_enable ldap) \
|
|
|
|
$(option_enable ldap ldap-experimental) \
|
|
|
|
$(option_enable !bindist official-branding) \
|
|
|
|
$(option_enable svg) \
|
|
|
|
--with-default-mozilla-five-home=/usr/$(get_libdir)/${PN} \
|
|
|
|
--with-distribution-id=org.exherbo
|
2009-06-14 12:53:57 +02:00
|
|
|
|
|
|
|
option enigmail && enigmail_src_configure
|
2009-01-03 04:02:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
2009-06-14 12:53:57 +02:00
|
|
|
|
|
|
|
option enigmail && enigmail_src_compile
|
2009-01-03 04:02:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
2009-06-14 12:53:57 +02:00
|
|
|
|
|
|
|
option enigmail && enigmail_src_install
|
2009-01-03 04:02:40 +01:00
|
|
|
}
|
2009-06-14 12:53:57 +02:00
|
|
|
|