Gentoo Archives: gentoo-amd64

From: Daiajo Tibdixious <daiajo@×××××.com>
To: gentoo-amd64 <gentoo-amd64@l.g.o>
Subject: Re: [gentoo-amd64] Re: simulating apt-get on gentoo
Date: Fri, 22 Apr 2016 03:28:09
Message-Id: CAC4mkfvO6X=gh+ZS2j+Ud1Tp1DBAB=Ub8hP9D3_0YFCKr_xkNg@mail.gmail.com
In Reply to: Re: [gentoo-amd64] Re: simulating apt-get on gentoo by Daiajo Tibdixious
1 Got src_install working except for mysterious (to me) problem:
2 src_install () {
3 into /opt
4 dobin usr/bin/runescape-launcher
5
6 exeinto /opt/${PN}
7 doexe usr/share/games/runescape-launcher/runescape
8
9 insinto /opt/${PN}
10 doins usr/share/games/runescape-launcher/runescape.png
11
12 insinto /usr/share/applications
13 doins usr/share/applications/runescape-launcher.desktop
14
15 insinto /usr/share/kde4/services
16 doins usr/share/kde4/services/*.protocol
17
18 dodoc usr/share/doc/runescape-launcher/changelog.gz
19
20 # usr/share/doc/runescape-launcher/copyright
21
22 for size in 16 24 32 48 64 256 512; do
23 doicon -s ${size}
24 usr/share/icons/hicolor/${size}x${size}/apps/runescape.png
25 done
26 }
27
28 Everything works fine except for the 2 protocol files:
29 # find /var/tmp/portage/games-rpg/RuneScape-2.2.2/image -name "*.protocol"
30 /var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/applications/rs-launchs.protocol
31 /var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/applications/rs-launch.protocol
32
33 Despite saying insinto kde4 services, they go into applications, which
34 is the previous location.
35
36 On Thu, Apr 21, 2016 at 12:58 PM, Daiajo Tibdixious <daiajo@×××××.com> wrote:
37 > Thanks very much for that. I managed to get the fetch & unpack
38 > working, but nothing
39 > I tried for src_install worked, and your code is much neater than mine.
40 >
41 > On Thu, Apr 21, 2016 at 9:59 AM, Jonathan Callen <jcallen@g.o> wrote:
42 >> On 04/18/2016 10:11 PM, Daiajo Tibdixious wrote:
43 >>> dpkg has a native gentoo version app-arch/dpkg but dpkg --unpack gave an error.
44 >>> However ar x worked fine.
45 >>> Ended up with usr/bin/runescape-launcher which is fine, but also
46 >>> usr/share stuff which I'll check for collisions.
47 >>> (this is all in /var/tmp)
48 >>>
49 >>> Thanks very much, you saved me much trouble.
50 >>>
51 >>> Not sure if its just me, but apt is written in c++ using mostly C
52 >>> constructs, and doesn't seem to have been through an oo design.
53 >>> Makes it very weird to try to follow.
54 >>>
55 >>> I won't be able to install/run it today due to being busy.
56 >>>
57 >>
58 >> Attached is my attempt at a proper ebuild for this package. The
59 >> dependencies are based on what the deps *should* have been, not what the
60 >> .deb actually declares. I haven't actually tested this fully.
61 >>
62 >> --
63 >> Jonathan Callen

Replies

Subject Author
Re: [gentoo-amd64] Re: simulating apt-get on gentoo Daiajo Tibdixious <daiajo@×××××.com>
Re: [gentoo-amd64] Re: simulating apt-get on gentoo James Ausmus <james.ausmus@×××××.com>