Gentoo Archives: gentoo-commits

From: "Marijn Schouten (hkbst)" <hkbst@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-scheme/gambit: ChangeLog gambit-4.1.0.ebuild
Date: Sun, 18 Nov 2007 18:49:42
Message-Id: E1Itoti-0003g2-O6@stork.gentoo.org
1 hkbst 07/11/18 18:29:34
2
3 Modified: ChangeLog
4 Added: gambit-4.1.0.ebuild
5 Log:
6 bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.14 dev-scheme/gambit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/ChangeLog?r1=1.13&r2=1.14
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- ChangeLog 12 Sep 2007 12:06:53 -0000 1.13
23 +++ ChangeLog 18 Nov 2007 18:29:34 -0000 1.14
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-scheme/gambit
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.13 2007/09/12 12:06:53 hkbst Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/gambit/ChangeLog,v 1.14 2007/11/18 18:29:34 hkbst Exp $
29 +
30 +*gambit-4.1.0 (18 Nov 2007)
31 +
32 + 18 Nov 2007; Marijn Schouten <hkBst@g.o> +gambit-4.1.0.ebuild:
33 + bump
34
35 *gambit-4.0.1 (12 Sep 2007)
36
37
38
39
40 1.1 dev-scheme/gambit/gambit-4.1.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/gambit-4.1.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-scheme/gambit/gambit-4.1.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gambit-4.1.0.ebuild
46 ===================================================================
47 # Copyright 1999-2007 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.1.0.ebuild,v 1.1 2007/11/18 18:29:34 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}
70
71 IUSE="big-iron emacs static"
72
73 pkg_setup() {
74 if ! use big-iron; then
75 ewarn "NOT compiling each Scheme module as a single C function"
76 ewarn "NOT using gcc specific optimizations"
77 # ewarn "NOT compiling syntax-case macro system"
78 ewarn "approximately 0.5GB ram will be needed"
79 ewarn "if you experience thrashing, try disabling parallel building or setting -O1"
80 # need this much memory in MBytes (does *not* check swap)
81 CHECKREQS_MEMORY="768" check_reqs
82 else
83 ewarn "compiling each Scheme module as a single C function"
84 ewarn "using gcc specific optimizations"
85 # ewarn "compiling syntax-case macro system"
86 ewarn "approximately 2GB ram will be needed instead of 0.5GB"
87 ewarn "this will cause heavy thrashing of your system"
88 ewarn "and may cause your compiler to crash when it runs out of memory"
89 ewarn "unless your system is BIG IRON"
90 # need this much memory in MBytes (does *not* check swap)
91 CHECKREQS_MEMORY="2560" check_reqs
92 fi
93 }
94
95 src_unpack() {
96 unpack ${A}; cd "${S}"
97 # cp configure.ac configure.ac.old
98 sed -e 's:PACKAGE_SUBDIR="/$PACKAGE_VERSION"::' \
99 -e 's:#PACKAGE_SUBDIR="":PACKAGE_SUBDIR="":' -i configure.ac
100 #don't force -O1
101 sed 's:$DASH_O1::' -i configure.ac
102 eautoreconf
103 # diff -u configure.ac.old configure.ac
104 }
105
106 src_compile() {
107 # econf $(if use static; then echo --disable-shared; else echo --enable-shared; fi) \
108 econf $(use_enable !static shared) $(use_enable big-iron single-host) $(use_enable big-iron gcc-opts)
109
110 emake || die "emake failed"
111
112 if use emacs; then
113 ( cd misc; elisp-comp *.el )
114 fi
115
116 # compile syntax-case
117 # if use big-iron; then
118 # einfo "compiling syntax-case.scm..."
119 # LD_LIBRARY_PATH="lib/" GAMBCOPT="=." gsc/gsc misc/syntax-case.scm
120 # fi
121 }
122
123 _src_test() {
124 vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
125 if ! GAMBCOPT="=." emake -j1 check; then
126 hasq test $FEATURES && die "Make test failed. See above for details."
127 hasq test $FEATURES || eerror "Make test failed. See above for details."
128 fi
129 }
130
131 src_install() {
132 einstall docdir=${D}/usr/share/doc/${PF} || die "einstall failed"
133
134 rm ${D}/usr/current
135
136 # use big-iron && dolib syntax-case.*
137 mv ${D}/usr/syntax-case.scm ${D}/usr/$(get_libdir)
138
139 # rename the /usr/bin/gsc to avoid collision with gsc from ghostscript
140 mv ${D}/usr/bin/gsc ${D}/usr/bin/gsc-gambit
141
142 # remove emacs/site-lisp/gambit.el
143 rm -r ${D}/usr/share/emacs
144 if use emacs; then
145 elisp-install ${PN} misc/*.{el,elc}
146 elisp-site-file-install ${FILESDIR}/${SITEFILE}
147 fi
148
149 dodoc INSTALL.txt README
150 insinto /usr/share/doc/${PF}
151 doins -r examples
152
153 # create some more explicit names
154 dosym gsc-gambit usr/bin/gambit-compiler
155 dosym gsi usr/bin/gambit-interpreter
156
157 # dodir /etc/env.d/ && echo "GAMBCOPT=\"=/usr/\"" > ${D}/etc/env.d/50gambit
158 echo "GAMBCOPT=\"=/usr/\"" > "${T}/50gambit" && doenvd "${T}/50gambit"
159
160 # ewarn "syntax-case will be automatically loaded for R5RS+ goodness"
161 # ewarn "edit /etc/gambcext if you want to set your own options"
162 # dosym /etc/gambcext /usr/gambcext
163 # echo "(load \"/usr/$(get_libdir)/syntax-case\")" > ${D}/etc/gambcext
164 }
165
166 pkg_postinst() {
167 use emacs && elisp-site-regen
168 }
169
170 pkg_postrm() {
171 use emacs && elisp-site-regen
172 }
173
174
175
176 --
177 gentoo-commits@g.o mailing list