1 |
patrick 12/08/24 08:00:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: docutils-0.9.1.ebuild |
5 |
Log: |
6 |
Bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.154 dev-python/docutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.154&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.154&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/ChangeLog?r1=1.153&r2=1.154 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v |
20 |
retrieving revision 1.153 |
21 |
retrieving revision 1.154 |
22 |
diff -u -r1.153 -r1.154 |
23 |
--- ChangeLog 9 May 2012 00:12:45 -0000 1.153 |
24 |
+++ ChangeLog 24 Aug 2012 08:00:45 -0000 1.154 |
25 |
@@ -1,6 +1,11 @@ |
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.153 2012/05/09 00:12:45 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.154 2012/08/24 08:00:45 patrick Exp $ |
30 |
+ |
31 |
+*docutils-0.9.1 (24 Aug 2012) |
32 |
+ |
33 |
+ 24 Aug 2012; Patrick Lauer <patrick@g.o> +docutils-0.9.1.ebuild: |
34 |
+ Bump |
35 |
|
36 |
09 May 2012; Alexis Ballier <aballier@g.o> docutils-0.9.ebuild: |
37 |
keyword ~amd64-fbsd, bug #415191 |
38 |
@@ -607,4 +612,3 @@ |
39 |
New package. Marking stable on x86 because (a) there are no other |
40 |
versions in the tree, and (b) if this package is broken it won't break |
41 |
anything else. |
42 |
- |
43 |
|
44 |
|
45 |
|
46 |
1.1 dev-python/docutils/docutils-0.9.1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/docutils-0.9.1.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/docutils-0.9.1.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: docutils-0.9.1.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2012 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/docutils-0.9.1.ebuild,v 1.1 2012/08/24 08:00:45 patrick Exp $ |
56 |
|
57 |
EAPI="4" |
58 |
SUPPORT_PYTHON_ABIS="1" |
59 |
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*-jython 3.*" |
60 |
|
61 |
inherit distutils |
62 |
|
63 |
DESCRIPTION="Docutils - Python Documentation Utilities" |
64 |
HOMEPAGE="http://docutils.sourceforge.net/ http://pypi.python.org/pypi/docutils" |
65 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
66 |
SRC_URI+=" glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )" |
67 |
|
68 |
LICENSE="BSD-2 GPL-3 public-domain" |
69 |
SLOT="0" |
70 |
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" |
71 |
IUSE="glep" |
72 |
|
73 |
RDEPEND="dev-python/pygments" |
74 |
DEPEND="dev-python/setuptools |
75 |
${RDEPEND}" |
76 |
|
77 |
DOCS="*.txt" |
78 |
|
79 |
GLEP_SRC="${WORKDIR}/glep-0.4-r1" |
80 |
|
81 |
src_prepare() { |
82 |
distutils_src_prepare |
83 |
sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed" |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
distutils_src_compile |
88 |
|
89 |
# Generate html docs from reStructured text sources. |
90 |
|
91 |
# Place html4css1.css in base directory to ensure that the generated reference to it is correct. |
92 |
cp docutils/writers/html4css1/html4css1.css . |
93 |
|
94 |
pushd tools > /dev/null |
95 |
|
96 |
echo PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ../docs |
97 |
PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --input-encoding=utf-8 --stylesheet-path=../html4css1.css --traceback ../docs || die "buildhtml.py failed" |
98 |
|
99 |
popd > /dev/null |
100 |
|
101 |
# Clean up after building of documentation. |
102 |
rm html4css1.css |
103 |
} |
104 |
|
105 |
src_test() { |
106 |
testing() { |
107 |
echo PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py) |
108 |
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" $([[ -f build-${PYTHON_ABI}/lib/test/alltests.py ]] && echo build-${PYTHON_ABI}/lib/test/alltests.py || echo test/alltests.py) |
109 |
} |
110 |
python_execute_function testing |
111 |
} |
112 |
|
113 |
install_txt_doc() { |
114 |
local doc="${1}" |
115 |
local dir="txt/$(dirname ${doc})" |
116 |
docinto "${dir}" |
117 |
dodoc "${doc}" |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
distutils_src_install |
122 |
|
123 |
postinstallational_preparation() { |
124 |
# Install tools. |
125 |
mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin" |
126 |
pushd $([[ -d build-${PYTHON_ABI}/lib/tools ]] && echo build-${PYTHON_ABI}/lib/tools || echo tools) > /dev/null |
127 |
cp buildhtml.py quicktest.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin" |
128 |
popd > /dev/null |
129 |
|
130 |
# Delete useless files, which are installed only with Python 3. |
131 |
rm -fr "${ED}$(python_get_sitedir)/"{test,tools} |
132 |
} |
133 |
python_execute_function -q postinstallational_preparation |
134 |
python_merge_intermediate_installation_images "${T}/images" |
135 |
|
136 |
# Install documentation. |
137 |
dohtml -r docs tools |
138 |
|
139 |
# Install stylesheet file. |
140 |
insinto /usr/share/doc/${PF}/html |
141 |
doins docutils/writers/html4css1/html4css1.css |
142 |
local doc |
143 |
for doc in $(find docs tools -name "*.txt"); do |
144 |
install_txt_doc "${doc}" |
145 |
done |
146 |
|
147 |
# Install Gentoo GLEP tools. |
148 |
if use glep; then |
149 |
dobin "${GLEP_SRC}/glep.py" |
150 |
|
151 |
installation_of_glep_tools() { |
152 |
insinto $(python_get_sitedir)/docutils/readers |
153 |
newins "${GLEP_SRC}/glepread.py" glep.py |
154 |
insinto $(python_get_sitedir)/docutils/transforms |
155 |
newins "${GLEP_SRC}/glepstrans.py" gleps.py |
156 |
insinto $(python_get_sitedir)/docutils/writers |
157 |
doins -r "${GLEP_SRC}/glep_html" |
158 |
} |
159 |
python_execute_function --action-message 'Installation of GLEP tools with $(python_get_implementation_and_version)' installation_of_glep_tools |
160 |
fi |
161 |
} |