diff --git a/versions b/versions
index 9cfa98af7a1eabe175271254aa261da36f2bdeff..1cd08f4ac907b90c4efc31ef447ce5b93044eb47 100755
--- a/versions
+++ b/versions
@@ -135,11 +135,9 @@ getvers "Ubuntu",
   "https://packages.ubuntu.com/search?keywords=libmpfr-dev",
   qr!.*<br>([-0-9.a-z]+): amd64!s;
 
-# https://packages.gentoo.org/packages/dev-libs/mpfr yields
-# an error 500 (Internal Server Error).
 getvers "Gentoo",
-  "https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/mpfr",
-  qr!.*>mpfr-([^<]+)\.ebuild<!s;  # Take the last one.
+  "https://packages.gentoo.org/packages/dev-libs/mpfr",
+  qr!<td class="kk-version.*?"><strong><a[^>]*>([^<]+)</a></strong>!;
 
 # No longer exists...
 #getvers "Arch Linux (i686)",
@@ -264,4 +262,4 @@ getvers "Termux",
   "https://packages.termux.dev/apt/termux-main/pool/main/libm/libmpfr/",
   qr!libmpfr_([-0-9.a-z]+)_\S+\.deb!;
 
-# $Id: versions 177485 2025-03-20 15:24:26Z vinc17/cventin $
+# $Id: versions 177486 2025-03-20 15:31:47Z vinc17/cventin $