Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/alpine/
Date: Fri, 14 Sep 2018 16:31:32
Message-Id: 1536942674.91b05f8f2ff74cd6f089508abf0454ebbd5920e0.monsieurp@gentoo
1 commit: 91b05f8f2ff74cd6f089508abf0454ebbd5920e0
2 Author: Robert Siebeck <gentoo.bugzilla.2012 <AT> r123 <DOT> de>
3 AuthorDate: Fri Sep 14 12:11:32 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 14 16:31:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91b05f8f
7
8 mail-client/alpine: fix SRC_URI.
9
10 Also fix installation of docs
11
12 Closes: https://bugs.gentoo.org/661694
13
14 mail-client/alpine/alpine-2.21.1-r1.ebuild | 91 ++++++++++++++++++++++++++++++
15 1 file changed, 91 insertions(+)
16
17 diff --git a/mail-client/alpine/alpine-2.21.1-r1.ebuild b/mail-client/alpine/alpine-2.21.1-r1.ebuild
18 new file mode 100644
19 index 00000000000..a02a0c5018b
20 --- /dev/null
21 +++ b/mail-client/alpine/alpine-2.21.1-r1.ebuild
22 @@ -0,0 +1,91 @@
23 +# Copyright 1999-2018 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +inherit autotools toolchain-funcs vcs-snapshot
28 +
29 +DESCRIPTION="An easy to use text-based based mail and news client"
30 +HOMEPAGE="http://www.washington.edu/alpine/ http://repo.or.cz/alpine.git/"
31 +GIT_COMMIT="843b2f16abfd949e09b1c5465387b1b0f724994a"
32 +SRC_URI="http://repo.or.cz/alpine.git/snapshot/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
33 +RESTRICT="mirror"
34 +
35 +LICENSE="Apache-2.0"
36 +SLOT="0"
37 +KEYWORDS="alpha amd64 ia64 ppc sparc x86"
38 +IUSE="doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads"
39 +
40 +DEPEND="virtual/pam
41 + >=sys-libs/ncurses-5.1:0=
42 + ssl? (
43 + !libressl? ( dev-libs/openssl:0= )
44 + libressl? ( dev-libs/libressl:0= )
45 + )
46 + ldap? ( net-nds/openldap )
47 + kerberos? ( app-crypt/mit-krb5 )
48 + spell? ( app-text/aspell )
49 +"
50 +RDEPEND="${DEPEND}
51 + app-misc/mime-types
52 + !onlyalpine? ( !mail-client/pine )
53 + !<=net-mail/uw-imap-2004g
54 +"
55 +
56 +src_prepare() {
57 + default
58 + eautoreconf
59 +}
60 +
61 +src_configure() {
62 + myconf=(
63 + --without-tcl
64 + --with-system-pinerc="${EPREFIX}"/etc/pine.conf
65 + --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed
66 + )
67 +
68 + if use ssl; then
69 + myconf+=(
70 + --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl
71 + --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir)
72 + --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs
73 + )
74 + fi
75 + econf \
76 + $(use_with ldap) \
77 + $(use_with ssl) \
78 + $(use_with passfile passfile .pinepwd) \
79 + $(use_with kerberos krb5) \
80 + $(use_with threads pthread) \
81 + $(use_with spell interactive-spellcheck /usr/bin/aspell) \
82 + $(use_enable nls) \
83 + $(use_with ipv6) \
84 + $(use_with smime) \
85 + "${myconf[@]}"
86 +}
87 +
88 +src_compile() {
89 + emake AR=$(tc-getAR)
90 +}
91 +
92 +src_install() {
93 + if use onlyalpine ; then
94 + dobin alpine/alpine
95 + doman doc/man1/alpine.1
96 + else
97 + emake DESTDIR="${D}" install
98 + doman doc/man1/*.1
99 + fi
100 +
101 + dodoc NOTICE README*
102 +
103 + if use doc ; then
104 + dodoc doc/brochure.txt
105 +
106 + dodoc doc/tech-notes/tech-notes.txt
107 + newdoc ${S}/doc/mailcap.unx mailcap.unx.sample
108 + newdoc ${S}/doc/mime.types mime.types.sample
109 + docinto html/tech-notes
110 + dohtml -r doc/tech-notes/
111 + docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample
112 + fi
113 +}