Gentoo Archives: gentoo-user-fr

From: Xavier Maillard <zedek@××××××.org>
To: gentoo-user-fr@l.g.o
Subject: [gentoo-user-fr] Un nouvel ebuild soumis a vos critiques
Date: Sat, 25 Mar 2006 10:42:25
Message-Id: 1143283328.14650.3.camel@localhost
1 Plop,
2
3 Je dois etre malchanceux mais tous les softs que j'utilise
4 habituellement n'existe pas sous forme de ebuild.
5
6 Le dernier en date: dosage.
7
8 Dosage est un outil de telechargemenet de webcomics.
9
10 Il permet de les recuperer depuis le web pour les mettre a dispo pour un
11 logiciel de visualisaton (comme comix ou qcomicbook).
12
13 Bref, je me suis fait mon ebuild et je vous le soumet pour le critiquer:
14
15 # Distributed under the terms of the GNU General Public License v2
16 # Xavier Maillard (zedek@×××.org)
17
18 inherit toolchain-funcs distutils
19
20 DESCRIPTION="Dosage is an application designed to keep a local mirror of
21 specific web comics"
22 HOMEPAGE="http://slipgate.za.net/dosage/"
23 SRC_URI="http://slipgate.za.net/dosage/downloads/${P}.tar.gz"
24 LICENSE="GPL-2"
25 SLOT="0"
26 KEYWORDS="~amd64 ~x86"
27 IUSE=""
28 RDEPEND=">=virtual/python-2.3"
29
30 src_compile() {
31 einfo "Nothing to be compiled."
32 }
33
34 src_install() {
35 distutils_src_install
36 python setup.py install 1>/dev/null
37 dobin "${S}"/bin/mainline
38
39 DDOCS="changelog COPYING README"
40 for doc in ${DDOCS}; do
41 [ -s "$doc" ] && dodoc doc/$doc
42 done
43
44 [ -n "${DOCS}" ] && dodoc doc/${DOCS}
45 doman doc/*.1
46 }
47
48 pkg_postinst() {
49 python_version
50 python_mod_optimize /usr/lib/python${PYVER}/site-packages/dosage
51 }
52
53 pkg_postrm() {
54 python_mod_cleanup
55 }
56
57
58 Merci de me faire vos retours.
59
60 Xavier
61 --
62 gentoo-user-fr@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-fr] Un nouvel ebuild soumis a vos critiques Fabrice Delliaux <netfab@×××××.com>