Hevea is the only package in my system, which depends on ocaml. So I tried to remove ocaml and ocamlopt: /etc/portage/make.conf: USE="-ocamlopt" USE="-ocamlopt" emerge -1p hevea These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-lang/ocaml-4.04.2 USE="X latex ncurses -emacs -flambda -ocamlopt -xemacs" [ebuild N ] dev-ml/ocamlbuild-0.11.0 USE="-ocamlopt {-test}" [ebuild R ] dev-tex/hevea-2.29 equery u hevea [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for dev-tex/hevea-2.29: U I - - ocamlopt : Enable ocamlopt support (ocaml native code compiler) -- Produces faster programs So obviously the USE-flag is ignored. According to the project homepage hevea depends on ocaml. If so, the USE-flag should be removed. If not, the hevea package should be able to build without ocaml and ocamlopt.
ocamlopt - Enable ocamlopt support (ocaml native code compiler) -- Produces faster programs (Warning: you have to disable/enable it at a global scale) it doesnt mean it does not need ocaml...