commit:     b1ec083929e9b36d4f83cc6c4788b5bdf8d58d44
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  1 06:58:59 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Apr  1 06:59:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1ec0839

dev-ml/findlib: avoid building unused things

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/findlib/{findlib-1.9.6.ebuild => findlib-1.9.6-r1.ebuild} | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-ml/findlib/findlib-1.9.6.ebuild 
b/dev-ml/findlib/findlib-1.9.6-r1.ebuild
similarity index 92%
rename from dev-ml/findlib/findlib-1.9.6.ebuild
rename to dev-ml/findlib/findlib-1.9.6-r1.ebuild
index 277e992bd77e..a344a50250c8 100644
--- a/dev-ml/findlib/findlib-1.9.6.ebuild
+++ b/dev-ml/findlib/findlib-1.9.6-r1.ebuild
@@ -22,6 +22,13 @@ src_prepare() {
        default
        export ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml"
        export stublibs="${ocamlfind_destdir}/stublibs"
+       sed -i \
+               -e "/dbm/d" \
+               -e "/graphics/d" \
+               -e "/ocamlbuild/d" \
+               -e "/check_library num/d" \
+               configure \
+               || die
 }
 
 src_configure() {
@@ -54,7 +61,7 @@ src_install() {
        fi
 
        # See bug #803275 and bug #833604
-       for x in camlp4 dbm graphics labltk num num-top ocamlbuild; do
+       for x in camlp4 labltk; do
                rm -rf "${ED}"/usr/$(get_libdir)/ocaml/${x} || die
        done
 }

Reply via email to