Add more PLIST_SUB to Mk/Uses/python.mk

- Add PYTHON_PYOEXTENSION and PYTHON_SUFFIX
- Add PYTHON2 and PYTHON3
- Respect PYTHON_VERSION
- Rename PYOEXTENSION to PYTHON_PYOEXTENSION

This change would help:
- Build databases/postgresql*-plpython with Python 3
  (It has PLIST issue since bsd.python.mk to Uses/python.mk transition)
- Simplify Makefile

PR:		205807
Differential Revision:	https://reviews.FreeBSD.org/D4758
Exp-run by:	antoine
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2017-01-07 21:42:28 +00:00
parent 2660d9ede2
commit e730d999d3
40 changed files with 1148 additions and 1328 deletions

View File

@@ -3,12 +3,12 @@ include/postgresql/server/plpython.h
%%DOCSDIR%%/README-plpython
%%PYTHON2%%lib/postgresql/plpython2.so
%%PYTHON3%%lib/postgresql/plpython3.so
%%PYTHON2%%%%DATADIR%%/extension/plpythonu.control
%%PYTHON2%%%%DATADIR%%/extension/plpythonu--1.0.sql
%%PYTHON2%%%%DATADIR%%/extension/plpythonu--unpackaged--1.0.sql
%%PYTHON2%%%%DATADIR%%/extension/plpython2u.control
%%PYTHON2%%%%DATADIR%%/extension/plpython2u--1.0.sql
%%PYTHON2%%%%DATADIR%%/extension/plpython2u--unpackaged--1.0.sql
%%PYTHON3%%%%DATADIR%%/extension/plpython3u.control
%%PYTHON2%%%%DATADIR%%/extension/plpython2u.control
%%PYTHON3%%%%DATADIR%%/extension/plpython3u--1.0.sql
%%PYTHON3%%%%DATADIR%%/extension/plpython3u--unpackaged--1.0.sql
%%PYTHON3%%%%DATADIR%%/extension/plpython3u.control
%%PYTHON2%%%%DATADIR%%/extension/plpythonu--1.0.sql
%%PYTHON2%%%%DATADIR%%/extension/plpythonu--unpackaged--1.0.sql
%%PYTHON2%%%%DATADIR%%/extension/plpythonu.control