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, 29 Dec 2018 14:19:26
Message-Id: 1546092974.9c32100f86e54afbb5f1867b123ad141093c01f1.amynka@gentoo
1 commit: 9c32100f86e54afbb5f1867b123ad141093c01f1
2 Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 20 16:04:45 2018 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 29 14:16:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c32100f
7
8 dev-scheme/gambit: revbump to add USE libressl
9
10 Closes: https://bugs.gentoo.org/666629
11 Package-Manager: Portage-2.3.49, Repoman-2.3.10
12 Closes: https://github.com/gentoo/gentoo/pull/9929
13 Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
14 Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
15
16 dev-scheme/gambit/gambit-4.8.8-r2.ebuild | 64 ++++++++++++++++++++++++++++++++
17 1 file changed, 64 insertions(+)
18
19 diff --git a/dev-scheme/gambit/gambit-4.8.8-r2.ebuild b/dev-scheme/gambit/gambit-4.8.8-r2.ebuild
20 new file mode 100644
21 index 00000000000..d8fd8612bfc
22 --- /dev/null
23 +++ b/dev-scheme/gambit/gambit-4.8.8-r2.ebuild
24 @@ -0,0 +1,64 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit eutils elisp-common
31 +
32 +MY_PV="${PV//./_}"
33 +MY_P="${PN}-v${MY_PV}"
34 +
35 +DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter"
36 +HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
37 +SRC_URI="http://www-labs.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz"
38 +
39 +LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
42 +
43 +RDEPEND="ssl? (
44 + !libressl? ( dev-libs/openssl:0= )
45 + libressl? ( dev-libs/libressl:0= )
46 + )"
47 +DEPEND="
48 + ${RDEPEND}
49 + emacs? ( virtual/emacs )
50 +"
51 +
52 +SITEFILE="50gambit-gentoo.el"
53 +
54 +S="${WORKDIR}/${MY_P}" #-devel
55 +
56 +IUSE="emacs libressl ssl static"
57 +
58 +src_configure() {
59 + econf $(use_enable !static shared) \
60 + $(use_enable ssl openssl) \
61 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
62 + --enable-gnu-gcc-specific-options \
63 + --enable-gnu-gcc-no-strict-aliasing \
64 + --enable-single-host \
65 + --disable-absolute-shared-libs \
66 + --enable-type-checking
67 +}
68 +
69 +src_compile() {
70 + emake bootstrap
71 +
72 + if use emacs; then
73 + elisp-compile misc/*.el || die
74 + fi
75 +}
76 +
77 +src_install() {
78 + emake DESTDIR="${D}" install
79 + keepdir /usr/share/"${MY_PN}"
80 +}
81 +
82 +pkg_postinst() {
83 + use emacs && elisp-site-regen
84 +}
85 +
86 +pkg_postrm() {
87 + use emacs && elisp-site-regen
88 +}