Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/guile-1.8.5.ebuild,v 1.2 2008/07/04 19:21:08 hkbst Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/guile-1.8.5.ebuild,v 1.2 2008/07/04 19:21:08 hkbst Exp $ |
4 |
|
4 |
|
5 |
inherit eutils autotools flag-o-matic |
5 |
inherit eutils autotools flag-o-matic elisp-common |
6 |
|
6 |
|
7 |
DESCRIPTION="Scheme interpreter" |
7 |
DESCRIPTION="Scheme interpreter" |
8 |
HOMEPAGE="http://www.gnu.org/software/guile/" |
8 |
HOMEPAGE="http://www.gnu.org/software/guile/" |
Lines 12-18
Link Here
|
12 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
12 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
13 |
RESTRICT="!regex? ( test )" |
13 |
RESTRICT="!regex? ( test )" |
14 |
|
14 |
|
15 |
DEPEND=">=dev-libs/gmp-4.1 >=sys-devel/libtool-1.5.6 sys-devel/gettext" |
15 |
DEPEND=">=dev-libs/gmp-4.1 |
|
|
16 |
>=sys-devel/libtool-1.5.6 |
17 |
sys-devel/gettext |
18 |
emacs? ( virtual/emacs )" |
16 |
|
19 |
|
17 |
# Guile seems to contain some slotting support, /usr/share/guile/ is slotted, |
20 |
# Guile seems to contain some slotting support, /usr/share/guile/ is slotted, |
18 |
# but there are lots of collisions. Most in /usr/share/libguile. Therefore |
21 |
# but there are lots of collisions. Most in /usr/share/libguile. Therefore |
Lines 20-26
Link Here
|
20 |
SLOT="12" |
23 |
SLOT="12" |
21 |
MAJOR="1.8" |
24 |
MAJOR="1.8" |
22 |
|
25 |
|
23 |
IUSE="networking regex discouraged deprecated elisp nls debug-freelist debug-malloc debug threads" |
26 |
IUSE="networking regex discouraged deprecated elisp emacs nls debug-freelist debug-malloc debug threads" |
24 |
|
27 |
|
25 |
src_unpack() { |
28 |
src_unpack() { |
26 |
unpack ${A}; cd "${S}" |
29 |
unpack ${A}; cd "${S}" |
Lines 42-47
Link Here
|
42 |
filter-flags -ftree-vectorize |
45 |
filter-flags -ftree-vectorize |
43 |
|
46 |
|
44 |
#will fail for me if posix is disabled or without modules -- hkBst |
47 |
#will fail for me if posix is disabled or without modules -- hkBst |
|
|
48 |
# disable build system's Emacs support; do it manually for USE=emacs |
45 |
econf \ |
49 |
econf \ |
46 |
--disable-error-on-warning \ |
50 |
--disable-error-on-warning \ |
47 |
--disable-static \ |
51 |
--disable-static \ |
Lines 57-65
Link Here
|
57 |
$(use_enable debug-malloc) \ |
61 |
$(use_enable debug-malloc) \ |
58 |
$(use_enable debug guile-debug) \ |
62 |
$(use_enable debug guile-debug) \ |
59 |
$(use_with threads) \ |
63 |
$(use_with threads) \ |
60 |
--with-modules |
64 |
--with-modules \ |
|
|
65 |
EMACS=no |
61 |
|
66 |
|
62 |
emake || die "make failed" |
67 |
emake || die "make failed" |
|
|
68 |
|
69 |
if use emacs; then |
70 |
elisp-compile emacs/*.el || die "elisp-compile failed" |
71 |
fi |
63 |
} |
72 |
} |
64 |
|
73 |
|
65 |
src_install() { |
74 |
src_install() { |
Lines 73-82
Link Here
|
73 |
|
82 |
|
74 |
# necessary for registering slib, see bug 206896 |
83 |
# necessary for registering slib, see bug 206896 |
75 |
keepdir /usr/share/guile/site |
84 |
keepdir /usr/share/guile/site |
|
|
85 |
|
86 |
if use emacs; then |
87 |
elisp-install ${PN} emacs/*.{el,elc} || die "elisp-install failed" |
88 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
89 |
|| die "elisp-site-file-install failed" |
90 |
fi |
76 |
} |
91 |
} |
77 |
|
92 |
|
78 |
pkg_postinst() { |
93 |
pkg_postinst() { |
79 |
[ "${ROOT}" == "/" ] && pkg_config |
94 |
[ "${ROOT}" == "/" ] && pkg_config |
|
|
95 |
use emacs && elisp-site-regen |
96 |
} |
97 |
|
98 |
pkg_postrm() { |
99 |
use emacs && elisp-site-regen |
80 |
} |
100 |
} |
81 |
|
101 |
|
82 |
pkg_config() { |
102 |
pkg_config() { |