commit:     6370b2d0af414fdd549ab894783a2d19bf63c53a
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 22:12:18 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 22:13:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6370b2d0

dev-ml/ocamlnet: compute dependency better

Closes: https://bugs.gentoo.org/888601
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/ocamlnet/files/ocamlnet-4.1.9-shuffle.patch | 11 +++++++++++
 dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild           |  7 +++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev-ml/ocamlnet/files/ocamlnet-4.1.9-shuffle.patch 
b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-shuffle.patch
new file mode 100644
index 000000000000..6b7026faf1e0
--- /dev/null
+++ b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-shuffle.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.rules   2023-01-20 22:52:47.530898157 +0100
++++ b/Makefile.rules   2023-01-20 22:53:09.370565670 +0100
+@@ -210,7 +210,7 @@
+ # Set NODEP to "@true" in order to disable "depend".
+ 
+ depend: $(DEP_FILES)
+-      $(NODEP) $(OCAMLDEP) *.ml *.mli >$@ || { rm -f $@; exit 1; }
++      $(NODEP) $(OCAMLDEP) -ml-synonym .mll *.ml *.mli >$@ || { rm -f $@; 
exit 1; }
+ 
+ .PHONY: clean
+ clean:: genclean

diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild 
b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
index 0029b1219894..60b4eea78ebf 100644
--- a/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
+++ b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -35,7 +35,10 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${P}-unboundLexer.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-unboundLexer.patch
+       "${FILESDIR}"/${P}-shuffle.patch
+)
 
 ocamlnet_use_with() {
        if use $1; then

Reply via email to