aboutsummaryrefslogtreecommitdiff
path: root/lang/py-prolog
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-01-10 11:03:48 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-01-10 11:03:48 +0000
commit318a89374fd309314cf4f6392fb9bf4ccc44eb7a (patch)
tree0d792f94a5fb297151f189abd4e1038e60524879 /lang/py-prolog
parent46d68af243921ac116ede3f273f894d38d0a0b1b (diff)
downloadports-318a89374fd309314cf4f6392fb9bf4ccc44eb7a.tar.gz
ports-318a89374fd309314cf4f6392fb9bf4ccc44eb7a.zip
The upgrade of swi-pl requires an update for PyProlog as
well. While PyProlog is not available yet in a new version, this fix bridges that gap. PR: ports/75592 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=126040
Diffstat (limited to 'lang/py-prolog')
-rw-r--r--lang/py-prolog/Makefile1
-rw-r--r--lang/py-prolog/files/patch-aa26
2 files changed, 27 insertions, 0 deletions
diff --git a/lang/py-prolog/Makefile b/lang/py-prolog/Makefile
index 8386f4b354fe..88134f83bcc1 100644
--- a/lang/py-prolog/Makefile
+++ b/lang/py-prolog/Makefile
@@ -6,6 +6,7 @@
PORTNAME= prolog
PORTVERSION= 0.1
+PORTREVSION= 1
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyprolog
diff --git a/lang/py-prolog/files/patch-aa b/lang/py-prolog/files/patch-aa
new file mode 100644
index 000000000000..12bf4e5094b9
--- /dev/null
+++ b/lang/py-prolog/files/patch-aa
@@ -0,0 +1,26 @@
+--- setup.py.orig Sun Jun 10 05:16:04 2001
++++ setup.py Tue Nov 16 12:46:44 2004
+@@ -13,11 +13,13 @@
+
+ # TDB: this code only need run during 'build'.
+ arch = get_atom('arch')
+-#swipl_version = get_atom('version')
++swipl_version = get_atom('version')
+ swipl_home = get_atom('home')
+ #print 'P>', arch, swipl_version, swipl_home
+ swipl_include_path = os.path.join(swipl_home, 'include')
+ swipl_library_path = os.path.join(swipl_home, 'runtime', arch)
++if swipl_version > '50400':
++ swipl_library_path = os.path.join(swipl_home, 'lib', arch)
+ #print 'I>', swipl_include_path, swipl_library_path
+
+ setup(name="PyProlog",
+@@ -25,7 +27,7 @@
+ author="Glen Wilder",
+ author_email="gwilder@best.com",
+ url="http://pyprolog.sourceforge.net",
+- licence='LGPL',
++ license='LGPL',
+ description='SWI-Prolog extension module',
+ packages=["pyprolog"],
+ package_dir={"pyprolog":"Lib"},