/[gentoo-x86]/app-text/xml2doc/xml2doc-20030510-r1.ebuild
Gentoo

Contents of /app-text/xml2doc/xml2doc-20030510-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Jun 19 03:28:39 2012 UTC (2 years, 3 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +11 -10 lines
Respect CC, bug 243764.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/xml2doc/xml2doc-20030510-r1.ebuild,v 1.10 2011/02/22 16:36:27 scarabeus Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Tool to convert simple XML to a variety of formats (pdf, html, txt, manpage)"
10
11 HOMEPAGE="http://xml2doc.sourceforge.net"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
13
14 LICENSE="GPL-2"
15 IUSE=""
16 SLOT="0"
17
18 KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86"
19
20 DEPEND=">=dev-libs/libxml2-2.5"
21 RDEPEND="${DEPEND}"
22
23 S=${WORKDIR}/${PN}
24
25 src_prepare() {
26 # Fix pointer-related bug detected by a QA notice.
27 epatch "${FILESDIR}/${PN}-pointer_fix.patch"
28
29 # Don't strip symbols from binary (bug #152266)
30 sed -i -e '/^\s*strip/d' \
31 -e 's/^\t$(CC) $(LFLAGS).*/\t$(LINK.o) $(L_PDF) $^ -lxml2 -o $(BIN)/' \
32 -e '/^\t$(CC) $(CFLAGS) /d' \
33 src/Makefile.in
34 }
35
36 src_configure() {
37 econf --disable-pdf
38 }
39
40 src_compile() {
41 emake CC="$(tc-getCC)"
42
43 cd "${S}/doc"
44 "${S}"/src/xml2doc -oM manpage.xml xml2doc.1 || die
45 }
46
47 src_install() {
48 # xml2doc's make install is unfortunately broken
49
50 # binary
51 dobin src/xml2doc || die
52
53 # documentation
54 dodoc BUGS README TODO || die
55 docinto examples
56 dodoc examples/*.{xml,png} || die
57
58 # manpage
59 doman doc/xml2doc.1 || die
60 }

  ViewVC Help
Powered by ViewVC 1.1.20