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

Collapse All | Expand All

(-)/usr/portage/dev-games/ogre/ogre-1.4.2.ebuild (-12 / +17 lines)
Lines 10-16 Link Here
10
10
11
LICENSE="LGPL-2.1"
11
LICENSE="LGPL-2.1"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~x86"
13
KEYWORDS="~amd64 ~x86"
14
IUSE="doc cegui cg devil double-precision examples freeimage gtk openexr threads"
14
IUSE="doc cegui cg devil double-precision examples freeimage gtk openexr threads"
15
RESTRICT="test" #139905
15
RESTRICT="test" #139905
16
16
Lines 50-62 Link Here
50
	unpack ${A}
50
	unpack ${A}
51
	cd "${S}"
51
	cd "${S}"
52
	find -name CVS -print0 | xargs -0 rm -rf
52
	find -name CVS -print0 | xargs -0 rm -rf
53
	if use examples ; then
54
		cp -r Samples install-examples || die
55
		find install-examples \
56
			'(' -name 'Makefile*' -o -name obj -o \
57
			    -name bin -o -name '*.cbp' -o -name '*.vcproj*' ')' \
58
			-print0 | xargs -0 rm -rf
59
	fi
60
	sed -i '/CPPUNIT/d' configure.in || die "sed failed"
53
	sed -i '/CPPUNIT/d' configure.in || die "sed failed"
61
	epatch "${FILESDIR}"/${P}-cegui.patch
54
	epatch "${FILESDIR}"/${P}-cegui.patch
62
	eautoreconf
55
	eautoreconf
Lines 65-71 Link Here
65
src_compile() {
58
src_compile() {
66
	econf \
59
	econf \
67
		--disable-dependency-tracking \
60
		--disable-dependency-tracking \
68
		--disable-ogre-demos \
69
		--enable-static \
61
		--enable-static \
70
		--with-platform=GLX \
62
		--with-platform=GLX \
71
		--with-gui=$(usev gtk || echo Xt) \
63
		--with-gui=$(usev gtk || echo Xt) \
Lines 76-94 Link Here
76
		$(use_enable freeimage) \
68
		$(use_enable freeimage) \
77
		$(use_enable openexr) \
69
		$(use_enable openexr) \
78
		$(use_enable threads threading) \
70
		$(use_enable threads threading) \
71
		$(use_enable examples ogre-demos) \
79
		|| die
72
		|| die
80
	emake || die "emake failed"
73
	emake || die "emake failed"
81
}
74
}
82
75
83
src_install() {
76
src_install() {
84
	emake DESTDIR="${D}" install || die "emake install failed"
77
	einstall || die "einstall failed"
85
	if use doc ; then
78
	if use doc ; then
86
		insinto /usr/share/doc/${PF}/html
79
		insinto /usr/share/doc/${PF}/html
87
		doins -r Docs/* || die "doins Docs failed"
80
		doins -r Docs/* || die "doins Docs failed"
88
	fi
81
	fi
89
	if use examples ; then
82
	if use examples ; then
90
		insinto /usr/share/doc/${PF}/Samples
83
		into /usr/share/OGRE/Samples/
91
		doins -r install-examples/* || die "doins Samples failed"
84
		dobin Samples/Common/bin/*
85
		insinto /usr/share/OGRE/Samples/
86
		insinto /usr/share/OGRE/Samples/bin/
87
		rm -f "${D}/usr/share/OGRE/Samples/bin"/*.in
88
		rm -f "${D}/usr/share/OGRE/Samples/bin"/Makefile*
89
		echo "" > Samples/Common/bin/ogre.cfg
90
		sed -e 's,/usr/local,/usr,g' Samples/Common/bin/plugins.cfg >plugins.cfg.tmp
91
		mv plugins.cfg.tmp Samples/Common/bin/plugins.cfg
92
		insopts -m644
93
		doins Samples/Common/bin/*.cfg
94
		insopts -m666
95
		doins Samples/Common/bin/ogre.cfg
96
		cp -a Samples/Media "${D}/usr/share/OGRE/"
92
	fi
97
	fi
93
	dodoc AUTHORS BUGS LINUX.DEV README
98
	dodoc AUTHORS BUGS LINUX.DEV README
94
}
99
}

Return to bug 138093