From fc514e7d8e8879f70b6e981a98ec186a2a589cf5 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Tue, 25 Mar 2025 18:45:07 +0100 Subject: [PATCH] sci-calculators/orpie: build with ocaml-5 Signed-off-by: Alfredo Tupone --- 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(-) create mode 100644 sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch 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 0000000000000..a83e35973dd4f --- /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 eb285f750783f..2e385da6b298c 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() {