commit:     fc514e7d8e8879f70b6e981a98ec186a2a589cf5
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 25 17:45:07 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Mar 25 17:45:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc514e7d

sci-calculators/orpie: build with ocaml-5

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

 sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch | 11 +++++++++++
 sci-calculators/orpie/orpie-1.6.1.ebuild             |  7 ++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch 
b/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch
new file mode 100644
index 000000000000..a83e35973dd4
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch
@@ -0,0 +1,11 @@
+--- a/src/orpie/dune   2025-03-25 18:41:09.216073326 +0100
++++ b/src/orpie/dune   2025-03-25 18:41:31.391799451 +0100
+@@ -5,7 +5,7 @@
+     (action
+       (system "camlp5o %{input-file}")))
+   (flags (:standard -w -27-35-52 -thread))
+-  (libraries curses gsl num str threads))
++  (libraries curses gsl num str threads camlp-streams))
+ 
+ 
+ ; Use orpie.opam as the authoritative source of version number

diff --git a/sci-calculators/orpie/orpie-1.6.1.ebuild 
b/sci-calculators/orpie/orpie-1.6.1.ebuild
index eb285f750783..2e385da6b298 100644
--- a/sci-calculators/orpie/orpie-1.6.1.ebuild
+++ b/sci-calculators/orpie/orpie-1.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -9,6 +9,8 @@ DESCRIPTION="A fullscreen RPN calculator for the console"
 HOMEPAGE="http://pessimization.com/software/orpie/";
 SRC_URI="https://github.com/pelzlpj/${PN}/archive/release-${PV}.tar.gz";
 
+S="${WORKDIR}"/${PN}-release-${PV}
+
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
@@ -20,11 +22,10 @@ DEPEND="dev-ml/gsl-ocaml:=
        dev-ml/camlp5":=
 RDEPEND="${DEPEND}"
 
-S="${WORKDIR}"/${PN}-release-${PV}
-
 PATCHES=(
        "${FILESDIR}"/${P}-orpierc.patch
        "${FILESDIR}"/${P}-rcfile.patch
+       "${FILESDIR}"/${P}-ocaml5.patch
 )
 
 src_compile() {

Reply via email to