You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
11 years ago
|
# Copyright 1999-2013 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-r2.ebuild,v 1.1 2013/07/23 18:46:17 aballier Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
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/${PV}"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc"
|
||
|
|
||
|
RDEPEND="dev-lang/ocaml:="
|
||
|
DEPEND="app-arch/unzip
|
||
|
${RDEPEND}"
|
||
|
|
||
|
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/${PN}
|
||
|
emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} install
|
||
|
cat > "${D}"/usr/$(get_libdir)/ocaml/${PN}/META << EOF
|
||
|
name="${PN}"
|
||
|
version="${PV}"
|
||
|
description="${DESCRIPTION}"
|
||
|
requires=""
|
||
|
archive(byte) = "xml-light.cma"
|
||
|
EOF
|
||
|
dodoc README
|
||
|
if use doc; then
|
||
|
emake doc
|
||
|
dohtml doc/*
|
||
|
fi
|
||
|
}
|