diff --git a/libs/mpir/DEPENDS b/libs/mpir/DEPENDS
new file mode 100755
index 0000000..0d87bac
--- /dev/null
+++ b/libs/mpir/DEPENDS
@@ -0,0 +1,2 @@
+depends -sub CXX gcc '--enable-cxx' &&
+optional_depends yasm '' '' 'optimised assembler'
diff --git a/libs/mpir/DETAILS b/libs/mpir/DETAILS
new file mode 100755
index 0000000..381fecc
--- /dev/null
+++ b/libs/mpir/DETAILS
@@ -0,0 +1,27 @@
+ SPELL=mpir
+ VERSION=3.0.0
+
SOURCE_HASH=sha512:c735105db8b86db739fd915bf16064e6bc82d0565ad8858059e4e93f62c9d72d9a1c02a5ca9859b184346a8dc64fa714d4d61404cff1e405dc548cbd54d0a88e
+ SOURCE=$SPELL-$VERSION.tar.bz2
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+# STAGED_INSTALL=off
+ LICENSE[0]=LGPL
+ WEB_SITE=http://www.mpir.org/
+ SOURCE_URL[0]=$WEB_SITE/$SOURCE
+ ENTERED=20180316
+ KEYWORDS="libs"
+ SHORT="highly optimised library for bignum arithmetic"
+cat << EOF
+MPIR is a library for arbitrary precision arithmetic, operating on signed
+integers, rational numbers, and floating point numbers. It has a rich set of
+functions, and the functions have a regular interface.
+
+MPIR is designed to be as fast as possible, both for small operands and huge
+operands. The speed is achieved by using fullwords as the basic arithmetic
+type, by using fast algorithms, with carefully optimized assembly code for
the
+most common inner loops for lots of CPUs, and by a general emphasis on speed
+(instead of simplicity or elegance).
+
+GMP/MPIR is believed to be faster than any other similar library. Its
advantage
+increases with operand sizes for certain operations, since MPIR in many
+cases has asymptotically faster algorithms.
+EOF
diff --git a/libs/mpir/HISTORY b/libs/mpir/HISTORY
new file mode 100644
index 0000000..28de3e0
--- /dev/null
+++ b/libs/mpir/HISTORY
@@ -0,0 +1,3 @@
+2018-03-16 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 3.0.0
+ spell created
[SM-Commit] GIT changes to master grimoire by Treeve Jelbert (95cad6a29f784e86f2b36d66fc9bccb5a252fd3d),
Treeve Jelbert, 03/16/2018