hey guys. I made a ebuild for gentoo linux. with this you can emerge directly from cvs. I’m not quite sure about if it works, but I’m compiling blender with it.
I dont know if this is a “good” ebuild. at least it works
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/media-gfx/blender-cvs/blender-cvs-20031004.ebuild,v 1.0 2003/10/04 17:05:01 chimera Exp $
ECVS_SERVER="cvs.blender.org:/cvsroot/bf-blender"
ECVS_MODULE="blender"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_AUTH="pserver"
#ECVS_BRANCH=""
inherit cvs
IUSE=""
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="3D Creation/Animation/Publishing System"
HOMEPAGE="http://www.blender.org/"
SRC_URI=""
SLOT="0"
LICENSE="GPL-2 | BL"
KEYWORDS="~x86 ~ppc"
DEPEND="virtual/x11
>=media-libs/openal-20020127
>=media-libs/libsdl/libsdl-1.2
>=media-libs/libvorbis/libvorbis-1.0
>=dev-libs/openssl/openssl-0.9.6"
src_unpack() {
cvs_src_unpack
}
src_compile() {
cd ${S}
./bootstrap || die "bootstrap failed"
mkdir ${WORKDIR}/blender_compiledir
cd ${WORKDIR}/blender_compiledir
${S}/configure || die "configure failed"
make || die "make failed"
}
src_install() {
cd ${WORKDIR}/blender_compiledir
einstall || die "make install failed"
}
now how to use this. I did the following: 1.) put the ebuild in your portoverlay dir.
portoverlay is used to store your local ebuilds. the folder is named blender-cvs… to diffrentiate from the “normal” blender ebuilds.
2.) emerge
now either type “emerge blender-cvs” or switch to the directory containing the ebuild and type “emerge filename”
known bug(s)
if you got bugs like this
bash-2.05b# emerge blender-cvs-20031004.ebuild -p
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] media-gfx/blender-cvs-20031004
bash-2.05b# emerge blender-cvs-20031004.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/blender-cvs-20031004 to /
--- No package manifest found: /usr/local/portage/media-gfx/blender-cvs/Manifest
!!! No package digest file found: /usr/local/portage/media-gfx/blender-cvs/files/digest-blender-cvs-20031004
!!! Type "ebuild foo.ebuild digest" to generate it.
bash-2.05b#
just go to the directory containing the ebuild and type
Just one suggestion:
You should build Blender in a seperate directory. This is because running ./configure will overwrite the NaN makefiles, ie if you have
ls
blender
cd blender
./bootstrap
cd …
md build
cd build
…/blender/configure
This also means you can do multiple builds with different options, eg debug & optimised:
i supose it’s installed separatly from the “normal” blender release. …and i hope its /usr/bin/ symlink is blender-cvs …so it’s possible to run both the stable and the cvs version at the same time.
nope. it’s installed as blender. maybe I can do this for you. but I like it like this :).
cu
EDIT
this is an ebuild I had once. it installs blender2.23 which is seperated from the normal blender. you can launch it with blenderOLD. you could apply this method to blender-cvs ebuild… if you don’t want to… no problem. i’ll have alook on it somewhen this week. btw. this ebuild is not written by me :).
cu
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/media-gfx/blender/blender-2.23-r1.ebuild,v 1.4 2003/02/13 12:30:33 vapier Exp $
S=${WORKDIR}/blenderOLD-creator-${PV}-linux-glibc2.1.2-i386
DESCRIPTION="Extremely fast and versatile 3D rendering package"
SRC_URI="http://www.download.blender.pl/mirror/blender-creator-${PV}-linux-glibc2.1.2-i386.tar.gz http://www.download.blender.pl/mirror/manual_1.5.zip"
HOMEPAGE="http://www.blender.org"
SLOT="0"
LICENSE="blender"
KEYWORDS="x86 -ppc -sparc "
DEPEND="app-arch/unzip"
RDEPEND="virtual/x11
sys-libs/lib-compat"
src_install () {
dodir /opt
cd ${D}/opt
tar xzf ${DISTDIR}/blender-creator-${PV}-linux-glibc2.1.2-i386.tar.gz
mv blender-creator-${PV}-linux-glibc2.1.2-i386 blender-${PV}
dodir /usr/share/doc/${P}
cd ${D}/usr/share/doc/${P}
unzip ${DISTDIR}/manual_1.5.zip
mv manual_1.5 html
insinto /usr/bin
insopts -m755
newins ${FILESDIR}/${P} blenderOLD
dodir /usr/bin
dosym /opt/blender-${PV}/blender /usr/bin/blenderOLD
dodoc README
}
the question (for me) is not if it is worthy to download, compille, etc. the main aim of this ebulid is to have ONE ebuild. Im sick of writing an ebuild for each version!
so emerge blender-cvs, any time… and you have it! btw… there are a few bugfixes in the current tree… yes.
EDIT
the tuhopuu2 cvs is temporarily unavailable. anyways. its not a big diffrenz between blender ebuild and tuhopuu. so here is the ebuild. it should work.
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/media-gfx/blender-cvs/blender-cvs-20031006.ebuild,v 1.0 2003/10/04 17:05:01 chimera Exp $
ECVS_SERVER="cvs.blender.org:/cvsroot/tuhopuu"
ECVS_MODULE="tuhopuu2"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_AUTH="pserver"
#ECVS_BRANCH=""
inherit cvs
IUSE=""
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="A playground for blendercoders for experimental new features without fear of breaking the main project"
HOMEPAGE="http://www.blender.org/"
SRC_URI=""
SLOT="0"
LICENSE="GPL-2 | BL"
KEYWORDS="~x86 ~ppc"
DEPEND="virtual/x11
>=media-libs/openal-20020127
>=media-libs/libsdl/libsdl-1.2
>=media-libs/libvorbis/libvorbis-1.0
>=dev-libs/openssl/openssl-0.9.6"
src_unpack() {
cvs_src_unpack
}
src_compile() {
cd ${S}
./bootstrap || die "bootstrap failed"
mkdir ${WORKDIR}/tuhopuu2_compiledir
cd ${WORKDIR}/tuhopuu2_compiledir
${S}/configure || die "configure failed"
make || die "make failed"
}
src_install() {
make install -s || die "make install failed"
}