commit:     4e215d5f8dadecfffa34eee48c6180c14d99ad8f
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 22 19:25:49 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Dec 22 19:26:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e215d5f

dev-ml/ocamlnet: get version from $PV

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

 .../ocamlnet/{ocamlnet-4.1.9.ebuild => ocamlnet-4.1.9-r1.ebuild}  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild 
b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
similarity index 94%
rename from dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild
rename to dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
index 6bd4d2437240..0029b1219894 100644
--- a/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild
+++ b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild
@@ -53,6 +53,14 @@ ocamlnet_use_enable() {
        fi
 }
 
+src_prepare() {
+       sed -i \
+               -e "s:^version.*$:version=${PV}:" \
+               configure \
+               || die
+       default
+}
+
 src_configure() {
        ./configure \
                -bindir /usr/bin \

Reply via email to