| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/sablotron/sablotron-1.0.3.ebuild,v 1.13 2010/04/06 00:26:07 abcd Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
|
| 7 |
inherit base autotools
|
| 8 |
|
| 9 |
MY_PN="Sablot"
|
| 10 |
MY_P="${MY_PN}-${PV}"
|
| 11 |
S=${WORKDIR}/${MY_P}
|
| 12 |
|
| 13 |
DESCRIPTION="An XSLT Parser in C++"
|
| 14 |
HOMEPAGE="http://www.gingerall.org/sablotron.html"
|
| 15 |
SRC_URI="http://download-1.gingerall.cz/download/sablot/${MY_P}.tar.gz"
|
| 16 |
|
| 17 |
# Sablotron can optionally be built under GPL, using MPL for now
|
| 18 |
LICENSE="MPL-1.1"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
|
| 21 |
IUSE="perl"
|
| 22 |
|
| 23 |
RDEPEND=">=dev-libs/expat-1.95.6-r1"
|
| 24 |
DEPEND="${RDEPEND}
|
| 25 |
>=dev-perl/XML-Parser-2.3"
|
| 26 |
|
| 27 |
PATCHES=( "${FILESDIR}/1.0.3-libsablot-expat.patch" )
|
| 28 |
|
| 29 |
src_prepare() {
|
| 30 |
base_src_prepare
|
| 31 |
eautoreconf
|
| 32 |
elibtoolize
|
| 33 |
}
|
| 34 |
|
| 35 |
src_configure() {
|
| 36 |
econf \
|
| 37 |
$(use_enable perl perlconnect) \
|
| 38 |
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
emake DESTDIR="${D}" install || die "Install failed"
|
| 43 |
|
| 44 |
dodoc README README_JS RELEASE src/TODO
|
| 45 |
}
|