Gentoo Archives: gentoo-user

From: Nagatoro <nagatoro@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Ebuild with scons and sandbox
Date: Tue, 16 Aug 2005 10:50:23
Message-Id: 4301C3DE.6040402@gmail.com
In Reply to: Re: [gentoo-user] [OT] Ebuild with scons and sandbox by Zac Medico
1 Zac Medico wrote:
2 > Maybe you can configure the build so that it won't write outside of the
3 > sandbox. If you post your ebuild then we might be able to help.
4
5 Here it is:
6 # Copyright 1999-2005 Gentoo Foundation
7 # Distributed under the terms of the GNU General Public License v2
8 # $Header: $
9
10 inherit eutils cvs
11
12 DESCRIPTION="A gtk port of DC++, using the unmodified DC++ core"
13 HOMEPAGE="linuxdcpp.berlios.de"
14 SRC_URI=""
15
16 LICENSE="GPL"
17 SLOT="0"
18 KEYWORDS="x86"
19 IUSE=""
20
21 RDEPEND="virtual/x11
22 >=x11-libs/gtk+-2.4.0
23 >=gnome-base/libglade-2.4.0
24 sys-libs/zlib"
25
26 # Haven't found where these live yet
27 # pthread
28 # libbz2
29
30 DEPEND="${RDEPEND}
31 dev-util/scons
32 >=sys-devel/gcc-3.4.0"
33
34
35 ECVS_SERVER="cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp"
36 ECVS_MODULE="linuxdcpp"
37
38 S="${WORKDIR}/linuxdcpp"
39
40 src_unpack() {
41 cvs_src_unpack
42 }
43
44 src_compile() {
45 # Waring message "borrowed" from the enlightenment.eclass
46 # by vapier@g.o
47 eerror "This is a LIVE CVS ebuild."
48 eerror "That means there are NO promises it will work."
49 eerror "If it fails to build, FIX THE CODE YOURSELF"
50 eerror "before reporting any issues."
51
52 scons release=1 || die "scons failed"
53 }
54
55 src_install() {
56 INTO="/usr/local/lib/dcpp"
57 exeinto ${INTO}/
58 doexe dcpp || die "Couldn't copy the binary"
59 # docsinto ${INTO}
60 dodoc *.txt
61 insinto ${INTO}/pixmaps/
62 doins pixmaps/* || die "Couldn't copy the icons"
63 insinto ${INTO}/glade/
64 doins glade/* || die
65 dodir /usr/local/bin
66 dosym ${INTO}/dcpp /usr/local/bin/dcpp
67 }
68
69
70 --
71 Naga
72 --
73 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] Ebuild with scons and sandbox Zac Medico <zmedico@×××××.com>