diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-06-23 16:16:33 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-06-23 16:16:40 +0200 |
commit | d622dba46ac4960ffc77f0af939b8e12b21d05f0 (patch) | |
tree | ee739c38b0ba20733e3061173c1d7777f63792c6 /dev-ml/pxp | |
parent | sys-kernel/gentoo-sources: Linux patch 3.18.36 (diff) | |
download | gentoo-d622dba46ac4960ffc77f0af939b8e12b21d05f0.tar.gz gentoo-d622dba46ac4960ffc77f0af939b8e12b21d05f0.tar.bz2 gentoo-d622dba46ac4960ffc77f0af939b8e12b21d05f0.zip |
dev-ml/pxp: drop backward compat dep on camlp4
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-ml/pxp')
-rw-r--r-- | dev-ml/pxp/pxp-1.2.8-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-ml/pxp/pxp-1.2.8-r1.ebuild b/dev-ml/pxp/pxp-1.2.8-r1.ebuild new file mode 100644 index 000000000000..d172cf54f16e --- /dev/null +++ b/dev-ml/pxp/pxp-1.2.8-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit findlib eutils + +MY_P=${P/_beta/test} + +DESCRIPTION="validating XML parser library for O'Caml" +HOMEPAGE="http://projects.camlcity.org/projects/pxp.html" +SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~ppc ~x86" + +SLOT="0/${PV}" +DEPEND=">=dev-ml/pcre-ocaml-4.31:= + >=dev-ml/ulex-0.5:= + >=dev-ml/ocamlnet-4:= + >=dev-lang/ocaml-3.10.2:=[ocamlopt?] + dev-ml/camlp4:=" +RDEPEND="${DEPEND}" + +IUSE="examples +ocamlopt" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}/oc43.patch" +} + +src_configure() { + #the included configure does not support many standard switches and is quite picky + ./configure || die "configure failed" +} + +src_compile() { + emake -j1 all + if use ocamlopt; then + emake -j1 opt + fi +} + +src_install() { + findlib_src_install + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + cd doc + dodoc ABOUT-FINDLIB README SPEC design.txt +} |