Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277620 - New package: media-libs/panda3d
Summary: New package: media-libs/panda3d
Status: RESOLVED DUPLICATE of bug 595804
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-07-13 08:26 UTC by Igor Adrov
Modified: 2016-12-12 13:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
panda3d-1.6.2.ebuild (Update) (panda3d-1.6.2.ebuild,2.94 KB, text/plain)
2009-07-13 08:27 UTC, Igor Adrov
Details
CVs version (panda3d-9999.ebuild,5.24 KB, text/plain)
2010-08-13 17:26 UTC, Ștefan Talpalaru
Details
jpegint.h patch (panda3d-jpegint.patch,438 bytes, text/plain)
2010-08-13 17:27 UTC, Ștefan Talpalaru
Details
wrapper script (panda3d,403 bytes, text/plain)
2010-08-13 17:27 UTC, Ștefan Talpalaru
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Adrov 2009-07-13 08:26:46 UTC
Panda3D package is too old.
Comment 1 Igor Adrov 2009-07-13 08:27:59 UTC
Created attachment 197760 [details]
panda3d-1.6.2.ebuild (Update)
Comment 2 Igor Adrov 2009-07-13 08:31:28 UTC
Comment on attachment 197760 [details]
panda3d-1.6.2.ebuild (Update)

><HTML><HEAD/><BODY linkifying="false" linkified="3" linkifytime="257"><PRE># Copyright 1999-2008 Gentoo Foundation
>
># Distributed under the terms of the GNU General Public License v2
>
># $Header: /var/cvsroot/gentoo-x86/media-libs/panda3d/panda3d-1.6.2.ebuild,v 1.2 2009/07/13 13:24:50 nucleartux Exp $
>

>
>inherit eutils python
>

>
>DESCRIPTION="A 3D framework in C++ with python bindings"
>
>HOMEPAGE="<A title="Linkification: http://panda3d.org" href="http://panda3d.org" class="linkification-ext">http://panda3d.org</A>"
>
>SRC_URI="<A title="Linkification: http://panda3d.org/download/$" href="http://panda3d.org/download/$" class="linkification-ext">http://panda3d.org/download/$</A>{P}/${P}-linux32.tar.gz"
>

>
>LICENSE="Panda3D"
>
>SLOT="0"
>
>KEYWORDS="~x86"
>
>IUSE="doc ffmpeg fftw fmod jpeg openal png python ssl tiff truetype zlib"
>

>
>DEPEND="doc? ( dev-python/epydoc )
>
>		ffmpeg? ( media-video/ffmpeg )
>
>		fftw? ( sci-libs/fftw )
>
>		fmod? ( =media-libs/fmod-3* )
>
>		jpeg? ( media-libs/jpeg )
>
>		openal? ( media-libs/openal )
>
>		png? ( media-libs/libpng )
>
>		python? ( dev-lang/python )
>
>		ssl? ( dev-libs/openssl )
>
>		tiff? ( media-libs/tiff )
>
>		truetype? ( media-libs/freetype )
>
>		zlib? ( sys-libs/zlib )
>
>		virtual/opengl"
>

>
>use_no() {
>
>	local UWORD="$2"
>
>	if [ -z "${UWORD}" ]; then
>
>		UWORD="$1"
>
>	fi
>

>
>	if useq $1 ; then
>
>		echo "--use-${UWORD}"
>
>	else
>
>		echo "--no-${UWORD}"
>
>	fi
>
>}
>

>
>pkg_setup() {
>
>	ewarn "Please note that python bindings are now"
>
>	ewarn "set by the python USE flag to coordinate"
>
>	ewarn "with upstream."
>
>}
>

>
>src_unpack() {
>
>	unpack ${A}
>
>	cd "${S}"
>
>	epatch "${FILESDIR}"/${P}-gcc43.patch
>
>}
>

>
>src_compile() {
>
>	./makepanda/makepanda.py \
>
>		$(use_no ffmpeg) \
>
>		$(use_no fftw) \
>
>		$(use_no fmod) \
>
>		$(use_no jpeg) \
>
>		$(use_no png) \
>
>		$(use_no openal) \
>
>		$(use_no python) \
>
>		$(use_no ssl openssl) \
>
>		$(use_no tiff) \
>
>		$(use_no truetype freetype) \
>
>		$(use_no zlib) \
>
>		|| die "build failed"
>
>}
>

>
>src_install() {
>
>	dodir /opt/panda3d
>

>
>	doenvd "${FILESDIR}"/50panda3d
>
>	sed -i -e "s:lib:$(get_libdir):g" \
>
>		"${D}"/etc/env.d/50panda3d \
>
>		|| die "libdir patching failed"
>

>
>	if use doc; then
>
>		cp -R "${S}"/samples "${S}"/built
>
>		cp -R "${S}"/direct/src "${S}"/built/direct/src
>
>		cd "${S}"/built
>
>	fi
>

>
>	if use python ; then
>
>		# python installation
>
>		python_version
>
>		dodir /usr/$(get_libdir)/python${PYVER}/site-packages
>
>		cat &lt;&lt;- EOF &gt; "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/panda3d.pth
>
>		# This document sets up paths for python to access the
>
>		# panda3d modules
>
>		/opt/panda3d
>
>		/opt/panda3d/lib
>
>		/opt/panda3d/direct
>
>		/opt/panda3d/pandac
>
>		/opt/panda3d/built
>
>		/opt/panda3d/built/$(get_libdir)
>
>		EOF
>
>	fi
>

>
>	cp -R "${S}"/direct/src "${S}"/built/direct/
>
>	cp -R "${S}"/built/* "${D}"/opt/panda3d
>
>}
>

>
>pkg_postinst()
>
>{
>
>	elog "Panda3d is installed in /opt/panda3d"
>
>	elog
>
>	if use doc ; then
>
>		elog "Documentation is avaliable in /opt/panda3d/doc"
>
>		elog "Samples are avalaible in /opt/panda3d/samples"
>
>	fi
>
>	elog "For C++ compiling, include directory must be set:"
>
>	elog "g++ -I/opt/panda3d/include [other flags]"
>
>	if use python ; then
>
>		elog
>
>		elog "ppython is depricated and panda3d modules are"
>
>		elog "now installed as standard python modules."
>
>	fi
>
>	elog
>
>	elog "Tutorials avaliable at <A title="Linkification: http://panda3d.org" href="http://panda3d.org" class="linkification-ext">http://panda3d.org</A>"
>
>}
>
></PRE></BODY></HTML>
Comment 3 tinusvl 2009-09-14 23:13:27 UTC
The ebuild looks for http://www.panda3d.org/download/panda3d-1.6.2/panda3d-1.6.2.tar.gz, which does not exist. 
http://www.panda3d.org/download/panda3d-1.6.2/panda3d-1.6.2-linux32.tar.gz and ....-linux64.tar.gz are available.
Comment 4 Philipp B 2010-01-13 19:18:13 UTC
~amd64 would be nice
Comment 5 tinusvl 2010-01-29 23:57:50 UTC
Panda3D-1.7.0 is out.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-07-26 08:16:11 UTC
panda3d was removed from portage, but it can be reintroduced soon as someone is willing to maintain it, so converting this bug to a new package request.
Comment 7 Ștefan Talpalaru 2010-08-13 17:26:29 UTC
Created attachment 242807 [details]
CVs version

new ebuild for the CVS version (1.7.0 doesn't compile with the latest openssl)
changes:
- no more magic dependencies. everything is controlled with use flags
- the ppremake build system is used for its flexibility in specifying linking and inclusion paths
- patched to avoid the inclusion of jpegint.h (an internal header, not installed by media-libs/jpeg)
- custom CFLAGS
- addition of a wrapper script to set environment variables because the old method of adding the library path to /etc/ld.so.conf fails in the case of name clashes (experienced with libnet.so from net-libs/libnet)
Comment 8 Ștefan Talpalaru 2010-08-13 17:27:06 UTC
Created attachment 242809 [details]
jpegint.h patch
Comment 9 Ștefan Talpalaru 2010-08-13 17:27:23 UTC
Created attachment 242811 [details]
wrapper script
Comment 10 Ștefan Talpalaru 2010-08-20 23:18:35 UTC
I'd like to become proxy-maintainer for this package. Any developer interested?
Comment 11 Steffen Schaumburg 2010-09-25 04:58:55 UTC
I've tried installing both ebuilds on ~amd64, but when I try to even digest either of the ebuilds it fails with this error:
steffen panda3d # ebuild panda3d-1.6.2.ebuild digest
: command not foundmedia-libs/panda3d/panda3d-1.6.2.ebuild: line 4: 
 * ERROR: media-libs/panda3d-1.6.2 failed:
.eclass could not be found by inherit()
 * 
 * Call stack:
 *              ebuild.sh, line 1875:  Called source '/usr/local/portage/media-libs/panda3d/panda3d-1.6.2.ebuild'
'*   panda3d-1.6.2.ebuild, line    5:  Called inherit 'eutils' 'python
 *              ebuild.sh, line 1291:  Called die
 * The specific snippet of code:
 *              [ ! -e "$location" ] && die "${1}.eclass could not be found by inherit()"


Any ideas?
Comment 12 Ștefan Talpalaru 2010-10-02 23:03:31 UTC
Creating the manifest for the live ebuild works for me on ~amd64. Your error suggest that you're missing /usr/portage/eclass/eutils.eclass and that's not possible on a normal system.
Comment 13 Steffen Schaumburg 2016-10-02 11:53:10 UTC
Apologies, I complete forgot this old bug before making #595804. As the comments on this bug are no longer relevant* I would suggest closing this one as a duplicate of the newer one.

* except Stefan's, if you still want to maintain it get in touch
Comment 14 Amy Liffey gentoo-dev 2016-12-12 13:22:49 UTC

*** This bug has been marked as a duplicate of bug 595804 ***