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.6.1.ebuild pkgcore-0.7.6.ebuild
Date: Thu, 01 Dec 2011 09:21:45
Message-Id: 20111201092128.A71C22004B@flycatcher.gentoo.org
1 ferringb 11/12/01 09:21:28
2
3 Modified: ChangeLog
4 Added: pkgcore-0.7.6.1.ebuild
5 Removed: pkgcore-0.7.6.ebuild
6 Log:
7 punt 0.7.6; has a nasty portage configuration bug. Add 0.7.6.1 carrying the fix
8
9 (Portage version: 2.1.10.37/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.133 sys-apps/pkgcore/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?rev=1.133&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?rev=1.133&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/ChangeLog?r1=1.132&r2=1.133
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v
21 retrieving revision 1.132
22 retrieving revision 1.133
23 diff -u -r1.132 -r1.133
24 --- ChangeLog 30 Nov 2011 23:03:31 -0000 1.132
25 +++ ChangeLog 1 Dec 2011 09:21:28 -0000 1.133
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-apps/pkgcore
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.132 2011/11/30 23:03:31 ferringb Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.133 2011/12/01 09:21:28 ferringb Exp $
31 +
32 +*pkgcore-0.7.6.1 (01 Dec 2011)
33 +
34 + 01 Dec 2011; Brian Harring <ferringb@g.o> -pkgcore-0.7.6.ebuild,
35 + +pkgcore-0.7.6.1.ebuild:
36 + Fix rather user visible bug in portage configuration introduced in 0.7.6.
37
38 *pkgcore-0.7.6 (30 Nov 2011)
39
40
41
42
43 1.1 sys-apps/pkgcore/pkgcore-0.7.6.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.6.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.6.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pkgcore-0.7.6.1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.7.6.1.ebuild,v 1.1 2011/12/01 09:21:28 ferringb Exp $
53
54 EAPI="3"
55 DISTUTILS_SRC_TEST="setup.py"
56
57 inherit distutils eutils
58
59 DESCRIPTION="pkgcore package manager"
60 HOMEPAGE="http://pkgcore.googlecode.com/"
61 SRC_URI="http://pkgcore.googlecode.com/files/${P}.tar.bz2"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
66 IUSE="-doc build"
67
68 RDEPEND=">=dev-lang/python-2.4
69 >=dev-python/snakeoil-0.4.4
70 || ( >=dev-lang/python-2.5 dev-python/pycrypto )"
71 DEPEND="${RDEPEND}
72 doc? ( dev-python/sphinx dev-python/pyparsing )"
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_compile() {
83 distutils_src_compile
84
85 if use doc; then
86 python setup.py build_docs || die "doc building failed"
87 fi
88 }
89
90 src_install() {
91 distutils_src_install
92
93 if use doc; then
94 dohtml -r build/sphinx/html/*
95 fi
96 }
97
98 pkg_postinst() {
99 distutils_pkg_postinst
100 pplugincache
101
102 if [[ -d "${ROOT}etc/pkgcore/plugins" ]]; then
103 elog "You still have an /etc/pkgcore/plugins from pkgcore 0.1."
104 elog "It is unused by pkgcore >= 0.2, remove it now."
105 die "remove /etc/pkgcore/plugins from pkgcore 0.1"
106 fi
107
108 # This is left behind by pkgcore 0.2.
109 rm -f "${ROOT}"$(python_get_sitedir)/pkgcore/plugins/plugincache
110 }
111
112 pkg_postrm() {
113 # Careful not to remove this on up/downgrades.
114 local sitep="${ROOT}"$(python_get_sitedir)/site-packages
115 if [[ -e "${sitep}/pkgcore/plugins/plugincache2" ]] &&
116 ! [[ -e "${sitep}/pkgcore/plugin.py" ]]; then
117 rm "${sitep}/pkgcore/plugins/plugincache2"
118 fi
119 distutils_pkg_postrm
120 }