Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/gambit/
Date: Sat, 12 Aug 2017 10:04:32
Message-Id: 1502532250.399fc1750c4506fdef9f6f4a3157232c64b0aa75.amynka@gentoo
1 commit: 399fc1750c4506fdef9f6f4a3157232c64b0aa75
2 Author: Amy Liffey <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 12 09:56:35 2017 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 10:04:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=399fc175
7
8 dev-scheme/gambit: enable tls support bug #620770
9
10 Submitted-by: Guillaume LE VAILLANT <glv <AT> posteo.net>
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.1
13
14 dev-scheme/gambit/gambit-4.8.8-r1.ebuild | 61 ++++++++++++++++++++++++++++++++
15 1 file changed, 61 insertions(+)
16
17 diff --git a/dev-scheme/gambit/gambit-4.8.8-r1.ebuild b/dev-scheme/gambit/gambit-4.8.8-r1.ebuild
18 new file mode 100644
19 index 00000000000..f2e841b8b94
20 --- /dev/null
21 +++ b/dev-scheme/gambit/gambit-4.8.8-r1.ebuild
22 @@ -0,0 +1,61 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit eutils elisp-common
29 +
30 +MY_PV="${PV//./_}"
31 +MY_P="${PN}-v${MY_PV}"
32 +
33 +DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter"
34 +HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
35 +SRC_URI="http://www-labs.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz"
36 +
37 +LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
40 +
41 +RDEPEND="ssl? ( dev-libs/openssl:0 )"
42 +DEPEND="
43 + ${RDEPEND}
44 + emacs? ( virtual/emacs )
45 +"
46 +
47 +SITEFILE="50gambit-gentoo.el"
48 +
49 +S="${WORKDIR}/${MY_P}" #-devel
50 +
51 +IUSE="emacs ssl static"
52 +
53 +src_configure() {
54 + econf $(use_enable !static shared) \
55 + $(use_enable ssl openssl) \
56 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
57 + --enable-gnu-gcc-specific-options \
58 + --enable-gnu-gcc-no-strict-aliasing \
59 + --enable-single-host \
60 + --disable-absolute-shared-libs \
61 + --enable-type-checking
62 +}
63 +
64 +src_compile() {
65 + emake bootstrap
66 +
67 + if use emacs; then
68 + elisp-compile misc/*.el || die
69 + fi
70 +}
71 +
72 +src_install() {
73 + emake DESTDIR="${D}" install
74 + keepdir /usr/share/"${MY_PN}"
75 +}
76 +
77 +pkg_postinst() {
78 + use emacs && elisp-site-regen
79 +}
80 +
81 +pkg_postrm() {
82 + use emacs && elisp-site-regen
83 +}