1 |
arfrever 09/10/01 22:47:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: docutils-0.6_pre6148.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 14469-svn/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.95 dev-python/docutils/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.95&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/ChangeLog?rev=1.95&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/ChangeLog?r1=1.94&r2=1.95 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v |
19 |
retrieving revision 1.94 |
20 |
retrieving revision 1.95 |
21 |
diff -u -r1.94 -r1.95 |
22 |
--- ChangeLog 20 Sep 2009 19:01:24 -0000 1.94 |
23 |
+++ ChangeLog 1 Oct 2009 22:47:22 -0000 1.95 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-python/docutils |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.94 2009/09/20 19:01:24 ulm Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/docutils/ChangeLog,v 1.95 2009/10/01 22:47:22 arfrever Exp $ |
29 |
+ |
30 |
+*docutils-0.6_pre6148 (02 Oct 2009) |
31 |
+ |
32 |
+ 01 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
33 |
+ +docutils-0.6_pre6148.ebuild, +files/docutils-0.6-extra_modules.patch: |
34 |
+ Version bump. |
35 |
|
36 |
20 Sep 2009; Ulrich Mueller <ulm@g.o> docutils-0.5.ebuild, |
37 |
docutils-0.5-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/docutils/docutils-0.6_pre6148.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/docutils-0.6_pre6148.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/docutils-0.6_pre6148.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: docutils-0.6_pre6148.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/docutils/docutils-0.6_pre6148.ebuild,v 1.1 2009/10/01 22:47:22 arfrever Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
SUPPORT_PYTHON_ABIS="1" |
54 |
|
55 |
inherit distutils eutils multilib |
56 |
|
57 |
DESCRIPTION="Set of python tools for processing plaintext docs into HTML, XML, etc..." |
58 |
HOMEPAGE="http://docutils.sourceforge.net/" |
59 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
60 |
glep? ( mirror://gentoo/glep-0.4-r1.tbz2 )" |
61 |
#mirror://sourceforge/docutils/${P}.tar.gz |
62 |
|
63 |
LICENSE="public-domain PYTHON BSD" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
66 |
IUSE="glep emacs" |
67 |
|
68 |
DEPEND="dev-python/setuptools" |
69 |
RDEPEND="" |
70 |
# Emacs support is in PDEPEND to avoid a dependency cycle (bug #183242) |
71 |
PDEPEND="emacs? ( || ( >=app-emacs/rst-0.4 >=virtual/emacs-23 ) )" |
72 |
|
73 |
GLEP_SRC="${WORKDIR}/glep-0.4-r1" |
74 |
|
75 |
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" |
76 |
|
77 |
src_prepare() { |
78 |
# Delete internal copies of optparse and textwrap modules. |
79 |
rm -f extras/{optparse.py,textwrap.py} |
80 |
# Fix installation of extra modules. |
81 |
epatch "${FILESDIR}/${PN}-0.6-extra_modules.patch" |
82 |
|
83 |
sed -e "s/from distutils.core/from setuptools/" -i setup.py || die "sed setup.py failed" |
84 |
|
85 |
# Fix tests. |
86 |
sed -e "/sys\.exit(result)/d" -i test/alltests.py || die "sed test/alltests.py failed" |
87 |
|
88 |
python_copy_sources --no-link |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
distutils_src_compile |
93 |
|
94 |
# Generate html docs from reStructured text sources. |
95 |
|
96 |
# make roman.py available for the doc building process |
97 |
ln -s extras/roman.py |
98 |
|
99 |
pushd tools > /dev/null |
100 |
|
101 |
# Place html4css1.css in base directory. This makes sure the |
102 |
# generated reference to it is correct. |
103 |
cp ../docutils/writers/html4css1/html4css1.css .. |
104 |
|
105 |
PYTHONPATH=.. ${python} ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed" |
106 |
|
107 |
popd > /dev/null |
108 |
|
109 |
# clean up after the doc building |
110 |
rm roman.py html4css1.css |
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_test() { |
121 |
testing() { |
122 |
# Tests are broken with Python 3. |
123 |
[[ "${PYTHON_ABI:0:1}" == "3" ]] && return |
124 |
|
125 |
pushd test > /dev/null |
126 |
PYTHONPATH="../build/lib" ./alltests.py || return 1 |
127 |
popd > /dev/null |
128 |
} |
129 |
python_execute_function -s testing |
130 |
} |
131 |
|
132 |
src_install() { |
133 |
DOCS="*.txt" |
134 |
distutils_src_install |
135 |
|
136 |
# Tools |
137 |
cd tools |
138 |
for tool in *.py; do |
139 |
dobin ${tool} |
140 |
done |
141 |
|
142 |
# Docs |
143 |
cd "${S}" |
144 |
dohtml -r docs tools |
145 |
# Manually install the stylesheet file |
146 |
insinto /usr/share/doc/${PF}/html |
147 |
doins docutils/writers/html4css1/html4css1.css |
148 |
for doc in $(find docs tools -name '*.txt'); do |
149 |
install_txt_doc $doc |
150 |
done |
151 |
|
152 |
# installing Gentoo GLEP tools. Uses versioned GLEP distribution |
153 |
if use glep; then |
154 |
dobin ${GLEP_SRC}/glep.py || die "newbin failed" |
155 |
|
156 |
installation_of_glep_tools() { |
157 |
insinto $(python_get_sitedir)/docutils/readers |
158 |
newins ${GLEP_SRC}/glepread.py glep.py || die "newins reader failed" |
159 |
insinto $(python_get_sitedir)/docutils/transforms |
160 |
newins ${GLEP_SRC}/glepstrans.py gleps.py || die "newins transform failed" |
161 |
insinto $(python_get_sitedir)/docutils/writers |
162 |
doins -r ${GLEP_SRC}/glep_html || die "doins writer failed" |
163 |
} |
164 |
python_execute_function --action-message 'Installation of GLEP tools with Python ${PYTHON_ABI}...' installation_of_glep_tools |
165 |
fi |
166 |
} |
167 |
|
168 |
pkg_postinst() { |
169 |
python_mod_optimize docutils roman.py |
170 |
} |
171 |
|
172 |
pkg_postrm() { |
173 |
python_mod_cleanup |
174 |
} |