1 |
mgorny 12/12/31 12:16:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: docutils-0.10.ebuild |
5 |
Log: |
6 |
Version bump with a patch for buildhtml.py. Move GLEP support to dev-python/docutils-glep. |
7 |
|
8 |
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 42B9401D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.164 dev-python/docutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.164&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.164&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?r1=1.163&r2=1.164 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v |
20 |
retrieving revision 1.163 |
21 |
retrieving revision 1.164 |
22 |
diff -u -r1.163 -r1.164 |
23 |
--- ChangeLog 17 Dec 2012 19:56:00 -0000 1.163 |
24 |
+++ ChangeLog 31 Dec 2012 12:16:18 -0000 1.164 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-python/docutils |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.163 2012/12/17 19:56:00 mgorny Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.164 2012/12/31 12:16:18 mgorny Exp $ |
30 |
+ |
31 |
+*docutils-0.10 (31 Dec 2012) |
32 |
+ |
33 |
+ 31 Dec 2012; Michał Górny <mgorny@g.o> +docutils-0.10.ebuild, |
34 |
+ +files/docutils-0.10-optparser.patch: |
35 |
+ Version bump with a patch for buildhtml.py. Move GLEP support to dev-python |
36 |
+ /docutils-glep. |
37 |
|
38 |
17 Dec 2012; Michał Górny <mgorny@g.o> docutils-0.9.1-r1.ebuild: |
39 |
Bump to EAPI=5 to make Paludis happy, bug #447524. |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-python/docutils/docutils-0.10.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/docutils-0.10.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/docutils-0.10.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: docutils-0.10.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.10.ebuild,v 1.1 2012/12/31 12:16:18 mgorny Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_8,1_9} ) |
56 |
|
57 |
inherit distutils-r1 |
58 |
|
59 |
DESCRIPTION="Python Documentation Utilities" |
60 |
HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils" |
61 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
62 |
|
63 |
LICENSE="BSD-2 GPL-3 public-domain" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
66 |
IUSE="glep" |
67 |
|
68 |
DEPEND="dev-python/pygments[${PYTHON_USEDEP}]" |
69 |
RDEPEND="${DEPEND} |
70 |
dev-python/docutils-glep[${PYTHON_USEDEP}]" |
71 |
|
72 |
PATCHES=( |
73 |
# fix buildhtml.py option parsing |
74 |
"${FILESDIR}"/${P}-optparser.patch |
75 |
) |
76 |
|
77 |
python_compile_all() { |
78 |
# Generate html docs from reStructured text sources. |
79 |
|
80 |
# Place html4css1.css in base directory to ensure that the generated reference to it is correct. |
81 |
cp docutils/writers/html4css1/html4css1.css . || die |
82 |
|
83 |
cd tools || die |
84 |
"${PYTHON}" buildhtml.py --input-encoding=utf-8 \ |
85 |
--stylesheet-path=../html4css1.css, --traceback ../docs || die |
86 |
} |
87 |
|
88 |
python_test() { |
89 |
local tests=test |
90 |
[[ ${EPYTHON} == python3* ]] && tests=test3 |
91 |
|
92 |
cp -r -l ${tests} "${BUILD_DIR}"/test || die |
93 |
ln -s "${S}"/docs "${BUILD_DIR}"/ || die |
94 |
"${PYTHON}" "${BUILD_DIR}"/test/alltests.py || die "Tests fail with ${EPYTHON}" |
95 |
} |
96 |
|
97 |
python_install() { |
98 |
distutils-r1_python_install |
99 |
|
100 |
# Install tools. |
101 |
python_doscript tools/{buildhtml,quicktest}.py |
102 |
} |
103 |
|
104 |
install_txt_doc() { |
105 |
local doc="${1}" |
106 |
local dir="txt/$(dirname ${doc})" |
107 |
docinto "${dir}" |
108 |
dodoc "${doc}" |
109 |
} |
110 |
|
111 |
python_install_all() { |
112 |
local DOCS=( *.txt ) |
113 |
local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) |
114 |
|
115 |
distutils-r1_python_install_all |
116 |
|
117 |
local doc |
118 |
while IFS= read -r -d '' doc; do |
119 |
install_txt_doc "${doc}" |
120 |
done < <(find docs tools -name '*.txt' -print0) |
121 |
} |