commit:     c474d96a08e7451d4cfb6c1e4adc2e1b553eec58
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 17:29:24 2017 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 17:29:24 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=c474d96a

enigmail ebuild that installs directly to tbird/sm extensions dir

 x11-plugins/enigmail/Manifest                |  1 +
 x11-plugins/enigmail/enigmail-1.9.6.1.ebuild | 67 ++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/x11-plugins/enigmail/Manifest b/x11-plugins/enigmail/Manifest
index d5d2883..dd3772f 100644
--- a/x11-plugins/enigmail/Manifest
+++ b/x11-plugins/enigmail/Manifest
@@ -1 +1,2 @@
 DIST enigmail-1.9.5.tar.gz 1744278 SHA256 
831e53a4add0f465241f075be9475103367aa1452675adae054d8fb272e5d3ad SHA512 
4db7e52d3c9b192b1de72bffd62430a6b02c117b11847bd9cf196fd226ace6f587f20dd21c82f9ff109cd1bee69c50bfdf7e12b78dd2684d08ced86771096d0c
 WHIRLPOOL 
5ed576a86fa5c9fa718c1917c985619b5c3ec1e6ccfd003681c9314d4b9855c31d5075fd920f86d7365dc6146ec877d93dfbb52091417ae52c011cbe47815e9c
+DIST enigmail-1.9.6.1.tar.gz 1745021 SHA256 
3874331e981aed864443d3c965d856e003fd84f73e5a89fd5004ced9dc29b96f SHA512 
e6ab69734a39a4953e0167e07b06f0d5c83fb42956515392319a1cd9d665ca274f6a12b4141e2dfa373ef074f0526f3d7330a48d29d600fc38f724d26518ff84
 WHIRLPOOL 
e89b0e5857564cc2f7ebf3ab46b110c6bbb1b16e7c0e045750119fd02e693b9bd9667c2932e7a65f9c8fb2c7c835ed048f6df2613d12b25d961894f47f67cf48

diff --git a/x11-plugins/enigmail/enigmail-1.9.6.1.ebuild 
b/x11-plugins/enigmail/enigmail-1.9.6.1.ebuild
new file mode 100644
index 0000000..689083c
--- /dev/null
+++ b/x11-plugins/enigmail/enigmail-1.9.6.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2"
+IUSE="+thunderbird seamonkey"
+SRC_URI="http://www.enigmail.net/download/source/${P}.tar.gz";
+REQUIRED_USE="^^ ( thunderbird seamonkey )"
+
+DEPEND="app-arch/zip"
+
+RDEPEND="thunderbird? ( mail-client/thunderbird[-crypt(-)] )
+       seamonkey? ( www-client/seamonkey[-crypt(-)] )
+       || (
+               ( >=app-crypt/gnupg-2.0
+                       || (
+                               app-crypt/pinentry[gtk(-)]
+                               app-crypt/pinentry[qt4(-)]
+                               app-crypt/pinentry[qt5(-)]
+                       )
+               )
+               =app-crypt/gnupg-1.4*
+       ) "
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+       emake -j1
+       emake -j1 xpi
+}
+
+src_install() {
+       local emid impl
+       local enigmail_xpipath="${S}"/build
+
+       cd "${T}" || die
+       unzip "${enigmail_xpipath}"/enigmail*.xpi install.rdf || die
+       emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
+
+       for impl in thunderbird seamonkey ; do
+               if use ${impl} ; then
+                       dodir /usr/$(get_libdir)/${impl}/extensions/${emid}
+                       cd "${ED}"/usr/$(get_libdir)/${impl}/extensions/${emid} 
|| die
+                       unzip "${enigmail_xpipath}"/enigmail*.xpi || die
+               fi
+       done
+}
+
+pkg_postinst() {
+        local peimpl=$(eselect --brief --colour=no pinentry show)
+        case "${peimpl}" in
+        *gtk*|*qt*) ;;
+        *)      ewarn "The pinentry front-end currently selected is not one 
supported."
+                ewarn "You may be prompted for your password in an 
inaccessible shell!!"
+                ewarn "Please use 'eselect pinentry' to select either the gtk 
or qt front-end"
+                ;;
+        esac
+}

Reply via email to