1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A syntax extension for importing declarations from interface files"
9 HOMEPAGE="https://github.com/whitequark/ppx_import"
10 SRC_URI="https://github.com/whitequark/ppx_import/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 RESTRICT="!test? ( test )"
19 dev-lang/ocaml:=[ocamlopt?]
25 test? ( dev-ml/ounit dev-ml/ppx_deriving )
31 cp pkg/META.in pkg/META
33 native=$(usex ocamlopt true false) \
34 native-dynlink=$(usex ocamlopt true false) \
39 ocamlbuild -classic-display -use-ocamlfind src_test/test_ppx_import.byte -- || die