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

Collapse All | Expand All

(-)/usr/portage/sci-electronics/spice/spice-3.5.5.ebuild (-15 / +16 lines)
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/sci-electronics/spice/spice-3.5.5.ebuild,v 1.5 2007/03/12 18:21:20 calchan Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/spice/spice-3.5.5.ebuild,v 1.5 2007/03/12 18:21:20 calchan Exp $
4
4
5
inherit eutils flag-o-matic
5
inherit eutils flag-o-matic multilib
6
6
7
IUSE=""
7
IUSE=""
8
8
Lines 15-25 Link Here
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="x86 ~ppc ~amd64"
16
KEYWORDS="x86 ~ppc ~amd64"
17
17
18
DEPEND="sys-libs/ncurses
18
RDEPEND="sys-libs/ncurses
19
	|| ( ( x11-libs/libXaw
19
	x11-libs/libXaw"
20
		x11-proto/xproto
20
21
		)
21
DEPEND="${RDEPEND}
22
		virtual/x11 )"
22
	x11-proto/xproto"
23
23
24
S=${WORKDIR}/${MY_P}
24
S=${WORKDIR}/${MY_P}
25
25
Lines 28-34 Link Here
28
	replace-flags -O* -O1
28
	replace-flags -O* -O1
29
29
30
	unpack ${A}
30
	unpack ${A}
31
	cd ${S}
31
	cd "${S}"
32
	# Avoid re-creating WORKDIR due to stupid mtime
32
	# Avoid re-creating WORKDIR due to stupid mtime
33
	touch ..
33
	touch ..
34
34
Lines 36-63 Link Here
36
	sed -i -e "s:termcap:ncurses:g" \
36
	sed -i -e "s:termcap:ncurses:g" \
37
		-e "s:joe:${EDITOR}:g" \
37
		-e "s:joe:${EDITOR}:g" \
38
		-e "s:-O2 -s:${CFLAGS}:g" \
38
		-e "s:-O2 -s:${CFLAGS}:g" \
39
		-e "s:SPICE_DIR)/lib:SPICE_DIR)/lib/spice:g" \
39
		-e "s:SPICE_DIR)/lib:SPICE_DIR)/$(get_libdir)/spice:g" \
40
		-e "s:/usr/local/spice:/usr:g" \
40
		-e "s:/usr/local/spice:/usr:g" \
41
		-e "s:/X11R6::" \
41
		conf/linux
42
		conf/linux
42
	sed -i -e "s:head -1:head -n 1:" util/build
43
	sed -i -e "s:head -1:head -n 1:" util/build
43
	epatch ${FILESDIR}/${P}-gcc-4.1.patch
44
	epatch "${FILESDIR}"/${P}-gcc-4.1.patch
44
}
45
}
45
46
46
src_compile() {
47
src_compile() {
47
	./util/build linux || die
48
	./util/build linux || die "build failed"
48
	obj/bin/makeidx lib/helpdir/spice.txt || die
49
	obj/bin/makeidx lib/helpdir/spice.txt || die "makeidx failed"
49
}
50
}
50
51
51
src_install() {
52
src_install() {
52
	cd ${S}
53
	cd "${S}"
53
	# install binaries
54
	# install binaries
54
	dobin obj/bin/{spice3,nutmeg,sconvert,multidec,proc2mod} || die
55
	dobin obj/bin/{spice3,nutmeg,sconvert,multidec,proc2mod} || die "failed to copy binaries"
55
	newbin obj/bin/help spice.help
56
	newbin obj/bin/help spice.help
56
	dosym /usr/bin/spice3 /usr/bin/spice
57
	dosym /usr/bin/spice3 /usr/bin/spice
57
	# install runtime stuff
58
	# install runtime stuff
58
	rm -f lib/make*
59
	rm -f lib/make*
59
	dodir /usr/lib/spice
60
	dodir /usr/$(get_libdir)/spice
60
	cp -R lib/* ${D}/usr/lib/spice/
61
	cp -R lib/* "${D}"/usr/$(get_libdir)/spice/
61
	# install docs
62
	# install docs
62
	doman man/man1/*.1
63
	doman man/man1/*.1
63
	dodoc readme readme.Linux notes/spice2
64
	dodoc readme readme.Linux notes/spice2

Return to bug 171330