Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499386
Collapse All | Expand All

(-)/usr/portage/dev-scheme/guile/guile-1.8.8-r1.ebuild (-20 / +37 lines)
Lines 2-9 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.8-r1.ebuild,v 1.16 2013/04/24 22:53:08 pchrist Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/guile-1.8.8-r1.ebuild,v 1.16 2013/04/24 22:53:08 pchrist Exp $
4
4
5
EAPI=3
5
EAPI=4
6
inherit eutils autotools flag-o-matic elisp-common
6
inherit eutils autotools-multilib flag-o-matic elisp-common
7
7
8
DESCRIPTION="Scheme interpreter"
8
DESCRIPTION="Scheme interpreter"
9
HOMEPAGE="http://www.gnu.org/software/guile/"
9
HOMEPAGE="http://www.gnu.org/software/guile/"
Lines 15-26 Link Here
15
RESTRICT="!regex? ( test )"
15
RESTRICT="!regex? ( test )"
16
16
17
DEPEND="
17
DEPEND="
18
	>=dev-libs/gmp-4.1
18
	>=dev-libs/gmp-4.1[${MULTILIB_USEDEP}]
19
	>=sys-devel/libtool-1.5.6
19
	>=sys-devel/libtool-1.5.6[${MULTILIB_USEDEP}]
20
	sys-devel/gettext
20
	sys-devel/gettext[${MULTILIB_USEDEP}]
21
	emacs? ( virtual/emacs )"
21
	emacs? ( virtual/emacs )"
22
RDEPEND="${DEPEND}"
22
RDEPEND="${DEPEND}"
23
23
24
MULTILIB_WRAPPED_HEADERS=(
25
	usr/include/libguile/scmconfig.h
26
)
27
24
# Guile seems to contain some slotting support, /usr/share/guile/ is slotted,
28
# Guile seems to contain some slotting support, /usr/share/guile/ is slotted,
25
# but there are lots of collisions. Most in /usr/share/libguile. Therefore
29
# but there are lots of collisions. Most in /usr/share/libguile. Therefore
26
# I'm slotting this in the same slot as guile-1.6* for now.
30
# I'm slotting this in the same slot as guile-1.6* for now.
Lines 36-49 Link Here
36
		-e "/AM_PROG_CC_STDC/d" \
40
		-e "/AM_PROG_CC_STDC/d" \
37
		-i guile-readline/configure.in
41
		-i guile-readline/configure.in
38
	eautoreconf
42
	eautoreconf
43
44
	multilib_copy_sources
39
}
45
}
40
46
41
src_configure() {
47
multilib_src_configure() {
42
	# see bug #178499
48
	# see bug #178499
43
	filter-flags -ftree-vectorize
49
	filter-flags -ftree-vectorize
44
50
45
	#will fail for me if posix is disabled or without modules -- hkBst
51
	#will fail for me if posix is disabled or without modules -- hkBst
46
	econf \
52
	myconf=(
47
		--disable-error-on-warning \
53
		--disable-error-on-warning \
48
		--disable-static \
54
		--disable-static \
49
		--enable-posix \
55
		--enable-posix \
Lines 51-57 Link Here
51
		$(use_enable regex) \
57
		$(use_enable regex) \
52
		$(use deprecated || use_enable discouraged) \
58
		$(use deprecated || use_enable discouraged) \
53
		$(use_enable deprecated) \
59
		$(use_enable deprecated) \
54
		$(use_enable emacs elisp) \
55
		$(use_enable nls) \
60
		$(use_enable nls) \
56
		--disable-rpath \
61
		--disable-rpath \
57
		$(use_enable debug-freelist) \
62
		$(use_enable debug-freelist) \
Lines 60-82 Link Here
60
		$(use_with threads) \
65
		$(use_with threads) \
61
		--with-modules \
66
		--with-modules \
62
		EMACS=no
67
		EMACS=no
68
	)
69
70
	if multilib_build_binaries; then
71
		myconf+=( $(use_enable emacs elisp) )
72
	else
73
		myconf+=( --disable-elisp )
74
	fi
75
76
	econf \
77
		${myconf[@]}
63
}
78
}
64
79
65
src_compile()  {
80
multilib_src_compile()  {
66
	emake || die "make failed"
81
	emake
67
82
68
	# Above we have disabled the build system's Emacs support;
83
	# Above we have disabled the build system's Emacs support;
69
	# for USE=emacs we compile (and install) the files manually
84
	# for USE=emacs we compile (and install) the files manually
70
	if use emacs; then
85
	if multilib_build_binaries && use emacs; then
71
		cd emacs
86
		cd "${S}"/emacs
72
		elisp-compile *.el || die
87
		elisp-compile *.el || die
73
	fi
88
	fi
74
}
89
}
75
90
76
src_install() {
91
multilib_src_install() {
77
	einstall || die "install failed"
92
	einstall libdir="${D}/usr/$(get_libdir)" || die
78
93
79
	dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS || die
94
	if multilib_build_binaries && use emacs; then
95
		elisp-install ${PN} "${S}"/emacs/*.{el,elc} || die
96
		elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" || die
97
	fi
98
}
99
100
multilib_src_install_all() {
101
	dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS
80
102
81
	# texmacs needs this, closing bug #23493
103
	# texmacs needs this, closing bug #23493
82
	dodir /etc/env.d
104
	dodir /etc/env.d
Lines 84-94 Link Here
84
106
85
	# necessary for registering slib, see bug 206896
107
	# necessary for registering slib, see bug 206896
86
	keepdir /usr/share/guile/site
108
	keepdir /usr/share/guile/site
87
88
	if use emacs; then
89
		elisp-install ${PN} emacs/*.{el,elc} || die
90
		elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" || die
91
	fi
92
}
109
}
93
110
94
pkg_postinst() {
111
pkg_postinst() {

Return to bug 499386