diff options
author | rm <rm@FreeBSD.org> | 2011-11-15 12:25:52 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2011-11-15 12:25:52 +0800 |
commit | 7e45283d005887be2e8f2fdc93d56b003c3ba3df (patch) | |
tree | 2faa53af4329005d1103fa1e8be49aa1bbddc831 /lang/py-prolog | |
parent | 0ac8f859c5b7d6bf02af501ebfede7d23d6dfba2 (diff) | |
download | freebsd-ports-gnome-7e45283d005887be2e8f2fdc93d56b003c3ba3df.tar.gz freebsd-ports-gnome-7e45283d005887be2e8f2fdc93d56b003c3ba3df.tar.zst freebsd-ports-gnome-7e45283d005887be2e8f2fdc93d56b003c3ba3df.zip |
- fix build with lang/swi-pl 5.10
- remove bogus PORTREVSION
- add missing tab
- use PYTHON_SITELIBDIR in pkg-plist
- bump PORTREVISION
PR: ports/159926
Submitted by: rm (myself)
Approved by: maintainer (timeout - 2+ months), miwi (co-mentor)
Feature safe: yes
Diffstat (limited to 'lang/py-prolog')
-rw-r--r-- | lang/py-prolog/Makefile | 9 | ||||
-rw-r--r-- | lang/py-prolog/files/patch-setup.py (renamed from lang/py-prolog/files/patch-aa) | 21 | ||||
-rw-r--r-- | lang/py-prolog/pkg-plist | 28 |
3 files changed, 37 insertions, 21 deletions
diff --git a/lang/py-prolog/Makefile b/lang/py-prolog/Makefile index 5b398674e1be..e5f45ed4fff7 100644 --- a/lang/py-prolog/Makefile +++ b/lang/py-prolog/Makefile @@ -6,8 +6,7 @@ PORTNAME= prolog PORTVERSION= 0.1 -PORTREVISION= 2 -PORTREVSION= 1 +PORTREVISION= 3 CATEGORIES= lang python MASTER_SITES= SF/py${PORTNAME}/PyProlog/PyProlog-${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,11 +15,11 @@ DISTNAME= PyProlog-${PORTVERSION} MAINTAINER= g.gonter@ieee.org COMMENT= A Python extension embedding SWI-Prolog -BUILD_DEPENDS= pl:${PORTSDIR}/lang/swi-pl -RUN_DEPENDS= pl:${PORTSDIR}/lang/swi-pl +BUILD_DEPENDS= swipl:${PORTSDIR}/lang/swi-pl +RUN_DEPENDS= swipl:${PORTSDIR}/lang/swi-pl USE_PYTHON= yes -USE_PYDISTUTILS=yes +USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= PyProlog .include <bsd.port.pre.mk> diff --git a/lang/py-prolog/files/patch-aa b/lang/py-prolog/files/patch-setup.py index 12bf4e5094b9..e52d946659f0 100644 --- a/lang/py-prolog/files/patch-aa +++ b/lang/py-prolog/files/patch-setup.py @@ -1,5 +1,14 @@ ---- setup.py.orig Sun Jun 10 05:16:04 2001 -+++ setup.py Tue Nov 16 12:46:44 2004 +--- setup.py.orig 2001-06-10 07:16:04.000000000 +0400 ++++ setup.py 2011-10-09 11:20:52.000000000 +0400 +@@ -5,7 +5,7 @@ + import os + + def get_atom(atom): +- query = "pl -f none -g 'current_prolog_flag(%s, V), write(V), nl.' -t 'halt'" ++ query = "swipl -f none -g 'current_prolog_flag(%s, V), write(V), nl.' -t 'halt'" + f = os.popen(query % atom) + r = f.read()[:-1] + f.close() @@ -13,11 +13,13 @@ # TDB: this code only need run during 'build'. @@ -24,3 +33,11 @@ description='SWI-Prolog extension module', packages=["pyprolog"], package_dir={"pyprolog":"Lib"}, +@@ -34,6 +36,6 @@ + ["Modules/swiplmodule.c"], + include_dirs=[swipl_include_path], + library_dirs=[swipl_library_path], +- libraries=['pl', 'termcap']) ++ libraries=['swipl', 'termcap']) + ] + ) diff --git a/lang/py-prolog/pkg-plist b/lang/py-prolog/pkg-plist index 9c6a4a568ad0..c416cf0e39e5 100644 --- a/lang/py-prolog/pkg-plist +++ b/lang/py-prolog/pkg-plist @@ -1,14 +1,14 @@ -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Program.py -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Program.pyc -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Program.pyo -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Term.py -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Term.pyc -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/Term.pyo -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/__init__.py -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/__init__.pyc -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/__init__.pyo -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/string_source.py -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/string_source.pyc -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/string_source.pyo -lib/%%PYTHON_VERSION%%/site-packages/pyprolog/swiplmodule.so -@dirrm lib/%%PYTHON_VERSION%%/site-packages/pyprolog +%%PYTHON_SITELIBDIR%%/pyprolog/Program.py +%%PYTHON_SITELIBDIR%%/pyprolog/Program.pyc +%%PYTHON_SITELIBDIR%%/pyprolog/Program.pyo +%%PYTHON_SITELIBDIR%%/pyprolog/Term.py +%%PYTHON_SITELIBDIR%%/pyprolog/Term.pyc +%%PYTHON_SITELIBDIR%%/pyprolog/Term.pyo +%%PYTHON_SITELIBDIR%%/pyprolog/__init__.py +%%PYTHON_SITELIBDIR%%/pyprolog/__init__.pyc +%%PYTHON_SITELIBDIR%%/pyprolog/__init__.pyo +%%PYTHON_SITELIBDIR%%/pyprolog/string_source.py +%%PYTHON_SITELIBDIR%%/pyprolog/string_source.pyc +%%PYTHON_SITELIBDIR%%/pyprolog/string_source.pyo +%%PYTHON_SITELIBDIR%%/pyprolog/swiplmodule.so +@dirrm %%PYTHON_SITELIBDIR%%/pyprolog |