Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/python-docs: ChangeLog python-docs-2.6.3.ebuild
Date: Sun, 04 Oct 2009 18:21:43
Message-Id: E1MuViH-0005j3-FK@stork.gentoo.org
1 arfrever 09/10/04 18:21:41
2
3 Modified: ChangeLog
4 Added: python-docs-2.6.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 14490-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.130 dev-python/python-docs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/python-docs/ChangeLog?rev=1.130&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/python-docs/ChangeLog?rev=1.130&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/python-docs/ChangeLog?r1=1.129&r2=1.130
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-docs/ChangeLog,v
19 retrieving revision 1.129
20 retrieving revision 1.130
21 diff -u -r1.129 -r1.130
22 --- ChangeLog 27 Sep 2009 14:28:56 -0000 1.129
23 +++ ChangeLog 4 Oct 2009 18:21:41 -0000 1.130
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/python-docs
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/ChangeLog,v 1.129 2009/09/27 14:28:56 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/ChangeLog,v 1.130 2009/10/04 18:21:41 arfrever Exp $
29 +
30 +*python-docs-2.6.3 (04 Oct 2009)
31 +
32 + 04 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +python-docs-2.6.3.ebuild:
34 + Version bump.
35
36 27 Sep 2009; nixnut <nixnut@g.o> python-docs-2.6.2-r1.ebuild:
37 ppc stable #277645
38
39
40
41 1.1 dev-python/python-docs/python-docs-2.6.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/python-docs/python-docs-2.6.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/python-docs/python-docs-2.6.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: python-docs-2.6.3.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-2.6.3.ebuild,v 1.1 2009/10/04 18:21:41 arfrever Exp $
51
52 DESCRIPTION="HTML documentation for Python"
53 HOMEPAGE="http://www.python.org/doc/"
54 SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.bz2"
55
56 LICENSE="PSF-2.2"
57 SLOT="2.6"
58 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
59 IUSE=""
60
61 DEPEND=">=app-admin/eselect-python-20090606"
62 RDEPEND="${DEPEND}"
63
64 S="${WORKDIR}/python-${PV}-docs-html"
65
66 src_install() {
67 docinto html
68 cp -R [a-z]* _static "${D}/usr/share/doc/${PF}/html"
69
70 echo "PYTHONDOCS_${SLOT//./_}=\"/usr/share/doc/${PF}/html/library\"" > "60python-docs-${SLOT}"
71 doenvd "60python-docs-${SLOT}"
72 }
73
74 eselect_python_update() {
75 local ignored_python_slots
76 [[ "$(eselect python show)" == "python2."* ]] && ignored_python_slots="--ignore 3.0 --ignore 3.1 --ignore 3.2"
77
78 # Create python2 symlink.
79 eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
80
81 eselect python update ${ignored_python_slots}
82 }
83
84 pkg_postinst() {
85 eselect_python_update
86 }
87
88 pkg_postrm() {
89 eselect_python_update
90
91 if ! has_version "<dev-python/python-docs-${SLOT}_alpha" && ! has_version ">=dev-python/python-docs-${SLOT%.*}.$((${SLOT#*.}+1))_alpha"; then
92 rm -f "${ROOT}etc/env.d/65python-docs"
93 fi
94
95 rm -f "${ROOT}etc/env.d/50python-docs"
96 }