aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-11-26 12:52:03 +0800
committerijliao <ijliao@FreeBSD.org>2001-11-26 12:52:03 +0800
commit724e64189efc816d1ec121fed70b6c2ba1e7f44c (patch)
treea935ce448de51602e660d6534c79849bc734d9ec /devel
parenteb4f718eebe2e74c81327a11deaf0fe5c83862e8 (diff)
downloadfreebsd-ports-gnome-724e64189efc816d1ec121fed70b6c2ba1e7f44c.tar.gz
freebsd-ports-gnome-724e64189efc816d1ec121fed70b6c2ba1e7f44c.tar.zst
freebsd-ports-gnome-724e64189efc816d1ec121fed70b6c2ba1e7f44c.zip
libgmp dependency
Submitted by: anthony.kim@vw.com
Diffstat (limited to 'devel')
-rw-r--r--devel/py-mx-experimental/Makefile7
-rw-r--r--devel/py-mx-experimental/files/patch-mx::Number::mxNumber::mxNumber.h11
-rw-r--r--devel/py-mx-experimental/files/patch-mxEXPERIMENTAL.py19
3 files changed, 36 insertions, 1 deletions
diff --git a/devel/py-mx-experimental/Makefile b/devel/py-mx-experimental/Makefile
index 9d11f9f7c7c4..395465f61a8b 100644
--- a/devel/py-mx-experimental/Makefile
+++ b/devel/py-mx-experimental/Makefile
@@ -8,6 +8,7 @@
PORTNAME= mx-experimental
PORTVERSION= 0.6.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://www.lemburg.com/files/python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,13 +16,17 @@ DISTNAME= egenix-${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= ${PYDISTUTILS}
+BUILD_DEPENDS= ${PYDISTUTILS} \
+ ${PREFIX}/include/gmp.h:${PORTSDIR}/math/libgmp3
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/BeeBase/BeeBase.py:${PORTSDIR}/lang/py-mx-base
USE_PYTHON= yes
SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
+post-patch:
+ @${PERL} -pi -e "s|LIBGMPH|${PREFIX}/include|" ${WRKSRC}/mxEXPERIMENTAL.py
+
do-build:
@${SETUP_CMD} build
diff --git a/devel/py-mx-experimental/files/patch-mx::Number::mxNumber::mxNumber.h b/devel/py-mx-experimental/files/patch-mx::Number::mxNumber::mxNumber.h
new file mode 100644
index 000000000000..32fe3f997e4a
--- /dev/null
+++ b/devel/py-mx-experimental/files/patch-mx::Number::mxNumber::mxNumber.h
@@ -0,0 +1,11 @@
+--- mx/Number/mxNumber/mxNumber.h.orig Mon Nov 26 12:46:34 2001
++++ mx/Number/mxNumber/mxNumber.h Mon Nov 26 12:46:43 2001
+@@ -30,7 +30,7 @@
+ #endif
+
+ /* Include the GNU MP header file */
+-#include "gmp.h"
++#include <gmp.h>
+
+ #ifdef __cplusplus
+ extern "C" {
diff --git a/devel/py-mx-experimental/files/patch-mxEXPERIMENTAL.py b/devel/py-mx-experimental/files/patch-mxEXPERIMENTAL.py
new file mode 100644
index 000000000000..59d8cb9e4aa8
--- /dev/null
+++ b/devel/py-mx-experimental/files/patch-mxEXPERIMENTAL.py
@@ -0,0 +1,19 @@
+--- mxEXPERIMENTAL.py.orig Mon Nov 26 12:44:48 2001
++++ mxEXPERIMENTAL.py Mon Nov 26 12:45:52 2001
+@@ -140,7 +140,7 @@
+
+ mx_Extension('mx.Number.mxNumber.mxNumber',
+ ['mx/Number/mxNumber/mxNumber.c'],
+- include_dirs=['mx/Number/mxNumber']),
++ include_dirs=['mx/Number/mxNumber', 'LIBGMPH']),
+
+ ]
+ else:
+@@ -160,7 +160,6 @@
+ 'mx/Number/README',
+ 'mx/Number/mxNumber/mxNumber.h',
+ 'mx/Number/mxNumber/mxh.h',
+- 'mx/Number/mxNumber/gmp.h',
+
+ # mxTidy
+ 'mx/Tidy/Doc/mxTidy.html',