Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 314033 | Differences between
and this patch

Collapse All | Expand All

(-)expect-5.44.1.ebuild (-19 / +4 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
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-tcltk/expect/expect-5.44.1.ebuild,v 1.6 2010/04/02 09:44:28 jlec Exp $
3
# $Header: $
4
4
5
EAPI="3"
5
EAPI="3"
6
6
Lines 9-15 Link Here
9
9
10
DESCRIPTION="tool for automating interactive applications"
10
DESCRIPTION="tool for automating interactive applications"
11
HOMEPAGE="http://expect.nist.gov/"
11
HOMEPAGE="http://expect.nist.gov/"
12
SRC_URI="http://expect.nist.gov/src/${P}.tar.gz"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
13
13
14
LICENSE="BSD"
14
LICENSE="BSD"
15
SLOT="0"
15
SLOT="0"
Lines 23-30 Link Here
23
	>=dev-lang/tk-8.2"
23
	>=dev-lang/tk-8.2"
24
RDEPEND="${DEPEND}"
24
RDEPEND="${DEPEND}"
25
25
26
RESTRICT="test"
27
28
src_prepare() {
26
src_prepare() {
29
	# fix install_name on darwin
27
	# fix install_name on darwin
30
	[[ ${CHOST} == *-darwin* ]] && \
28
	[[ ${CHOST} == *-darwin* ]] && \
Lines 38-55 Link Here
38
		-e 's/^SCRIPTS_MANPAGES = /_&/' \
36
		-e 's/^SCRIPTS_MANPAGES = /_&/' \
39
		Makefile.in
37
		Makefile.in
40
38
41
	#they forgot to include expect.m4 (now it's in expect cvs)
42
	cp "${FILESDIR}/expect.m4" .
43
	#configure broken for testsuite
44
	sed -i -e 's/^AC_CONFIG_SUBDIRS(testsuite)$//' configure.in
45
	#fixes "TCL_REG_BOSONLY undeclared" error due to a change in tcl8.5
46
	sed -i -e 's/^#include "tcl.h"/#include "tclInt.h"/' exp_inter.c
47
	#slacky destdir support in Makefile
48
	epatch "${FILESDIR}/${P}-destdir.patch"
49
50
	epatch "${FILESDIR}/${P}-gfbsd.patch"
39
	epatch "${FILESDIR}/${P}-gfbsd.patch"
51
40
	epatch "${FILESDIR}/${PN}-5.44.1-ldflags.patch"
52
	epatch "${FILESDIR}/${P}-ldflags.patch"
53
41
54
	eautoconf
42
	eautoconf
55
}
43
}
Lines 85-91 Link Here
85
	# we need dejagnu to do tests ... but dejagnu needs
73
	# we need dejagnu to do tests ... but dejagnu needs
86
	# expect ... so don't do tests unless we have dejagnu
74
	# expect ... so don't do tests unless we have dejagnu
87
	type -p runtest || return 0
75
	type -p runtest || return 0
88
	make check || die "make check failed"
76
	emake test || die "emake test failed"
89
}
77
}
90
78
91
src_install() {
79
src_install() {
Lines 94-102 Link Here
94
82
95
	dodoc ChangeLog FAQ HISTORY NEWS README
83
	dodoc ChangeLog FAQ HISTORY NEWS README
96
84
97
	local static_lib="lib${NON_MICRO_V/-/}.a"
98
	rm "${ED}"/usr/$(get_libdir)/${NON_MICRO_V/-/}/${static_lib}
99
100
	#install examples if 'doc' is set
85
	#install examples if 'doc' is set
101
	if use doc ; then
86
	if use doc ; then
102
		docinto examples
87
		docinto examples

Return to bug 314033