cvs ebuild for gentoo linux

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 :wink:

# 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.

the full path to the ebuild could look like this:

/usr/local/portage/media-gfx/blender-cvs/blender-cvs-20031004.ebuild

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

ebuild blender-cvs-20031004.ebuild digest

any other bugs are “welcome” :wink:
cu

EDIT
it works for me :smiley:

Cool!

I’ll try it, not just now thought. :smiley:

Now if only I was using gentoo…

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:

cd build

CFLAGS="-pipe -ffast-math -O3 -march=athlon-4 -mmmx -msse -mfpmath=sse -fomit-frame-pointer" CXXFLAGS=$CFLAGS …/blender/configure

cd …

md debug

cd debug

CFLAGS="-pipe -ffast-math -O -g" CXXFLAGS=$CFLAGS …/blender/configure

ow sorry. this is still the old one :). I got a newer one. updated in 1st post.

neat!

is the cvs version worth it? …stable enough?

the aim of cvs is to have the newest… stable or not :). but the current one is stable. yes…

i wanted to know about the current cvs, yes. :smiley:

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
}

hmm, i’ll have to think about it a bit.
are there any super-great features in the cvs? …that might help me decide

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! :wink:

so emerge blender-cvs, any time… and you have it! btw… there are a few bugfixes in the current tree… yes.

did you post this ebuild on the gentoo bugzilla already? …that’d be nice :smiley:

i’m still thinking it over…

btw… take a look at the current cvs build (just recompiled it)
http://files.blender3d.ch/temporary/cvsblendergui.jpg

IT SEEMS NOT TO BE STABLE! <- really :slight_smile:

I’m working on a tuhopuu2cvs ebuild. cu

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
	&gt;=media-libs/openal-20020127
	&gt;=media-libs/libsdl/libsdl-1.2
	&gt;=media-libs/libvorbis/libvorbis-1.0
	&gt;=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"
}

possible filepath (explanation in 1st post)

file:/usr/local/portage/media-gfx/tuhopuu2-cvs/tuhopuu2-cvs-20031006.ebuild

I will send these to gentoo. oke. maybe I could code one with a selection like blender, tuhopuu1, tuhopuu2, etc. whatever you want.

cu

IT IS STABLE <- had to delete .B.blend… from what I’ve seen 'till now… I can say… it rocks :slight_smile:

script updated! for update see 1. post… I fixed a bug which appears during the installation…

I will make another one for all those who want a non-cvs blender installation at their own.

Totally cool dude! :smiley: