- 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
This commit is contained in:
parent
ff0dc070f1
commit
bd66448a56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285819
@ -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>
|
||||
|
@ -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'])
|
||||
]
|
||||
)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user