From 864e59ef79cb9a8524d978e720e5a4457ab27b1f Mon Sep 17 00:00:00 2001
From: Peter Marquardt <wwwutz@molgen.mpg.de>
Date: Wed, 15 Jan 2020 11:16:57 +0100
Subject: [PATCH] mpfr: migrate 3.1.3 to compat-3.1.6

- be0ified
- keep /usr/lib/libmpfr.so.4
- still used by gawk, gdb, lvm, redland, gcc, libblockdev etc
---
 mpfr-3.1.3-1.bee        | 22 ---------------------
 mpfr_compat-3.1.6-0.be0 | 44 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 22 deletions(-)
 delete mode 100755 mpfr-3.1.3-1.bee
 create mode 100755 mpfr_compat-3.1.6-0.be0

diff --git a/mpfr-3.1.3-1.bee b/mpfr-3.1.3-1.bee
deleted file mode 100755
index aa30b058e..000000000
--- a/mpfr-3.1.3-1.bee
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/env beesh
-
-PGRP=( core )
-
-SRCURL="http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.bz2"
-
-# PATCHES=""
-
-EXCLUDE="^/usr/share/doc/gtkhtml"
-
-mee_configure() {
-    bee_configure --enable-thread-safe
-}
-
-mee_build() {
-    bee_build
-    make check 2>&1 | tee check.log
-}
-
-# mee_install() {
-#     bee_install
-# }
diff --git a/mpfr_compat-3.1.6-0.be0 b/mpfr_compat-3.1.6-0.be0
new file mode 100755
index 000000000..542a2a4f4
--- /dev/null
+++ b/mpfr_compat-3.1.6-0.be0
@@ -0,0 +1,44 @@
+#!/usr/bin/env beesh
+
+# BEE_VERSION mpfr_compat-3.1.6-0
+
+# more info: https://foo.bar.com
+
+SRCURL[0]="https://ftp.gnu.org/pub/gnu/mpfr/mpfr-${PKGVERSION}.tar.gz"
+
+# PATCHURL+=()
+
+# build_in_sourcedir
+
+# sourcesubdir_append src
+
+#mee_extract() {
+#    bee_extract "${@}"
+#}
+
+#mee_patch() {
+#    bee_patch "${@}"
+#}
+
+mee_configure() {
+    bee_configure --enable-thread-safe
+}
+
+#mee_build() {
+#    bee_build
+#}
+mee_build() {
+    make check
+}
+
+#mee_install() {
+#    bee_install
+#}
+
+mee_install_post() {
+    rm -rfv  ${D}/usr/include
+    rm -rfv  ${D}/usr/share
+    rm -rfv  ${D}/usr/lib/libmpfr.so
+    rm -rfv  ${D}/usr/lib/libmpfr.a
+    rm -rfv  ${D}/usr/lib/libmpfr.la
+}