Gentoo Archives: gentoo-commits

From: "Brian Harring (ferringb)" <ferringb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/pkgcore: ChangeLog pkgcore-0.7.ebuild
Date: Fri, 02 Sep 2011 23:06:43
Message-Id: 20110902230633.4C2312004C@flycatcher.gentoo.org
1 ferringb 11/09/02 23:06:33
2
3 Modified: ChangeLog
4 Added: pkgcore-0.7.ebuild
5 Log:
6 pkgcore 0.7
7
8 (Portage version: 2.1.10.6/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.120 sys-apps/pkgcore/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?rev=1.120&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?rev=1.120&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?r1=1.119&r2=1.120
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v
20 retrieving revision 1.119
21 retrieving revision 1.120
22 diff -u -r1.119 -r1.120
23 --- ChangeLog 6 Aug 2011 21:33:24 -0000 1.119
24 +++ ChangeLog 2 Sep 2011 23:06:33 -0000 1.120
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/pkgcore
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.119 2011/08/06 21:33:24 ferringb Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.120 2011/09/02 23:06:33 ferringb Exp $
30 +
31 +*pkgcore-0.7 (02 Sep 2011)
32 +
33 + 02 Sep 2011; Brian Harring <ferringb@g.o>
34 + +files/0.7-racy-slot-shadowing.patch, +pkgcore-0.7.ebuild:
35 + new CLI tools, bugfixes galore, and heavy refactoring.
36
37 06 Aug 2011; Brian Harring <ferringb@g.o> pkgcore-9999.ebuild:
38 use the standardized googlecode url for checkout
39
40
41
42 1.1 sys-apps/pkgcore/pkgcore-0.7.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pkgcore-0.7.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.ebuild,v 1.1 2011/09/02 23:06:33 ferringb Exp $
52
53 EAPI="3"
54 DISTUTILS_SRC_TEST="setup.py"
55
56 inherit eutils distutils
57
58 DESCRIPTION="pkgcore package manager"
59 HOMEPAGE="http://pkgcore.googlecode.com/"
60 SRC_URI="http://pkgcore.googlecode.com/files/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
65 IUSE="doc"
66
67 RDEPEND=">=dev-lang/python-2.4
68 >=dev-python/snakeoil-0.4.2
69 dev-python/pyparsing
70 || ( >=dev-lang/python-2.5 dev-python/pycrypto )"
71 DEPEND="${RDEPEND}
72 doc? ( >=dev-python/docutils-0.4 )"
73
74 DOCS="AUTHORS NEWS"
75
76 pkg_setup() {
77 # disable snakeoil 2to3 caching...
78 unset PY2TO3_CACHEDIR
79 python_pkg_setup
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}/0.7-racy-slot-shadowing.patch"
84 }
85
86 src_compile() {
87 distutils_src_compile
88
89 if use doc; then
90 ./build_docs.py || die "doc building failed"
91 fi
92 }
93
94 src_install() {
95 distutils_src_install
96
97 if use doc; then
98 dohtml -r doc dev-notes
99 doman man/*.1
100 fi
101
102 dodoc doc/*.rst man/*.rst
103 docinto dev-notes
104 dodoc dev-notes/*.rst
105 }
106
107 pkg_postinst() {
108 distutils_pkg_postinst
109 pplugincache
110
111 if [[ -d "${ROOT}etc/pkgcore/plugins" ]]; then
112 elog "You still have an /etc/pkgcore/plugins from pkgcore 0.1."
113 elog "It is unused by pkgcore >= 0.2, remove it now."
114 die "remove /etc/pkgcore/plugins from pkgcore 0.1"
115 fi
116
117 # This is left behind by pkgcore 0.2.
118 rm -f "${ROOT}"$(python_get_sitedir)/pkgcore/plugins/plugincache
119 }
120
121 pkg_postrm() {
122 # Careful not to remove this on up/downgrades.
123 local sitep="${ROOT}"$(python_get_sitedir)/site-packages
124 if [[ -e "${sitep}/pkgcore/plugins/plugincache2" ]] &&
125 ! [[ -e "${sitep}/pkgcore/plugin.py" ]]; then
126 rm "${sitep}/pkgcore/plugins/plugincache2"
127 fi
128 distutils_pkg_postrm
129 }