mail-client/thunderbird-bin: add beta ebuild

This commit is contained in:
Anton Schubert 2018-02-06 22:36:47 +01:00
parent 5f3de2826c
commit e18643501e
6 changed files with 201 additions and 0 deletions

View file

@ -0,0 +1,8 @@
AUX 10thunderbird-bin 36 SHA256 6e49ce8f02cd128d353625d04c74103ae83c25baf41c76323c61465acb6ca116 SHA512 d65275c671277af884c5de99131dd785754fc68d222029fe2e863f08e821afb98e4b614ae0509b9b0aa7501ef72c52ae469f98806024ec661e09a684e2796d0f WHIRLPOOL f06c35b7ce6399fd09e69d23bd71fc7a82c047492f993b2b9e761b94e404e777e6d5ac85e977b06b8da67f8155538df271b8ca946c337aab742390a4cd428402
AUX icon/thunderbird-bin.desktop 229 SHA256 dc8084e9de919c2cc9a3d86da0248c007a2183e07f50fbc8646940d711e9391c SHA512 12906325b92fc3c336dc5d083f0b3ff56fd9892dd234abb9fa1a98ff51b718816b1ad50eb4063e718a86341e710e5410bc216bb398feff163eefff434ecaeccd WHIRLPOOL 39f339c045c67980610cd7f7fc87ef308d00071b4e85038926c0e32fc725994eff949439f8a2d13c3fe96aa9fcb48b99cc8c0b96e13e4430970662eafd94c97d
AUX thunderbird-gentoo-default-prefs.js 404 SHA256 cf676a8454d625e9cb4bd908adc51c0452cf50ae90edcf555dc3a1bbfc59e4a8 SHA512 7163d09a6e5760327b4fad5e5ef8402640a1b1bbb173a78101275a245248c2c406a5e5e0ca675b7e7281f07d6d272a8586f007bec39c73621f3261862da93d81 WHIRLPOOL e2d515d8cabdd92f323d5f681003cb9ae0dbff999f32409332aac74b5cbdfa9d9221d0beab98cde93678be8eafae03a333f352008f26265e28870817a233ba6a
DIST lightning-5.4.5.tar.xz 1898160 SHA256 dcb454e78046739724390f4d062c4ad371e3b7ffab2838a9ca095f302ef596cb SHA512 621d21c20bd74271f83ce9eb89b1f65cb43ab6182793bb7b9b3ca04799644f6700d15a59c6b312459d0471f5f243c3b9f534d1adf4bc72c36c2bd04f2937e3d3 WHIRLPOOL 4611c9270c658577d876290cd1df09cb4b30b2ee2c2d0afd89b68de30ef65aa84b393238b209ca8da38419c9d029e0689a2625a3738d838c1a9fb37cb5b90dff
DIST thunderbird-bin_i686-58.0_beta2.tar.bz2 50822642 SHA256 a17a902a990d556799a547f9f1a4138d9f8158393243268b58db2b797b51f046 SHA512 c6bb2eae4a7466bff77db7f5afd7c74e71342a0dd465ccd6dadc30396569738c7bcb20a31321cbea15de8aa69854ea2fc28aeb5bfd0f38c8f60cab0d41c294d6 WHIRLPOOL 7762f744d2dda80fbf8ccea07cc77ffb44990e5be5e700e3aa95c39466cdb9d4bcc9447d4634a8c72c92580fe2a353bda20ede524e393217a7464c1768b28165
DIST thunderbird-bin_x86_64-58.0_beta2.tar.bz2 49163655 SHA256 59616cd2a94f45c9a460263e7fae2ca97f6d52b9ed8a69d04049d82177660322 SHA512 13e76dc0aa0b4653c017d64f272e1d47bdb5b3265480cdfe7d7855c16d7f27a7b028dd01548eb0571b0b1673bd877492a8b6a26ad49084c45a9f37bf3ca449df WHIRLPOOL 9c42e3d9a583a6bc7c7dfd8c9d951ffa3b971b11cb057ea218b5f351f29504c68c2137b18969cb54a779caca6ed54116e8a45a36db66c5a347a25b4eda1ed726
EBUILD thunderbird-bin-58.0_beta2.ebuild 4525 SHA256 edfd9c3ca25b3e5a1257d2fa00075066b96fcc476936cac21ee2147afb6a77c1 SHA512 02e99dcb674675ae372fe80f2c9a99e4d12010cce2a5df5192b76bf466f0b655348ad4e93d8a921499d40633af7a2a7950058a668e1efa90a662cd2836a70ec3 WHIRLPOOL 8626a485f4ddf0652756c79113490b4fa186939dfde4fb4ddff9d3ba227f048c7955e40c7fe77dd564a92392b270603ff304af0dad3576219d0d46023673f181
MISC metadata.xml 325 SHA256 42d70300a1562c37b7f19942659a05dbba20a5f8bc3c2a6578e4eda28a18bc8b SHA512 20a5a3c0abb2865a871ccd1386c2cf2a2dbbedec3affe0ab99d7e4b966270d5a47fe52813408b7472f94d316417e0ad709a961a037f86e4669b6edb907b6ac7c WHIRLPOOL a3a87e60e644ac98af3cb8e736cb049c648c3b36f71e0d5af9aa63124093c8a8296b442bdf2cc5b6ce95eeb80e9c86ad781ac2ff236a6c898808ed358ef25e21

View file

@ -0,0 +1 @@
SEARCH_DIRS_MASK="/opt/thunderbird"

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Mozilla Thunderbird (bin)
Comment=Mail & News Reader
Exec=/usr/bin/thunderbird-bin
Icon=thunderbird-bin-icon
Terminal=false
Type=Application
Categories=Office;Network;Email;
MimeType=x-scheme-handler/mailto;

View file

@ -0,0 +1,11 @@
pref("app.update.enabled", false);
pref("app.update.autoInstallEnabled", false);
pref("browser.display.use_system_colors", true);
pref("intl.locale.matchOS", true);
pref("mail.shell.checkDefaultClient", false);
# Disable global indexing by default
pref("mailnews.database.global.indexer.enabled", false);
# Do not switch to Smart Folders after upgrade to 3.0b4
pref("mail.folder.views.version", "1")

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ischluff@mailbox.org</email>
<name>Anton Schubert</name>
</maintainer>
<use>
<flag name="crashreporter">Enable crash reporter for bugs</flag>
</use>
</pkgmetadata>

View file

@ -0,0 +1,161 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MOZ_ESR=""
MOZ_LIGHTNING_VER="5.4.5"
# Can be updated using scripts/get_langs.sh from mozilla overlay
MOZ_LANGS=( de en-US )
# Convert the ebuild version to the upstream mozilla version, used by
MOZ_PN="${PN/-bin}"
MOZ_PV="${PV/_beta/b}"
MOZ_PV="${MOZ_PV/_rc/rc}"
if [[ ${MOZ_ESR} == 1 ]]; then
# ESR releases have slightly version numbers
MOZ_PV="${MOZ_PV}esr"
fi
MOZ_P="${MOZ_PN}-${MOZ_PV}"
MOZ_HTTP_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases"
inherit eutils multilib pax-utils xdg-utils gnome2-utils nsplugins mozlinguas-v2
DESCRIPTION="Thunderbird Mail Client"
SRC_URI="${SRC_URI}
amd64? ( ${MOZ_HTTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
x86? ( ${MOZ_HTTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )
https://dev.gentoo.org/~axs/distfiles/lightning-${MOZ_LIGHTNING_VER}.tar.xz
"
# the below only works when upstream releases the xpi with all locales bundled
# ${MOZ_HTTP_URI/${MOZ_PN}/calendar/lightning}/${MOZ_LIGHTNING_VER}/linux/lightning.xpi -> lightning-${MOZ_LIGHTNING_VER}.xpi
HOMEPAGE="http://www.mozilla.com/thunderbird"
RESTRICT="strip mirror"
KEYWORDS="-* amd64 x86"
SLOT="0"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
IUSE="+crashreporter +ffmpeg +pulseaudio selinux"
DEPEND="app-arch/unzip"
RDEPEND="virtual/freedesktop-icon-theme
dev-libs/atk
>=sys-apps/dbus-0.60
>=dev-libs/dbus-glib-0.72
>=dev-libs/glib-2.26:2
>=media-libs/alsa-lib-1.0.16
media-libs/fontconfig
>=media-libs/freetype-2.4.10:2
>=x11-libs/cairo-1.10[X]
x11-libs/gdk-pixbuf:2
>=x11-libs/gtk+-2.18:2
>=x11-libs/gtk+-3.4.0:3
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrender
x11-libs/libXt
>=x11-libs/pango-1.22.0
pulseaudio? ( !<media-sound/apulse-0.1.9
|| ( media-sound/pulseaudio media-sound/apulse ) )
ffmpeg? ( media-video/ffmpeg )
crashreporter? ( net-misc/curl )
selinux? ( sec-policy/selinux-thunderbird )
"
QA_PREBUILT="
opt/${MOZ_PN}/*.so
opt/${MOZ_PN}/${MOZ_PN}
opt/${MOZ_PN}/${PN}
opt/${MOZ_PN}/crashreporter
opt/${MOZ_PN}/plugin-container
opt/${MOZ_PN}/mozilla-xremote-client
opt/${MOZ_PN}/updater
"
S="${WORKDIR}/${MOZ_PN}"
src_unpack() {
unpack ${A}
# Unpack language packs
mozlinguas_src_unpack
#xpi_unpack lightning-${MOZ_LIGHTNING_VER}.xpi
}
src_install() {
declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
local size sizes icon_path icon name
sizes="16 22 24 32 48 256"
icon_path="${S}/chrome/icons/default"
icon="${PN}-icon"
name="Thunderbird"
# Install icons and .desktop for menu entry
for size in ${sizes}; do
insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
newins "${icon_path}/default${size}.png" "${icon}.png"
done
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
newicon "${S}"/chrome/icons/default/default48.png "${icon}.png"
domenu "${FILESDIR}"/icon/${PN}.desktop
# Install thunderbird in /opt
dodir ${MOZILLA_FIVE_HOME%/*}
mv "${S}" "${ED}"${MOZILLA_FIVE_HOME}
cd "${WORKDIR}" || die # PWD no longer exists so move to somewhere that does
# Install language packs
MOZEXTENSION_TARGET="distribution/bundles" \
mozlinguas_src_install
# Install language packs for calendar
mozlinguas_xpistage_langpacks \
"${ED%/}/${MOZILLA_FIVE_HOME%/}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}" \
"${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER} lightning calendar
# Create /usr/bin/thunderbird-bin
dodir /usr/bin/
local apulselib=$(usex pulseaudio "/usr/$(get_libdir)/apulse:" "")
cat <<EOF >"${D}"/usr/bin/${PN}
#!/bin/sh
unset LD_PRELOAD
LD_LIBRARY_PATH="${apulselib}${MOZILLA_FIVE_HOME}" \\
exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
EOF
fperms 0755 /usr/bin/${PN}
# revdep-rebuild entry
insinto /etc/revdep-rebuild
doins "${FILESDIR}"/10${PN}
# Enable very specific settings for thunderbird-3
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
newins "${FILESDIR}"/thunderbird-gentoo-default-prefs.js all-gentoo.js
# Plugins dir
share_plugins_dir
pax-mark mr "${ED}"${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update
use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed"
use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without pulseaudio installed"
}
pkg_postrm() {
gnome2_icon_cache_update
}