dev-ml/js_of_ocaml: Add X useflag
authorAlexis Ballier <aballier@gentoo.org>
Sat, 6 Feb 2016 15:22:43 +0000 (16:22 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 6 Feb 2016 15:39:11 +0000 (16:39 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/js_of_ocaml/js_of_ocaml-2.7.ebuild

index 4f423b95e5ecff91ecfd8dc325f30d7a42031131..3d6298a3f2bae785d4676a4fe946fee0c4533edc 100644 (file)
@@ -13,9 +13,10 @@ SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar
 LICENSE="LGPL-2.1-with-linking-exception"
 SLOT="0/${PV}"
 KEYWORDS="~amd64"
-IUSE="+ocamlopt doc +deriving"
+IUSE="+ocamlopt doc +deriving X"
 
-DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
+DEPEND="
+       >=dev-lang/ocaml-3.12:=[ocamlopt?,X?]
        >=dev-ml/lwt-2.4.4:=
        dev-ml/react:=
        dev-ml/reactiveData:=
@@ -29,8 +30,11 @@ DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
 RDEPEND="${DEPEND}"
 
 src_configure() {
+       printf "\n\n" >> Makefile.conf
        use ocamlopt || echo "BEST := byte" >> Makefile.conf
+       use ocamlopt || echo "NATDYNLINK := NO" >> Makefile.conf
        use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf
+       use X || echo "WITH_GRAPHICS := NO" >> Makefile.conf
 }
 
 src_compile() {