Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, pylon@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-cdr/tkdvd: ChangeLog tkdvd-3.10.1.ebuild tkdvd-4.0.4.ebuild tkdvd-4.0.7.ebuild
Date: Sun, 16 Dec 2007 23:51:48
Message-Id: 20071216234751.GA24034@supernova
1 On 14:50 Sun 16 Dec , Lars Weiler (pylon) wrote:
2 > 1.1 app-cdr/tkdvd/tkdvd-4.0.7.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/tkdvd/tkdvd-4.0.7.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/tkdvd/tkdvd-4.0.7.ebuild?rev=1.1&content-type=text/plain
6
7 > src_install() {
8 > insinto /usr/share/${PF}/src
9 > doins src/*
10 >
11 > exeinto /usr/share/${PF}
12 > doexe TkDVD.sh
13 >
14 > dodir /usr/bin
15 >
16 > cat <<EOF >"${D}"/usr/bin/tkdvd
17 > #!/bin/sh
18 > cd /usr/share/${PF}
19 > ./TkDVD.sh
20 > EOF
21 >
22 > fperms 755 /usr/bin/tkdvd
23 >
24 > dodoc ChangeLog FAQ INSTALL README TODO doc/config_file
25 >
26 > insinto /usr/share/pixmaps
27 > doins icons/*.png
28 > }
29
30 This is a nice counterexample of what Mike wrote the other day about
31 maintaining indentation when using here documents. If the '<<' changed
32 to '<<-', you could indent the script to keep the ebuild more readable.
33
34 Thanks,
35 Donnie
36 --
37 gentoo-dev@g.o mailing list