aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-08-23 07:27:47 +0800
committerknu <knu@FreeBSD.org>2003-08-23 07:27:47 +0800
commit501e3a40b01fd99d567816b87a34cd586cc13ac3 (patch)
treecb7794913a330b15e1e9ad351fc1c653a2c7ebbd /math
parent3c8b35c29c053bb9fad518c75fce2fe941603fb6 (diff)
downloadfreebsd-ports-gnome-501e3a40b01fd99d567816b87a34cd586cc13ac3.tar.gz
freebsd-ports-gnome-501e3a40b01fd99d567816b87a34cd586cc13ac3.tar.zst
freebsd-ports-gnome-501e3a40b01fd99d567816b87a34cd586cc13ac3.zip
Add ruby-gmp (libgmp-ruby), Ruby bindings to GNU Multiprecision
Library.
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/ruby-gmp/Makefile37
-rw-r--r--math/ruby-gmp/distinfo1
-rw-r--r--math/ruby-gmp/pkg-descr4
-rw-r--r--math/ruby-gmp/pkg-plist6
5 files changed, 49 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index bb01652f71fb..e3b1906290a7 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -150,6 +150,7 @@
SUBDIR += rpc
SUBDIR += ruby-algebra
SUBDIR += ruby-bitvector
+ SUBDIR += ruby-gmp
SUBDIR += ruby-gnuplot
SUBDIR += ruby-gsl
SUBDIR += ruby-math3d
diff --git a/math/ruby-gmp/Makefile b/math/ruby-gmp/Makefile
new file mode 100644
index 000000000000..a48c3c73b4a1
--- /dev/null
+++ b/math/ruby-gmp/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: libgmp-ruby
+# Date created: 23 August 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gmp
+PORTVERSION= 1.0
+CATEGORIES= math ruby
+MASTER_SITES= http://synapsa.infoland.int.pl/~taw/libgmp-ruby/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= lib${PORTNAME}-ruby_${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= Ruby bindings to GNU Multiprecision Library
+
+LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+INSTALL_TARGET= site-install
+
+DOCS= ChangeLog README doc/PRECISION doc/TODO
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODDOCDIR}
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/math/ruby-gmp/distinfo b/math/ruby-gmp/distinfo
new file mode 100644
index 000000000000..ef43ad221cba
--- /dev/null
+++ b/math/ruby-gmp/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/libgmp-ruby_1.0.tar.gz) = 4595004696b12dcf6b4d87f92f542c59
diff --git a/math/ruby-gmp/pkg-descr b/math/ruby-gmp/pkg-descr
new file mode 100644
index 000000000000..5a407a5e90d4
--- /dev/null
+++ b/math/ruby-gmp/pkg-descr
@@ -0,0 +1,4 @@
+This is Ruby bindings to GNU Multiprecision Library.
+
+Author: Tomasz Wegrzanowski <taw@users.sf.net>
+WWW: http://synapsa.infoland.int.pl/~taw/libgmp-ruby/
diff --git a/math/ruby-gmp/pkg-plist b/math/ruby-gmp/pkg-plist
new file mode 100644
index 000000000000..b50854fa3a9d
--- /dev/null
+++ b/math/ruby-gmp/pkg-plist
@@ -0,0 +1,6 @@
+%%RUBY_SITEARCHLIBDIR%%/gmp.so
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/PRECISION
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%