aboutsummaryrefslogtreecommitdiff
path: root/devel/py-mx-experimental
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-11-26 04:52:03 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-11-26 04:52:03 +0000
commit3c5d9ab754ea82b8bf1547e9ca11d5e753be9da1 (patch)
tree7eff7472dc1c2ee95659547eaaca24dbdd76b389 /devel/py-mx-experimental
parentda66d11416eb0eccb48e2a6f5ce9e051aa602af0 (diff)
downloadports-3c5d9ab754ea82b8bf1547e9ca11d5e753be9da1.tar.gz
ports-3c5d9ab754ea82b8bf1547e9ca11d5e753be9da1.zip
libgmp dependency
Submitted by: anthony.kim@vw.com
Notes
Notes: svn path=/head/; revision=50552
Diffstat (limited to 'devel/py-mx-experimental')
-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',