Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, ticho@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-mail/getmail: ChangeLog getmail-4.7.7.ebuild
Date: Fri, 09 Nov 2007 08:13:42
Message-Id: 20071109081054.GY5516@supernova
1 On 18:12 Thu 08 Nov , Andrej Kacian (ticho) wrote:
2 > 1.1 net-mail/getmail/getmail-4.7.7.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/getmail/getmail-4.7.7.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/getmail/getmail-4.7.7.ebuild?rev=1.1&content-type=text/plain
6
7 > src_compile() {
8 > distutils_src_compile
9 > }
10
11 This is the default.
12
13 >
14 > src_install() {
15 > distutils_src_install
16 >
17 > if has_version "=net-mail/getmail-3*" ; then
18 > mv ${D}/usr/bin/getmail ${D}/usr/bin/getmail4
19 > mv ${D}/usr/bin/getmail_maildir ${D}/usr/bin/getmail_maildir4
20 > mv ${D}/usr/bin/getmail_mbox ${D}/usr/bin/getmail_mbox4
21 > fi
22 >
23 > # handle docs the gentoo way
24 > if [ ${P} != ${PF} ]; then
25 > mv ${D}/usr/share/doc/${P} ${D}/usr/share/doc/${PF}
26 > fi
27 >
28 > dodir /usr/share/doc/${PF}/html
29 > mv ${D}/usr/share/doc/${PF}/*.html ${D}/usr/share/doc/${PF}/*.css ${D}/usr/share/doc/${PF}/html
30 > }
31
32 All kinds of quoting issues, did you check repoman warnings?
33
34 >
35 > pkg_postinst() {
36 > python_version
37 > python_mod_optimize /usr/lib/python${PYVER}/site-packages/getmailcore
38
39 Could call distutils_pkg_postinst() instead of these.
40
41 > pkg_postrm() {
42 > python_version
43 > python_mod_cleanup
44 > }
45
46 This is the default.
47
48 Thanks,
49 Donnie
50 --
51 gentoo-dev@g.o mailing list