Gentoo Archives: gentoo-commits

From: "Daniel Pielmeier (billie)" <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/pfl: metadata.xml ChangeLog pfl-1.8.1.ebuild
Date: Sun, 28 Jun 2009 17:59:44
Message-Id: E1MKyfF-0008C8-I5@stork.gentoo.org
1 billie 09/06/28 17:59:41
2
3 Added: metadata.xml ChangeLog pfl-1.8.1.ebuild
4 Log:
5 Initial import. This fixes bug #253074.
6 (Portage version: 2.1.6.13/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 app-portage/pfl/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>no-herd</herd>
20 <maintainer>
21 <email>billie@g.o</email>
22 <name>Daniel Pielmeier</name>
23 </maintainer>
24 <maintainer>
25 <email>bugs@×××××××××××××××.de</email>
26 <description>Upstream author, please CC on bugs</description>
27 </maintainer>
28 <use>
29 <flag name='network-cron'>weekly submit of the package database</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.1 app-portage/pfl/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/ChangeLog?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/ChangeLog?rev=1.1&content-type=text/plain
39
40 Index: ChangeLog
41 ===================================================================
42 # ChangeLog for app-portage/pfl
43 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
44 # $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.1 2009/06/28 17:59:41 billie Exp $
45
46 *pfl-1.8.1 (28 Jun 2009)
47
48 28 Jun 2009; Pielmeier Daniel <billie@g.o> +metadata.xml,
49 +pfl-1.8.1.ebuild:
50 Initial import. Original ebuild by desastre, fixes by me, yngwin and damage.
51 This closes bug #253074.
52
53
54
55
56 1.1 app-portage/pfl/pfl-1.8.1.ebuild
57
58 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/pfl-1.8.1.ebuild?rev=1.1&view=markup
59 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/pfl/pfl-1.8.1.ebuild?rev=1.1&content-type=text/plain
60
61 Index: pfl-1.8.1.ebuild
62 ===================================================================
63 # Copyright 1999-2009 Gentoo Foundation
64 # Distributed under the terms of the GNU General Public License v2
65 # $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-1.8.1.ebuild,v 1.1 2009/06/28 17:59:41 billie Exp $
66
67 inherit python multilib
68
69 DESCRIPTION="PFL is an online searchable file/package database for Gentoo"
70 HOMEPAGE="http://www.portagefilelist.de/index.php/Special:PFLQuery2"
71 SRC_URI="http://files.portagefilelist.de/${P}
72 http://files.portagefilelist.de/e-file"
73
74 LICENSE="GPL-2"
75 SLOT="0"
76 KEYWORDS="~amd64 ~x86"
77 IUSE="network-cron"
78
79 DEPEND="virtual/python"
80 RDEPEND="${DEPEND}
81 net-misc/curl
82 sys-apps/portage"
83
84 RESTRICT="mirror"
85
86 src_unpack() {
87 cp "${DISTDIR}/${P}" "${WORKDIR}/${PN}.py"
88 cp "${DISTDIR}/e-file" "${WORKDIR}/e-file"
89 }
90
91 src_install() {
92 python_version
93
94 if use network-cron ; then
95 cat >> "${T}/${PN}" <<- EOF
96 #!/bin/sh
97 exec nice ${python} -O $(python_get_sitedir)/${PN}/${PN}.py >/dev/null
98 EOF
99
100 exeinto /etc/cron.weekly
101 doexe "${T}/${PN}" || die "install ${PN} cron file failed"
102 fi
103
104 exeinto $(python_get_sitedir)/${PN}
105 doexe ${PN}.py || die "install ${PN}.py failed"
106
107 dobin e-file || die "install e-file failed"
108
109 dodir /var/lib/${PN} || die "directory creation failed"
110 fowners 0:portage /var/lib/${PN}
111 fperms 0775 /var/lib/${PN}
112 }
113
114 pkg_postinst() {
115 python_version
116 python_mod_optimize $(python_get_sitedir)/${PN}
117
118 if [[ ! -e "${ROOT%/}/var/lib/${PN}/lastrun" ]]; then
119 echo -n 0 > "${ROOT%/}/var/lib/${PN}/lastrun"
120 chown -R 0:portage "${ROOT%/}/var/lib/${PN}"
121 chmod -R 775 "${ROOT%/}/var/lib/${PN}"
122 fi
123 }
124
125 pkg_postrm() {
126 python_mod_cleanup
127 }