1 |
hkbst 08/12/29 23:57:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gambit-4.4.0.ebuild |
5 |
Log: |
6 |
bump |
7 |
(Portage version: 2.1.6.2/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.19 dev-scheme/gambit/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?rev=1.19&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?rev=1.19&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?r1=1.18&r2=1.19 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v |
19 |
retrieving revision 1.18 |
20 |
retrieving revision 1.19 |
21 |
diff -u -r1.18 -r1.19 |
22 |
--- ChangeLog 28 Aug 2008 17:41:15 -0000 1.18 |
23 |
+++ ChangeLog 29 Dec 2008 23:57:31 -0000 1.19 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-scheme/gambit |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.18 2008/08/28 17:41:15 ulm Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.19 2008/12/29 23:57:31 hkbst Exp $ |
29 |
+ |
30 |
+*gambit-4.4.0 (29 Dec 2008) |
31 |
+ |
32 |
+ 29 Dec 2008; Marijn Schouten <hkBst@g.o> +gambit-4.4.0.ebuild: |
33 |
+ bump |
34 |
|
35 |
28 Aug 2008; Ulrich Mueller <ulm@g.o> files/50gambit-gentoo.el, |
36 |
gambit-4.0_beta22.ebuild, gambit-4.0.0.ebuild, gambit-4.0.1.ebuild, |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-scheme/gambit/gambit-4.4.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/gambit-4.4.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/gambit-4.4.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: gambit-4.4.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/gambit-4.4.0.ebuild,v 1.1 2008/12/29 23:57:31 hkbst Exp $ |
50 |
|
51 |
inherit eutils elisp-common check-reqs autotools multilib |
52 |
|
53 |
MY_PN=gambc |
54 |
MY_PV=${PV//./_} |
55 |
MY_P=${MY_PN}-v${MY_PV} |
56 |
|
57 |
DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter." |
58 |
HOMEPAGE="http://www.iro.umontreal.ca/~gambit/" |
59 |
SRC_URI="http://www.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz" |
60 |
|
61 |
LICENSE="|| ( Apache-2.0 LGPL-2.1 )" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc64 ~x86" |
64 |
|
65 |
DEPEND="emacs? ( virtual/emacs )" |
66 |
|
67 |
SITEFILE="50gambit-gentoo.el" |
68 |
|
69 |
S=${WORKDIR}/${MY_P} #-devel |
70 |
|
71 |
IUSE="big-iron emacs static" |
72 |
|
73 |
pkg_setup() { |
74 |
if use big-iron; then |
75 |
ewarn "compiling each Scheme module as a single C function" |
76 |
ewarn "using gcc specific optimizations" |
77 |
ewarn "approximately 2GB ram will be needed instead of 0.5GB" |
78 |
ewarn "this will cause heavy thrashing of your system" |
79 |
ewarn "and may cause your compiler to crash when it runs out of memory" |
80 |
ewarn "unless your system is BIG IRON" |
81 |
# need this much memory in MBytes (does *not* check swap) |
82 |
CHECKREQS_MEMORY="2560" check_reqs |
83 |
else |
84 |
ewarn "NOT compiling each Scheme module as a single C function" |
85 |
ewarn "NOT using gcc specific optimizations" |
86 |
ewarn "approximately 0.5GB ram will be needed" |
87 |
ewarn "if you experience thrashing, try disabling parallel building or setting -O1" |
88 |
# need this much memory in MBytes (does *not* check swap) |
89 |
CHECKREQS_MEMORY="768" check_reqs |
90 |
fi |
91 |
} |
92 |
|
93 |
src_compile() { |
94 |
econf $(use_enable !static shared) $(use_enable big-iron single-host) $(use_enable big-iron gcc-opts) --disable-absolute-shared-libs |
95 |
|
96 |
emake bootstrap || die |
97 |
|
98 |
if use emacs; then |
99 |
elisp-compile misc/*.el || die |
100 |
fi |
101 |
} |
102 |
|
103 |
src_install() { |
104 |
emake DESTDIR="${D}" install || die |
105 |
|
106 |
# rename the /usr/bin/gsc to avoid collision with gsc from ghostscript |
107 |
mv "${D}"/usr/bin/gsc "${D}"/usr/bin/gsc-gambit |
108 |
} |
109 |
|
110 |
_src_install(){ |
111 |
rm "${D}"/usr/current |
112 |
|
113 |
mv "${D}"/usr/syntax-case.scm "${D}"/usr/$(get_libdir) |
114 |
|
115 |
|
116 |
# remove emacs/site-lisp/gambit.el |
117 |
rm -r "${D}"/usr/share/emacs |
118 |
if use emacs; then |
119 |
elisp-install ${PN} misc/*.{el,elc} |
120 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
121 |
fi |
122 |
|
123 |
dodoc INSTALL.txt README |
124 |
insinto /usr/share/doc/${PF} |
125 |
doins -r examples |
126 |
|
127 |
# create some more explicit names |
128 |
dosym gsc-gambit usr/bin/gambit-compiler |
129 |
dosym gsi usr/bin/gambit-interpreter |
130 |
|
131 |
echo "GAMBCOPT=\"=/usr/\"" > "${T}"/50gambit && doenvd "${T}"/50gambit |
132 |
} |
133 |
|
134 |
pkg_postinst() { |
135 |
use emacs && elisp-site-regen |
136 |
} |
137 |
|
138 |
pkg_postrm() { |
139 |
use emacs && elisp-site-regen |
140 |
} |