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

(-)file_not_specified_in_diff (-11 / +21 lines)
Line  Link Here
0
-- pixie-2.2.6.ebuild
0
++ pixie-2.2.6-r1.ebuild
Lines 1-6 Link Here
1
# Copyright 1999-2009 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/media-gfx/pixie/pixie-2.2.6.ebuild,v 1.1 2009/12/28 20:58:08 flameeyes Exp $
3
# $Header: $
4
4
5
EAPI="2"
5
EAPI="2"
6
inherit eutils multilib autotools
6
inherit eutils multilib autotools
Lines 17-24 Link Here
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
18
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
19
19
20
RDEPEND="!mail-client/nmh
20
RDEPEND="media-libs/jpeg
21
	media-libs/jpeg
22
	media-libs/tiff
21
	media-libs/tiff
23
	media-libs/libpng
22
	media-libs/libpng
24
	x11-libs/fltk:1.1[opengl]
23
	x11-libs/fltk:1.1[opengl]
Lines 43-53 Link Here
43
42
44
src_prepare() {
43
src_prepare() {
45
	# FIX: missing @includedir@
44
	# FIX: missing @includedir@
45
	# https://sf.net/tracker/?func=detail&aid=2923415&group_id=59462&atid=491094
46
	epatch "${FILESDIR}/${P}-autotools.patch"
46
	epatch "${FILESDIR}/${P}-autotools.patch"
47
	eautoreconf
47
	eautoreconf
48
}
49
48
49
	# FIX: removing pre-compiled shaders
50
	# shaders must be removed before of their compilation or make
51
	# parallelism can break the regeneration process, with resulting
52
	# missing shaders.
53
	rm "${S}"/shaders/*.sdr
54
}
50
src_configure() {
55
src_configure() {
56
	# NOTE: the option program-transform-name is used to avoid binary name
57
	# conflict with package: mail-client/nmh (see #295996)
51
	econf \
58
	econf \
52
		$(use_with X x) \
59
		$(use_with X x) \
53
		$(use_enable static-libs static) \
60
		$(use_enable static-libs static) \
Lines 61-82 Link Here
61
		--with-modulesdir=/usr/$(get_libdir)/pixie/modules \
68
		--with-modulesdir=/usr/$(get_libdir)/pixie/modules \
62
		--enable-openexr-threads \
69
		--enable-openexr-threads \
63
		--mandir=/usr/share/man \
70
		--mandir=/usr/share/man \
64
		--bindir=/usr/bin
71
		--bindir=/usr/bin \
72
		--program-transform-name="s/show/pixie-show/"
65
}
73
}
66
67
src_compile() {
74
src_compile() {
68
	emake || die "emake failed"
75
	emake || die "emake failed"
69
76
70
	# regenerating Pixie shaders
77
	# regenerating Pixie shaders - see upstream bug report:
78
	# https://sf.net/tracker/?func=detail&aid=2923407&group_id=59462&atid=491094
71
	einfo "Re-building Pixie Shaders for v${PV} format"
79
	einfo "Re-building Pixie Shaders for v${PV} format"
72
	emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders"
80
	emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders"
73
}
81
}
74
75
src_install() {
82
src_install() {
76
	emake DESTDIR="${D}" install || die "installation failed."
83
	emake DESTDIR="${D}" install || die "installation failed."
77
84
85
	insinto /usr/share/Pixie/textures
86
	doins "${S}"/textures/*
87
78
	# remove useless .la files
88
	# remove useless .la files
79
	find "${D}" -name '*.la' -delete || die
89
	find "${D}" -name '*.la' -delete || die "removal of libarchive files failed"
80
90
81
	dodoc README AUTHORS ChangeLog || die
91
	dodoc README AUTHORS ChangeLog || die
82
}
92
}

Return to bug 299593