Hi, (on the road to switching to tcl/tk-8.5.3) I'd like to install the svn-version of media-gfx/skencil
Since I have next to no experience in writing ebuilds, I need some help. This is my current attempt: file skencil-9999.ebuild ------------------------------- # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/skencil/skencil-0.6.18_pre20080519.ebuild,v 1.7 2008/07/18 01:59:46 jer Exp $ inherit python multilib eutils subversion flag-o-matic IUSE="nls" ESVN_REPO_URI="https://scm.wald.intevation.org/svn/skencil/skencil/trunk" ESVN_PROJECT="Skencil" S="${WORKDIR}/${PN}" DESCRIPTION="Interactive X11 vector drawing program" HOMEPAGE="http://www.skencil.org/" DEPEND=">=dev-python/imaging-1.1.2-r1 dev-python/reportlab dev-lang/tk nls? ( sys-devel/gettext )" RDEPEND="!elibc_glibc? ( nls? ( sys-devel/gettext ) ) dev-python/pyxml" SLOT="0" LICENSE="GPL-2" KEYWORDS="amd64 hppa ppc ppc64 sparc x86" pkg_setup() { python_tkinter_exists } src_unpack() { subversion_src_unpack cd "${S}" # Fix hardcoded libdir sed -i -e "s:lib/:$(get_libdir)/:" \ -e "s:lib':$(get_libdir)':" \ "${S}"/{Filter,Sketch/Modules}/Makefile.pre.in \ "${S}"/w32setup.py \ "${S}"/setup.py || die "sed failed" } src_compile() { cd "${S}" python setup.py build } src_install () { python setup.py install --prefix=/usr --root="${D}" || die "setup failed" newdoc Tools/README README.tools newdoc Filter/README README.filter dodoc Examples Doc dodoc README INSTALL CREDITS TODO NEWS } ------------------------------- It builds fine but installs partially into /usr/lib/skencil-cvs and /usr/share/skencil-9999. I need to do a symlink ln -s /usr/lib/skencil-cvs/skencil.py /usr/bin/skencil More seriously it fails when invoked with Traceback (most recent call last): File "/usr/bin/skencil", line 55, in <module> import Sketch.UI File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 22, in <module> IOError: [Errno 2] No such file or directory: '/usr/lib/skencil-cvs/Sketch/VERSION' Many thanks for a hint, Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany