1 |
Hi, |
2 |
|
3 |
(on the road to switching to tcl/tk-8.5.3) |
4 |
I'd like to install the svn-version of media-gfx/skencil |
5 |
|
6 |
Since I have next to no experience in writing ebuilds, |
7 |
I need some help. |
8 |
|
9 |
This is my current attempt: |
10 |
|
11 |
file skencil-9999.ebuild |
12 |
------------------------------- |
13 |
# Copyright 1999-2008 Gentoo Foundation |
14 |
# Distributed under the terms of the GNU General Public License v2 |
15 |
# $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 $ |
16 |
|
17 |
inherit python multilib eutils subversion flag-o-matic |
18 |
|
19 |
IUSE="nls" |
20 |
ESVN_REPO_URI="https://scm.wald.intevation.org/svn/skencil/skencil/trunk" |
21 |
ESVN_PROJECT="Skencil" |
22 |
|
23 |
S="${WORKDIR}/${PN}" |
24 |
|
25 |
DESCRIPTION="Interactive X11 vector drawing program" |
26 |
HOMEPAGE="http://www.skencil.org/" |
27 |
DEPEND=">=dev-python/imaging-1.1.2-r1 |
28 |
dev-python/reportlab |
29 |
dev-lang/tk |
30 |
nls? ( sys-devel/gettext )" |
31 |
RDEPEND="!elibc_glibc? ( nls? ( sys-devel/gettext ) ) |
32 |
dev-python/pyxml" |
33 |
SLOT="0" |
34 |
LICENSE="GPL-2" |
35 |
KEYWORDS="amd64 hppa ppc ppc64 sparc x86" |
36 |
|
37 |
pkg_setup() { |
38 |
python_tkinter_exists |
39 |
} |
40 |
|
41 |
src_unpack() { |
42 |
subversion_src_unpack |
43 |
cd "${S}" |
44 |
|
45 |
# Fix hardcoded libdir |
46 |
sed -i -e "s:lib/:$(get_libdir)/:" \ |
47 |
-e "s:lib':$(get_libdir)':" \ |
48 |
"${S}"/{Filter,Sketch/Modules}/Makefile.pre.in \ |
49 |
"${S}"/w32setup.py \ |
50 |
"${S}"/setup.py || die "sed failed" |
51 |
} |
52 |
|
53 |
src_compile() { |
54 |
cd "${S}" |
55 |
python setup.py build |
56 |
|
57 |
} |
58 |
|
59 |
src_install () { |
60 |
python setup.py install --prefix=/usr --root="${D}" || die "setup failed" |
61 |
|
62 |
newdoc Tools/README README.tools |
63 |
newdoc Filter/README README.filter |
64 |
dodoc Examples Doc |
65 |
dodoc README INSTALL CREDITS TODO NEWS |
66 |
} |
67 |
|
68 |
------------------------------- |
69 |
|
70 |
It builds fine but installs partially into /usr/lib/skencil-cvs |
71 |
and /usr/share/skencil-9999. |
72 |
|
73 |
I need to do a symlink |
74 |
ln -s /usr/lib/skencil-cvs/skencil.py /usr/bin/skencil |
75 |
|
76 |
More seriously it fails when invoked with |
77 |
|
78 |
Traceback (most recent call last): |
79 |
File "/usr/bin/skencil", line 55, in <module> |
80 |
import Sketch.UI |
81 |
File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 22, in <module> |
82 |
|
83 |
IOError: [Errno 2] No such file or directory: '/usr/lib/skencil-cvs/Sketch/VERSION' |
84 |
|
85 |
|
86 |
Many thanks for a hint, |
87 |
|
88 |
Helmut Jarausch |
89 |
|
90 |
Lehrstuhl fuer Numerische Mathematik |
91 |
RWTH - Aachen University |
92 |
D 52056 Aachen, Germany |