Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/asciidoc: asciidoc-8.6.4.ebuild ChangeLog asciidoc-9999.ebuild
Date: Tue, 22 Feb 2011 07:40:50
Message-Id: 20110222074040.A9B1A20054@flycatcher.gentoo.org
1 sping 11/02/22 07:40:40
2
3 Modified: ChangeLog asciidoc-9999.ebuild
4 Added: asciidoc-8.6.4.ebuild
5 Log:
6 app-text/asciidoc: Bump to 8.6.4
7
8 (Portage version: 2.1.9.40/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.65 app-text/asciidoc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 14 Nov 2010 19:28:43 -0000 1.64
24 +++ ChangeLog 22 Feb 2011 07:40:40 -0000 1.65
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-text/asciidoc
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v 1.64 2010/11/14 19:28:43 sping Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/ChangeLog,v 1.65 2011/02/22 07:40:40 sping Exp $
31 +
32 +*asciidoc-8.6.4 (22 Feb 2011)
33 +
34 + 22 Feb 2011; Sebastian Pipping <sping@g.o> +asciidoc-8.6.4.ebuild,
35 + asciidoc-9999.ebuild:
36 + Bump to 8.6.4, integrate test suite, sync live ebuild
37
38 *asciidoc-9999 (14 Nov 2010)
39 *asciidoc-8.6.3 (14 Nov 2010)
40
41
42
43 1.2 app-text/asciidoc/asciidoc-9999.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?rev=1.2&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?rev=1.2&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild?r1=1.1&r2=1.2
48
49 Index: asciidoc-9999.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v
52 retrieving revision 1.1
53 retrieving revision 1.2
54 diff -u -r1.1 -r1.2
55 --- asciidoc-9999.ebuild 14 Nov 2010 19:28:43 -0000 1.1
56 +++ asciidoc-9999.ebuild 22 Feb 2011 07:40:40 -0000 1.2
57 @@ -1,6 +1,6 @@
58 -# Copyright 1999-2010 Gentoo Foundation
59 +# Copyright 1999-2011 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v 1.1 2010/11/14 19:28:43 sping Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-9999.ebuild,v 1.2 2011/02/22 07:40:40 sping Exp $
63
64 EAPI="3"
65
66 @@ -24,14 +24,20 @@
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 -IUSE="examples vim-syntax"
71 +IUSE="examples test vim-syntax"
72
73 RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75
74 dev-libs/libxslt
75 media-gfx/graphviz
76 app-text/docbook-xml-dtd:4.5
77 "
78 -DEPEND=""
79 +DEPEND="test? ( dev-util/source-highlight
80 + media-sound/lilypond
81 + media-gfx/imagemagick
82 + dev-texlive/texlive-latex
83 + app-text/dvipng
84 + media-gfx/graphviz )
85 +"
86
87 if [ "$PV" == "9999" ]; then
88 DEPEND="${DEPEND}
89 @@ -92,3 +98,9 @@
90 dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \
91 dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt || die
92 }
93 +
94 +src_test() {
95 + cd tests || die
96 + ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py update || die
97 + ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py run || die
98 +}
99
100
101
102 1.1 app-text/asciidoc/asciidoc-8.6.4.ebuild
103
104 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-8.6.4.ebuild?rev=1.1&view=markup
105 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/asciidoc/asciidoc-8.6.4.ebuild?rev=1.1&content-type=text/plain
106
107 Index: asciidoc-8.6.4.ebuild
108 ===================================================================
109 # Copyright 1999-2011 Gentoo Foundation
110 # Distributed under the terms of the GNU General Public License v2
111 # $Header: /var/cvsroot/gentoo-x86/app-text/asciidoc/asciidoc-8.6.4.ebuild,v 1.1 2011/02/22 07:40:40 sping Exp $
112
113 EAPI="3"
114
115 PYTHON_DEPEND="2:2.5"
116 RESTRICT_PYTHON_ABIS="3.*"
117
118 [ "$PV" == "9999" ] && inherit mercurial autotools
119 inherit python
120
121 DESCRIPTION="A text document format for writing short documents, articles, books and UNIX man pages"
122 HOMEPAGE="http://www.methods.co.nz/asciidoc/"
123 if [ "$PV" == "9999" ]; then
124 EHG_REPO_URI="https://asciidoc.googlecode.com/hg/"
125 SRC_URI=""
126 KEYWORDS=""
127 S=${WORKDIR}/hg
128 else
129 SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz"
130 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
131 fi
132
133 LICENSE="GPL-2"
134 SLOT="0"
135 IUSE="examples test vim-syntax"
136
137 RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75
138 dev-libs/libxslt
139 media-gfx/graphviz
140 app-text/docbook-xml-dtd:4.5
141 "
142 DEPEND="test? ( dev-util/source-highlight
143 media-sound/lilypond
144 media-gfx/imagemagick
145 dev-texlive/texlive-latex
146 app-text/dvipng
147 media-gfx/graphviz )
148 "
149
150 if [ "$PV" == "9999" ]; then
151 DEPEND="${DEPEND}
152 dev-util/aap
153 www-client/lynx
154 dev-util/source-highlight"
155 fi
156
157 pkg_setup() {
158 python_set_active_version 2
159 }
160
161 src_prepare() {
162 if ! use vim-syntax; then
163 sed -i -e '/^install/s/install-vim//' Makefile.in
164 else
165 sed -i\
166 -e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \
167 -e 's:/etc/vim::' \
168 Makefile.in || die
169 fi
170
171 # Only needed for prefix - harmless (does nothing) otherwise
172 sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
173 "${S}/asciidoc.py" || die
174
175 [ "$PV" == "9999" ] && eautoconf
176 }
177
178 src_configure() {
179 econf --sysconfdir="${EPREFIX}"/usr/share
180 }
181
182 src_compile() {
183 default
184
185 if [ "$PV" == "9999" ]; then
186 ( cd doc && aap -f main.aap ../{CHANGELOG,README,BUGS} )
187 fi
188 }
189
190 src_install() {
191 use vim-syntax && dodir /usr/share/vim/vimfiles
192
193 emake DESTDIR="${D}" install || die "install failed"
194
195 python_convert_shebangs -r 2 "${D}"
196
197 if use examples; then
198 # This is a symlink to a directory
199 rm examples/website/images || die
200
201 insinto /usr/share/doc/${PF}
202 doins -r examples || die
203 dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples || die
204 fi
205
206 dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \
207 dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt || die
208 }
209
210 src_test() {
211 cd tests || die
212 ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py update || die
213 ASCIIDOC_PY=../asciidoc.py "$(PYTHON)" test${PN}.py run || die
214 }