Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 244048
Collapse All | Expand All

(-)a/xmlindent-0.2.17.ebuild (-1 / +14 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-util/xmlindent/xmlindent-0.2.17.ebuild,v 1.3 2007/07/12 01:05:42 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-util/xmlindent/xmlindent-0.2.17.ebuild,v 1.3 2007/07/12 01:05:42 mr_bones_ Exp $
4
4
5
inherit eutils
5
inherit eutils toolchain-funcs
6
DESCRIPTION="XML Indent is an XML stream reformatter written in ANSI C, analogous to GNU indent."
6
DESCRIPTION="XML Indent is an XML stream reformatter written in ANSI C, analogous to GNU indent."
7
HOMEPAGE="http://xmlindent.sourceforge.net/"
7
HOMEPAGE="http://xmlindent.sourceforge.net/"
8
SRC_URI="mirror://sourceforge/xmlindent/${P}.tar.gz"
8
SRC_URI="mirror://sourceforge/xmlindent/${P}.tar.gz"
Lines 13-19 Link Here
13
IUSE=""
13
IUSE=""
14
DEPEND="sys-devel/flex"
14
DEPEND="sys-devel/flex"
15
15
16
src_unpack() {
17
	unpack ${A}
18
	cd "${S}"
19
	sed -i \
20
		-e '/^xmlindent:/{' \
21
			-e 's/\.c/.o/g' \
22
			-e 's/$/ error.o/' \
23
		-e '}' \
24
		-e 's/gcc.*/$(LINK.o) $^ -lfl -o $@/' \
25
		Makefile || die "Failed to sed Makefile"
26
}
27
16
src_compile() {
28
src_compile() {
29
	tc-export CC
17
	emake || die "emake failed"
30
	emake || die "emake failed"
18
}
31
}
19
32

Return to bug 244048