45 lines
921 B
Bash
45 lines
921 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ml/xml-light/xml-light-2.2-r1.ebuild,v 1.5 2012/06/10 04:52:42 jdhore Exp $
|
|
|
|
EAPI=4
|
|
|
|
inherit eutils multilib
|
|
|
|
DESCRIPTION="Minimal Xml parser and printer for OCaml"
|
|
HOMEPAGE="http://tech.motion-twin.com/xmllight.html"
|
|
SRC_URI="http://tech.motion-twin.com/zip/${P}.zip"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="doc"
|
|
|
|
DEPEND="app-arch/unzip
|
|
dev-lang/ocaml
|
|
doc? ( dev-ml/ocaml-doc )"
|
|
RDEPEND="dev-lang/ocaml"
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
src_prepare() {
|
|
EPATCH_FORCE=yes EPATCH_SUFFIX=dpatch EPATCH_SOURCE="${FILESDIR}" \
|
|
epatch
|
|
}
|
|
|
|
src_compile() {
|
|
emake -j1
|
|
if use doc;then
|
|
emake doc
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dodir /usr/$(get_libdir)/ocaml
|
|
emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml install
|
|
dodoc README
|
|
if use doc; then
|
|
emake doc
|
|
dohtml doc/*
|
|
fi
|
|
}
|