Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 446772 Details for
Bug 594448
games-simulation/powdertoy - Ebuilds for the Powder Toy, a physics sandbox game
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
powdertoy-91.5.9999.ebuild: Live ebuild for stable version of the Powder Toy
powdertoy-91.5.9999.ebuild (text/plain), 5.43 KB, created by
DurianCakes
on 2016-09-20 04:50:17 UTC
(
hide
)
Description:
powdertoy-91.5.9999.ebuild: Live ebuild for stable version of the Powder Toy
Filename:
MIME Type:
Creator:
DurianCakes
Created:
2016-09-20 04:50:17 UTC
Size:
5.43 KB
patch
obsolete
># Copyright 1999-2016 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Id$ > >EAPI=6 > >inherit fdo-mime git-r3 scons-utils > >DESCRIPTION="Desktop version of the classic 'falling sand' physics sandbox" >HOMEPAGE="http://powdertoy.co.uk/" >EGIT_REPO_URI="https://github.com/simtr/The-Powder-Toy.git" >EGIT_BRANCH="stable" > >LICENSE="GPL-3" >SLOT="0" >KEYWORDS="" >IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 +fftw +lua" > >DEPEND="app-arch/bzip2 > lua? ( dev-lang/lua ) > dev-util/scons > media-libs/libsdl > fftw? ( sci-libs/fftw:3.0/3 ) > sys-libs/zlib" >RDEPEND="${DEPEND}" > >PATCHES=( > ${FILESDIR}/${PN}-disable-sse-config-automagic.patch >) > >src_prepare() { > default >} > >src_compile() { > # Define all the project-specific comilation options as variables to ease > # maintenance burden. > scons_commonargs="--debugging --symbols" > scons_sse="--sse" > scons_sse2="--sse2" > scons_sse3="--sse3" > scons_nolua="--nolua" > scons_nofftw="--nofft" > scons_nosse_commonargs="--no-sse ${scons_commonargs}" > scons_sse_commonargs="${scons_sse} ${scons_commonargs}" > scons_sse_sse2_commonargs="${scons_sse} ${scons_sse2} ${scons_commonargs}" > scons_sse_sse3_commonargs="${scons_sse} ${scons_sse3} ${scons_commonargs}" > scons_allsse_commonargs="${scons_sse} ${scons_sse2} ${scons_sse3} ${scons_commonargs}" > > # If cpu_flags_x86_sse is disabled, build the Powder Toy without any SSE support, > # even if the cpu_flags_x86_sse2 or cpu_flags_x86_sse3 use flags are enabled > > # Also pass the project-specific debugging and symbols flags so that the > # Powder Toy binary isn't automatically stripped by the project's SConscript. > # This lets portage decide whether or not to strip the binary. > > if ! use cpu_flags_x86_sse ; then > if use cpu_flags_x86_sse2 || use cpu_flags_x86_sse3 ; then > ewarn "cpu_flags_x86_sse2 and/or cpu_flags_x86_sse3 is enabled, but cpu_flags_x86_sse is disabled" > ewarn "This software will be built without any SSE optimizations." > fi > > if ! use fftw && ! use lua ; then > escons ${scons_nosse_commonargs} ${scons_nofftw} ${scons_nolua} > elif use fftw && ! use lua ; then > escons ${scons_nosse_commonargs} ${scons_nolua} > elif ! use fftw && use lua ; then > escons ${scons_nosse_commonargs} ${scons_nofftw} > else > escons ${scons_nosse_commonargs} > fi > > elif use cpu_flags_x86_sse && ! use cpu_flags_x86_sse2 && ! use cpu_flags_x86_sse3 ; then > if ! use fftw && ! use lua ; then > escons ${scons_sse_commonargs} ${scons_nofftw} ${scons_nolua} > elif use fftw && ! use lua ; then > escons ${scons_sse_commonargs} ${scons_nolua} > elif ! use fftw && use lua ; then > escons ${scons_sse_commonargs} ${scons_nofftw} > else > escons ${scons_sse_commonargs} > fi > > elif use cpu_flags_x86_sse && use cpu_flags_x86_sse2 && ! use cpu_flags_x86_sse3 ; then > if ! use fftw && ! use lua ; then > escons ${scons_sse_sse2_commonargs} ${scons_nofftw} ${scons_nolua} > elif use fftw && ! use lua ; then > escons ${scons_sse_sse2_commonargs} ${scons_nolua} > elif ! use fftw && use lua ; then > escons ${scons_sse_sse2_commonargs} ${scons_nofftw} > else > escons ${scons_sse_sse2_commonargs} > fi > > elif use cpu_flags_x86_sse && ! use cpu_flags_x86_sse2 && use cpu_flags_x86_sse3 ; then > if ! use fftw && ! use lua ; then > escons ${scons_sse_sse3_commonargs} ${scons_nofftw} ${scons_nolua} > elif use fftw && ! use lua ; then > escons ${scons_sse_sse3_commonargs} ${scons_nolua} > elif ! use fftw && use lua ; then > escons ${scons_sse_sse3_commonargs} ${scons_nofftw} > else > escons ${scons_sse_sse3_commonargs} > fi > > else > if ! use fftw && ! use lua ; then > escons ${scons_allsse_commonargs} ${scons_nofftw} ${scons_nolua} > elif use fftw && ! use lua ; then > escons ${scons_allsse_commonargs} ${scons_nolua} > elif ! use fftw && use lua ; then > escons ${scons_allsse_commonargs} ${scons_nofftw} > else > escons ${scons_allsse_commonargs} > fi > fi >} > >src_install() { > MY_D="${D}/usr/bin" > symlink="${MY_D}/powder" > dodir "/usr/bin/" > > # Copy the binary over to the specified path. The name of the binary will differ > # depending on the architecture the powder toy is built on, as well as whether or > # not it was built with sse support. > # See http://powdertoy.co.uk/Wiki/W/Compiling_TPT%2B%2B_on_debian/ubuntu.html > if ! use cpu_flags_x86_sse && use amd64 ; then > cp -R "${S}/build/powder64-legacy" "${MY_D}" || die "Install failed!" > ln -s "${MY_D}/powder64-legacy" "${symlink}" || die "Install failed!" > elif ! use cpu_flags_x86_sse && ! use amd64 ; then > cp -R "${S}/build/powder-legacy" "${MY_D}" || die "Install failed!" > ln -s "${MY_D}/powder-legacy" "${symlink}" || die "Install failed!" > elif use cpu_flags_x86_sse && use amd64 ; then > cp -R "${S}/build/powder64" "${MY_D}" || die "Install failed!" > ln -s "${MY_D}/powder64" "${symlink}" || die "Install failed!" > else > cp -R "${S}/build/powder" "${MY_D}" || die "Install failed!" > fi > > # Install icon > dodir "/usr/share/icons/hicolor/48x48/apps/" || die "Install failed!" > cp -R "${FILESDIR}/powder-48.png" "${D}/usr/share/icons/hicolor/48x48/apps/" || die "Install failed!" > > # Install .desktop file > dodir "/usr/share/applications/" || die "Install failed!" > cp -R "${FILESDIR}/powder.desktop" "${D}/usr/share/applications/" || die "Install failed!" > > dodoc README TODO || die "Install failed!" >} > >pkg_postinst() { > # Tell the user how to launch the Powder Toy after it's installed. > elog "To launch the Powder Toy, just type: \"powder\"." > fdo-mime_desktop_database_update >} > >pkg_postrm() { > fdo-mime_desktop_database_update >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 594448
:
446770
|
446772
|
446774
|
447008
|
447010
|
447012
|
459584
|
459586
|
459588
|
469014