Gentoo Archives: gentoo-commits

From: "Panagiotis Christopoulos (pchrist)" <pchrist@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-scheme/guile: ChangeLog guile-1.8.8-r1.ebuild
Date: Fri, 29 Apr 2011 14:17:28
Message-Id: 20110429141717.CA10120054@flycatcher.gentoo.org
1 pchrist 11/04/29 14:17:17
2
3 Modified: ChangeLog
4 Added: guile-1.8.8-r1.ebuild
5 Log:
6 revbump, first try to fix bug #202205. Fix based on old patch from Alexis Ballier (aballier)
7
8 (Portage version: 2.1.9.46/cvs/Linux i686)
9
10 Revision Changes Path
11 1.85 dev-scheme/guile/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/guile/ChangeLog?rev=1.85&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/guile/ChangeLog?rev=1.85&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/guile/ChangeLog?r1=1.84&r2=1.85
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-scheme/guile/ChangeLog,v
20 retrieving revision 1.84
21 retrieving revision 1.85
22 diff -u -r1.84 -r1.85
23 --- ChangeLog 29 Apr 2011 09:44:07 -0000 1.84
24 +++ ChangeLog 29 Apr 2011 14:17:17 -0000 1.85
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-scheme/guile
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/ChangeLog,v 1.84 2011/04/29 09:44:07 pchrist Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/ChangeLog,v 1.85 2011/04/29 14:17:17 pchrist Exp $
30 +
31 +*guile-1.8.8-r1 (29 Apr 2011)
32 +
33 + 29 Apr 2011; Panagiotis Christopoulos <pchrist@g.o>
34 + +guile-1.8.8-r1.ebuild, +files/guile-1.8.8-fix_guile-config.patch:
35 + revbump, first try to fix bug #202205. Fix based on old patch from Alexis
36 + Ballier (aballier)
37
38 29 Apr 2011; Panagiotis Christopoulos <pchrist@g.o>
39 guile-1.8.8.ebuild:
40
41
42
43 1.1 dev-scheme/guile/guile-1.8.8-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/guile/guile-1.8.8-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/guile/guile-1.8.8-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: guile-1.8.8-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/guile-1.8.8-r1.ebuild,v 1.1 2011/04/29 14:17:17 pchrist Exp $
53
54 EAPI=3
55 inherit eutils autotools flag-o-matic elisp-common
56
57 DESCRIPTION="Scheme interpreter"
58 HOMEPAGE="http://www.gnu.org/software/guile/"
59 SRC_URI="mirror://gnu/guile/${P}.tar.gz"
60
61 LICENSE="LGPL-2.1"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
63 IUSE="networking +regex discouraged +deprecated emacs nls debug-freelist debug-malloc debug +threads"
64 RESTRICT="!regex? ( test )"
65
66 DEPEND="
67 >=dev-libs/gmp-4.1
68 >=sys-devel/libtool-1.5.6
69 sys-devel/gettext
70 emacs? ( virtual/emacs )"
71 RDEPEND="${DEPEND}"
72
73 # Guile seems to contain some slotting support, /usr/share/guile/ is slotted,
74 # but there are lots of collisions. Most in /usr/share/libguile. Therefore
75 # I'm slotting this in the same slot as guile-1.6* for now.
76 SLOT="12"
77 MAJOR="1.8"
78
79 src_prepare() {
80 #
81 epatch "${FILESDIR}/${P}-fix_guile-config.patch"
82 eautoreconf
83 }
84
85 src_configure() {
86 # see bug #178499
87 filter-flags -ftree-vectorize
88
89 #will fail for me if posix is disabled or without modules -- hkBst
90 econf \
91 --disable-error-on-warning \
92 --disable-static \
93 --enable-posix \
94 $(use_enable networking) \
95 $(use_enable regex) \
96 $(use deprecated || use_enable discouraged) \
97 $(use_enable deprecated) \
98 $(use_enable emacs elisp) \
99 $(use_enable nls) \
100 --disable-rpath \
101 $(use_enable debug-freelist) \
102 $(use_enable debug-malloc) \
103 $(use_enable debug guile-debug) \
104 $(use_with threads) \
105 --with-modules \
106 EMACS=no
107 }
108
109 src_compile() {
110 emake || die "make failed"
111
112 # Above we have disabled the build system's Emacs support;
113 # for USE=emacs we compile (and install) the files manually
114 if use emacs; then
115 cd emacs
116 elisp-compile *.el || die
117 fi
118 }
119
120 src_install() {
121 einstall || die "install failed"
122
123 dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS || die
124
125 # texmacs needs this, closing bug #23493
126 dodir /etc/env.d
127 echo "GUILE_LOAD_PATH=\"${EPREFIX}/usr/share/guile/${MAJOR}\"" > "${ED}"/etc/env.d/50guile
128
129 # necessary for registering slib, see bug 206896
130 keepdir /usr/share/guile/site
131
132 if use emacs; then
133 elisp-install ${PN} emacs/*.{el,elc} || die
134 elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" || die
135 fi
136 }
137
138 pkg_postinst() {
139 [ "${EROOT}" == "/" ] && pkg_config
140 use emacs && elisp-site-regen
141 }
142
143 pkg_postrm() {
144 use emacs && elisp-site-regen
145 }
146
147 pkg_config() {
148 if has_version dev-scheme/slib; then
149 einfo "Registering slib with guile"
150 install_slib_for_guile
151 fi
152 }
153
154 _pkg_prerm() {
155 rm -f "${EROOT}"/usr/share/guile/site/slibcat
156 }