Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/mail-notification/
Date: Fri, 04 Nov 2016 09:40:40
Message-Id: 1478252424.e932cacb8588230013fac96ef32fead203aa30dd.pacho@gentoo
1 commit: e932cacb8588230013fac96ef32fead203aa30dd
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 09:31:25 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 09:40:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e932cacb
7
8 mail-client/mail-notification: Version bump following Fedora snapshots
9
10 Package-Manager: portage-2.3.2
11
12 mail-client/mail-notification/Manifest | 1 +
13 .../mail-notification-5.4-r10.ebuild | 114 +++++++++++++++++++++
14 2 files changed, 115 insertions(+)
15
16 diff --git a/mail-client/mail-notification/Manifest b/mail-client/mail-notification/Manifest
17 index 5571e9a..cd19b8f 100644
18 --- a/mail-client/mail-notification/Manifest
19 +++ b/mail-client/mail-notification/Manifest
20 @@ -1 +1,2 @@
21 +DIST mail-notification-9ae8768.tar.gz 573948 SHA256 632c0b696f3f3878b497d65d944b1778ea379abcb4536fb6285c0035ae984db3 SHA512 57ddeb63816dd1db1b732dd13fedeb366e1d82f070feb3f9cf854a85a0e66ab2a60a92126fa57cdc338df699e304007dd84593ea1d6185b08c21a018e441629b WHIRLPOOL 3e11a7094bcb62c5384a13671e5bd96c27d230de20c130463520c6ac1b105b86e875dc9feb1b23dafd5579d9576483347a7bad5c18108efe3cccebdb68caaf87
22 DIST mail-notification-eab5c13.tar.gz 569791 SHA256 12f79cfaa6f5bbfa68e2a5e8dca651cfe19ed017741c21bec5b3b91bccecffe6 SHA512 fe4b5c7b04fe24950fcff0796dbe27c0172e9e8c1b1229f18064ae3720d12a669803e08796ac61d64912847eaaccc451363d69cecd55995274c5a0b2705a78f1 WHIRLPOOL 480179b855b7b86cb80b750c14c034e2f52b280a4b1b6e6aeed3c64b722808c7bd0086e75a9a0423d71424ffa37b3752da2b170c3b7af13697b77cafaceabb25
23
24 diff --git a/mail-client/mail-notification/mail-notification-5.4-r10.ebuild b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild
25 new file mode 100644
26 index 00000000..efb7556
27 --- /dev/null
28 +++ b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild
29 @@ -0,0 +1,114 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +inherit gnome2 multilib flag-o-matic toolchain-funcs
36 +
37 +DESCRIPTION="Status icon informing about new mail"
38 +HOMEPAGE="http://www.nongnu.org/mailnotify/ https://github.com/epienbroek/mail-notification"
39 +
40 +GIT_REVISION="9ae8768" # Same as Fedora
41 +SRC_URI="https://github.com/epienbroek/${PN}/tarball/${GIT_REVISION} -> ${PN}-${GIT_REVISION}.tar.gz"
42 +S="${WORKDIR}/epienbroek-${PN}-${GIT_REVISION}"
43 +
44 +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-linux"
45 +SLOT="0"
46 +LICENSE="GPL-3"
47 +IUSE="+gnome-keyring libressl sasl ssl sylpheed"
48 +
49 +LANGS="bg ca cs de es fr ja nl pl pt pt_BR ru sr sr@Latn sv"
50 +for lang in ${LANGS}; do
51 + IUSE+=" linguas_${lang}"
52 +done
53 +
54 +# gmime is actually optional, but it's used by so much of the package
55 +# it's pointless making it optional. gnome-keyring is required for
56 +# several specific access methods, and thus linked to those USE flags
57 +# instead of adding a keyring USE flag.
58 +RDEPEND="
59 + x11-libs/gtk+:3
60 + >=dev-libs/glib-2.14:2
61 + >=gnome-base/gconf-2.6
62 + >=gnome-base/libgnomeui-2.14
63 + dev-libs/dbus-glib
64 + dev-libs/gmime:2.6
65 + >=x11-libs/libnotify-0.4.1
66 + gnome-keyring? ( gnome-base/libgnome-keyring )
67 + ssl? (
68 + !libressl? ( dev-libs/openssl:0= )
69 + libressl? ( dev-libs/libressl:0= )
70 + )
71 + sasl? ( >=dev-libs/cyrus-sasl-2 )
72 + sylpheed? ( mail-client/sylpheed )
73 +"
74 +DEPEND="${RDEPEND}
75 + app-text/rarian
76 + dev-util/gob
77 + sys-devel/gettext
78 + virtual/pkgconfig
79 + >=dev-util/intltool-0.35.0
80 +"
81 +# this now uses JB (the Jean-Yves Lefort's Build System) as a build system
82 +# instead of autotools, this is a little helper function that basically does
83 +# the same thing as use_enable
84 +use_var() {
85 + echo "${2:-$1}=$(usex $1)"
86 +}
87 +
88 +src_prepare() {
89 + sed -i -e '/jb_rule_set_install_message/d' \
90 + -e '/jb_rule_add_install_command/d' \
91 + jbsrc/jb.c || die
92 +
93 + # Ensure we never append -Werror
94 + sed -i -e 's/ -Werror//' jb jbsrc/jb.c || die
95 +
96 + # We are not Ubuntu, and this could be the cause of #215281
97 + eapply "${FILESDIR}/${P}-remove-ubuntu-special-case.patch"
98 +
99 + # Apply Fedora patches
100 + # Fix gcc warning
101 + eapply "${FILESDIR}/${PN}-jb-gcc-format.patch"
102 + # Support aarch64
103 + eapply "${FILESDIR}/${PN}-aarch64.patch"
104 + # Fix build with latest libc
105 + eapply "${FILESDIR}/${PN}-dont-link-against-bsd-compat.patch"
106 +
107 + gnome2_src_prepare
108 +}
109 +
110 +src_configure() {
111 + set -- \
112 + ./jb configure destdir="${D}" prefix="${EPREFIX}/usr" libdir="${EPREFIX}/usr/$(get_libdir)" \
113 + sysconfdir="${EPREFIX}/etc" localstatedir="${EPREFIX}/var" cc="$(tc-getCC)" \
114 + cflags="${CFLAGS}" cppflags="${CXXFLAGS}" ldflags="${LDFLAGS}" \
115 + scrollkeeper-dir="${EPREFIX}/var/lib/scrollkeeper" \
116 + $(use_var gnome-keyring gmail) \
117 + $(use_var gnome-keyring imap) \
118 + $(use_var gnome-keyring pop3) \
119 + $(use_var sasl) \
120 + $(use_var ssl) \
121 + $(use_var sylpheed)
122 + echo "$@"
123 + "$@" || die
124 +}
125 +
126 +src_compile() {
127 + ./jb build || die
128 +}
129 +
130 +src_install() {
131 + GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" ./jb install || die
132 + einstalldocs
133 + rm -rf "${ED}/var/lib/scrollkeeper"
134 +
135 + einfo "Cleaning up locales..."
136 + for lang in ${LANGS}; do
137 + use "linguas_${lang}" && {
138 + einfo "- keeping ${lang}"
139 + continue
140 + }
141 + rm -Rf "${D}"/usr/share/locale/"${lang}" || die
142 + done
143 +}