1 |
commit: 8e076d6cbe00f639ea6e3e02c2c72fb1f4515b14 |
2 |
Author: fadein <fadein <AT> gemini <DOT> doesntexist <DOT> org> |
3 |
AuthorDate: Sun Feb 26 03:48:38 2012 +0000 |
4 |
Commit: Erik Falor <ewfalor <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 26 03:48:38 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/lisp.git;a=commit;h=8e076d6c |
7 |
|
8 |
dev-scheme/chicken: bump to 4.7.0; fix bug #335418 |
9 |
|
10 |
--- |
11 |
dev-scheme/chicken/chicken-4.7.0.ebuild | 76 +++++++++++++++++++++++++++++++ |
12 |
1 files changed, 76 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/dev-scheme/chicken/chicken-4.7.0.ebuild b/dev-scheme/chicken/chicken-4.7.0.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..aad6f87 |
17 |
--- /dev/null |
18 |
+++ b/dev-scheme/chicken/chicken-4.7.0.ebuild |
19 |
@@ -0,0 +1,76 @@ |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+ |
25 |
+EAPI="3" |
26 |
+ |
27 |
+inherit eutils multilib |
28 |
+ |
29 |
+DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler" |
30 |
+HOMEPAGE="http://www.call-cc.org/" |
31 |
+SRC_URI="http://code.call-cc.org/releases/${PV}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="BSD" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" |
36 |
+IUSE="emacs" |
37 |
+ |
38 |
+DEPEND="sys-apps/texinfo |
39 |
+ emacs? ( virtual/emacs )" |
40 |
+RDEPEND="emacs? ( virtual/emacs app-emacs/scheme-complete )" |
41 |
+ |
42 |
+## the major mode for Chicken source |
43 |
+SITEFILE=50hen-gentoo.el |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ #Because chicken's Upstream have a custom to use variables that also |
47 |
+ #portage uses. Fixes #393561 |
48 |
+ unset A ARCH |
49 |
+ sed "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," -i defaults.make || die "sed failed" |
50 |
+ sed "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${P}," -i defaults.make || die "sed failed" |
51 |
+} |
52 |
+ |
53 |
+src_compile() { |
54 |
+ OPTIONS="PLATFORM=linux PREFIX=/usr" |
55 |
+ #Because chicken's Upstream have a custom to use variables that also |
56 |
+ #portage uses. Fixes #393561 |
57 |
+ unset A ARCH |
58 |
+ |
59 |
+ #upstream does not yet support parallel builds, bug 265881 |
60 |
+ #LINKER_OPTIONS doesn't seem to be incorporated into Makefile.linux - |
61 |
+ #might have to patch it... |
62 |
+ emake -j1 ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \ |
63 |
+ LINKER_OPTIONS="${LDFLAGS}" \ |
64 |
+ HOSTSYSTEM="${CBUILD}" || die "emake failed" |
65 |
+} |
66 |
+ |
67 |
+# chicken's testsuite is not runnable before install |
68 |
+# upstream has been notified of the issue |
69 |
+RESTRICT=test |
70 |
+ |
71 |
+src_install() { |
72 |
+ #Because chicken's Upstream have a custom to use variables that also |
73 |
+ #portage uses. Fixes #393561 |
74 |
+ unset A ARCH |
75 |
+ |
76 |
+ #upstream does not yet support parallel builds, bug 265881 |
77 |
+ emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" \ |
78 |
+ LINKER_OPTIONS="${LDFLAGS}" \ |
79 |
+ install || die |
80 |
+ |
81 |
+ rm "${D}"/usr/share/doc/${P}/LICENSE || die |
82 |
+ dodoc NEWS || die |
83 |
+ |
84 |
+ if use emacs; then |
85 |
+ elisp-install ${PN} hen.{el,elc} || die |
86 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die |
87 |
+ fi |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() |
91 |
+{ |
92 |
+ #Because we pass DESTDIR= to make back in src_install(), the build |
93 |
+ #won't automatically run chicken-install -update-db at that time. |
94 |
+ chicken-install -update-db |
95 |
+} |