summaryrefslogtreecommitdiff
path: root/homebrew/libmpc
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/libmpc
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/libmpc')
-rw-r--r--homebrew/libmpc/.beer34
-rw-r--r--homebrew/libmpc/.make.sh-auto6
-rw-r--r--homebrew/libmpc/_metadata/description1
-rw-r--r--homebrew/libmpc/_metadata/homepage1
-rw-r--r--homebrew/libmpc/_metadata/name1
-rw-r--r--homebrew/libmpc/_metadata/version1
-rwxr-xr-xhomebrew/libmpc/download.sh1
7 files changed, 45 insertions, 0 deletions
diff --git a/homebrew/libmpc/.beer b/homebrew/libmpc/.beer
new file mode 100644
index 000000000..0b95155a7
--- /dev/null
+++ b/homebrew/libmpc/.beer
@@ -0,0 +1,34 @@
+{
+ "name": "Libmpc",
+ "description": "C library for the arithmetic of high precision complex numbers",
+ "url": "https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.multiprecision.org/mpc/",
+ "depends": [
+ {
+ "depend": "gmp",
+ "build-depend": false
+ },
+ {
+ "depend": "mpfr",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = %W[",
+ "--prefix=#{prefix}",
+ "--disable-dependency-tracking",
+ "--with-gmp=#{Formula[\"gmp\"].opt_prefix}",
+ "--with-mpfr=#{Formula[\"mpfr\"].opt_prefix}",
+ "]",
+ "system \"./configure\", *args",
+ "system \"make\"",
+ "system \"make\", \"check\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.1.0",
+ "file": "libmpc.rb"
+} \ No newline at end of file
diff --git a/homebrew/libmpc/.make.sh-auto b/homebrew/libmpc/.make.sh-auto
new file mode 100644
index 000000000..a37916319
--- /dev/null
+++ b/homebrew/libmpc/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+args = %W[--prefix=#{prefix} --disable-dependency-tracking --with-gmp=#{Formula["gmp"].opt_prefix} --with-mpfr=#{Formula["mpfr"].opt_prefix} ]
+pkg:configure *args
+make
+make check
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/libmpc/_metadata/description b/homebrew/libmpc/_metadata/description
new file mode 100644
index 000000000..0b45f7aae
--- /dev/null
+++ b/homebrew/libmpc/_metadata/description
@@ -0,0 +1 @@
+C library for the arithmetic of high precision complex numbers
diff --git a/homebrew/libmpc/_metadata/homepage b/homebrew/libmpc/_metadata/homepage
new file mode 100644
index 000000000..e2c518257
--- /dev/null
+++ b/homebrew/libmpc/_metadata/homepage
@@ -0,0 +1 @@
+http://www.multiprecision.org/mpc/
diff --git a/homebrew/libmpc/_metadata/name b/homebrew/libmpc/_metadata/name
new file mode 100644
index 000000000..8441ce941
--- /dev/null
+++ b/homebrew/libmpc/_metadata/name
@@ -0,0 +1 @@
+Libmpc
diff --git a/homebrew/libmpc/_metadata/version b/homebrew/libmpc/_metadata/version
new file mode 100644
index 000000000..9084fa2f7
--- /dev/null
+++ b/homebrew/libmpc/_metadata/version
@@ -0,0 +1 @@
+1.1.0
diff --git a/homebrew/libmpc/download.sh b/homebrew/libmpc/download.sh
new file mode 100755
index 000000000..77d18a6c1
--- /dev/null
+++ b/homebrew/libmpc/download.sh
@@ -0,0 +1 @@
+wget https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz \ No newline at end of file