1 |
floppym 13/02/23 00:44:44 |
2 |
|
3 |
Modified: asciidoc-9999.ebuild ChangeLog |
4 |
Added: asciidoc-8.6.8-r1.ebuild |
5 |
Log: |
6 |
Convert to python-single-r1, bug 458802 by mgorny. |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 app-text/asciidoc/asciidoc-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: asciidoc-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- asciidoc-9999.ebuild 27 Dec 2012 19:09:35 -0000 1.10 |
24 |
+++ asciidoc-9999.ebuild 23 Feb 2013 00:44:44 -0000 1.11 |
25 |
@@ -1,14 +1,13 @@ |
26 |
-# Copyright 1999-2012 Gentoo Foundation |
27 |
+# Copyright 1999-2013 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v 1.10 2012/12/27 19:09:35 ottxor Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v 1.11 2013/02/23 00:44:44 floppym Exp $ |
31 |
|
32 |
-EAPI="3" |
33 |
+EAPI=5 |
34 |
|
35 |
-PYTHON_DEPEND="2:2.5" |
36 |
-RESTRICT_PYTHON_ABIS="3.*" |
37 |
+PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) |
38 |
|
39 |
[ "$PV" == "9999" ] && inherit mercurial autotools |
40 |
-inherit python |
41 |
+inherit python-single-r1 |
42 |
|
43 |
DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" |
44 |
HOMEPAGE="http://www.methods.co.nz/asciidoc/" |
45 |
@@ -29,14 +28,16 @@ |
46 |
dev-libs/libxslt |
47 |
graphviz? ( media-gfx/graphviz ) |
48 |
app-text/docbook-xml-dtd:4.5 |
49 |
- highlight? ( || ( dev-python/pygments dev-util/source-highlight ) ) |
50 |
+ highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) |
51 |
+ ${PYTHON_DEPS} |
52 |
" |
53 |
DEPEND="test? ( dev-util/source-highlight |
54 |
media-sound/lilypond |
55 |
media-gfx/imagemagick |
56 |
dev-texlive/texlive-latex |
57 |
app-text/dvipng |
58 |
- media-gfx/graphviz ) |
59 |
+ media-gfx/graphviz |
60 |
+ ${PYTHON_DEPS} ) |
61 |
" |
62 |
|
63 |
if [ "$PV" == "9999" ]; then |
64 |
@@ -46,10 +47,6 @@ |
65 |
dev-util/source-highlight" |
66 |
fi |
67 |
|
68 |
-pkg_setup() { |
69 |
- python_set_active_version 2 |
70 |
-} |
71 |
- |
72 |
src_prepare() { |
73 |
if ! use vim-syntax; then |
74 |
sed -i -e '/^install/s/install-vim//' Makefile.in || die |
75 |
@@ -75,32 +72,34 @@ |
76 |
default |
77 |
|
78 |
if [ "$PV" == "9999" ]; then |
79 |
- ( cd doc && aap -f main.aap ../{CHANGELOG,README,BUGS} ) |
80 |
+ cd doc || die |
81 |
+ aap -f main.aap ../{CHANGELOG,README,BUGS} || die |
82 |
fi |
83 |
} |
84 |
|
85 |
src_install() { |
86 |
use vim-syntax && dodir /usr/share/vim/vimfiles |
87 |
|
88 |
- emake DESTDIR="${D}" install || die "install failed" |
89 |
+ emake DESTDIR="${D}" install |
90 |
|
91 |
- python_convert_shebangs -r 2 "${D}" |
92 |
+ python_fix_shebang "${ED}"/usr/bin/*.py |
93 |
|
94 |
if use examples; then |
95 |
# This is a symlink to a directory |
96 |
rm examples/website/images || die |
97 |
|
98 |
- insinto /usr/share/doc/${PF} |
99 |
- doins -r examples || die |
100 |
- dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples || die |
101 |
+ dodoc -r examples |
102 |
+ docompress -x /usr/share/doc/${PF}/examples |
103 |
+ dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples |
104 |
fi |
105 |
|
106 |
dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ |
107 |
- dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt || die |
108 |
+ dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt |
109 |
} |
110 |
|
111 |
src_test() { |
112 |
cd tests || die |
113 |
- ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py update || die |
114 |
- ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py run || die |
115 |
+ local -x ASCIIDOC_PY=../asciidoc.py |
116 |
+ "${PYTHON}" test${PN}.py update || die |
117 |
+ "${PYTHON}" test${PN}.py run || die |
118 |
} |
119 |
|
120 |
|
121 |
|
122 |
1.86 app-text/asciidoc/ChangeLog |
123 |
|
124 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?rev=1.86&view=markup |
125 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?rev=1.86&content-type=text/plain |
126 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?r1=1.85&r2=1.86 |
127 |
|
128 |
Index: ChangeLog |
129 |
=================================================================== |
130 |
RCS file: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v |
131 |
retrieving revision 1.85 |
132 |
retrieving revision 1.86 |
133 |
diff -u -r1.85 -r1.86 |
134 |
--- ChangeLog 27 Dec 2012 19:09:35 -0000 1.85 |
135 |
+++ ChangeLog 23 Feb 2013 00:44:44 -0000 1.86 |
136 |
@@ -1,6 +1,12 @@ |
137 |
# ChangeLog for app-text/asciidoc |
138 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
139 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v 1.85 2012/12/27 19:09:35 ottxor Exp $ |
140 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
141 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v 1.86 2013/02/23 00:44:44 floppym Exp $ |
142 |
+ |
143 |
+*asciidoc-8.6.8-r1 (23 Feb 2013) |
144 |
+ |
145 |
+ 23 Feb 2013; Mike Gilbert <floppym@g.o> +asciidoc-8.6.8-r1.ebuild, |
146 |
+ asciidoc-9999.ebuild: |
147 |
+ Convert to python-single-r1, bug 458802 by mgorny. |
148 |
|
149 |
27 Dec 2012; Christoph Junghans <ottxor@g.o> asciidoc-8.2.6.ebuild, |
150 |
asciidoc-8.6.5.ebuild, asciidoc-8.6.7.ebuild, asciidoc-8.6.8.ebuild, |
151 |
|
152 |
|
153 |
|
154 |
1.1 app-text/asciidoc/asciidoc-8.6.8-r1.ebuild |
155 |
|
156 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild?rev=1.1&view=markup |
157 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild?rev=1.1&content-type=text/plain |
158 |
|
159 |
Index: asciidoc-8.6.8-r1.ebuild |
160 |
=================================================================== |
161 |
# Copyright 1999-2013 Gentoo Foundation |
162 |
# Distributed under the terms of the GNU General Public License v2 |
163 |
# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-8.6.8-r1.ebuild,v 1.1 2013/02/23 00:44:44 floppym Exp $ |
164 |
|
165 |
EAPI=5 |
166 |
|
167 |
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) |
168 |
|
169 |
[ "$PV" == "9999" ] && inherit mercurial autotools |
170 |
inherit python-single-r1 |
171 |
|
172 |
DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages" |
173 |
HOMEPAGE="http://www.methods.co.nz/asciidoc/" |
174 |
if [ "$PV" == "9999" ]; then |
175 |
EHG_REPO_URI="https://asciidoc.googlecode.com/hg/" |
176 |
SRC_URI="" |
177 |
KEYWORDS="" |
178 |
else |
179 |
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" |
180 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
181 |
fi |
182 |
|
183 |
LICENSE="GPL-2" |
184 |
SLOT="0" |
185 |
IUSE="examples graphviz highlight test vim-syntax" |
186 |
|
187 |
RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75 |
188 |
dev-libs/libxslt |
189 |
graphviz? ( media-gfx/graphviz ) |
190 |
app-text/docbook-xml-dtd:4.5 |
191 |
highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) ) |
192 |
${PYTHON_DEPS} |
193 |
" |
194 |
DEPEND="test? ( dev-util/source-highlight |
195 |
media-sound/lilypond |
196 |
media-gfx/imagemagick |
197 |
dev-texlive/texlive-latex |
198 |
app-text/dvipng |
199 |
media-gfx/graphviz |
200 |
${PYTHON_DEPS} ) |
201 |
" |
202 |
|
203 |
if [ "$PV" == "9999" ]; then |
204 |
DEPEND="${DEPEND} |
205 |
dev-util/aap |
206 |
www-client/lynx |
207 |
dev-util/source-highlight" |
208 |
fi |
209 |
|
210 |
src_prepare() { |
211 |
if ! use vim-syntax; then |
212 |
sed -i -e '/^install/s/install-vim//' Makefile.in || die |
213 |
else |
214 |
sed -i\ |
215 |
-e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \ |
216 |
-e 's:/etc/vim::' \ |
217 |
Makefile.in || die |
218 |
fi |
219 |
|
220 |
# Only needed for prefix - harmless (does nothing) otherwise |
221 |
sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \ |
222 |
"${S}/asciidoc.py" || die |
223 |
|
224 |
[ "$PV" == "9999" ] && eautoconf |
225 |
} |
226 |
|
227 |
src_configure() { |
228 |
econf --sysconfdir="${EPREFIX}"/usr/share |
229 |
} |
230 |
|
231 |
src_compile() { |
232 |
default |
233 |
|
234 |
if [ "$PV" == "9999" ]; then |
235 |
cd doc || die |
236 |
aap -f main.aap ../{CHANGELOG,README,BUGS} || die |
237 |
fi |
238 |
} |
239 |
|
240 |
src_install() { |
241 |
use vim-syntax && dodir /usr/share/vim/vimfiles |
242 |
|
243 |
emake DESTDIR="${D}" install |
244 |
|
245 |
python_fix_shebang "${ED}"/usr/bin/*.py |
246 |
|
247 |
if use examples; then |
248 |
# This is a symlink to a directory |
249 |
rm examples/website/images || die |
250 |
|
251 |
dodoc -r examples |
252 |
docompress -x /usr/share/doc/${PF}/examples |
253 |
dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples |
254 |
fi |
255 |
|
256 |
dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \ |
257 |
dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt |
258 |
} |
259 |
|
260 |
src_test() { |
261 |
cd tests || die |
262 |
local -x ASCIIDOC_PY=../asciidoc.py |
263 |
"${PYTHON}" test${PN}.py update || die |
264 |
"${PYTHON}" test${PN}.py run || die |
265 |
} |