- Update PLIST_SUB:
- 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
% cd /usr/ports/databases/postgresql94-plpython % make -V PYTHON_VERSION python3.5 % make check-plist ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: lib/postgresql/plpython2.so Error: Missing: %%DATADIR%%/extension/plpython2u--1.0.sql Error: Missing: %%DATADIR%%/extension/plpython2u--unpackaged--1.0.sql Error: Missing: %%DATADIR%%/extension/plpython2u.control Error: Missing: %%DATADIR%%/extension/plpythonu--1.0.sql Error: Missing: %%DATADIR%%/extension/plpythonu--unpackaged--1.0.sql Error: Missing: %%DATADIR%%/extension/plpythonu.control ===> Error: Plist issues found. *** Error code 1 Stop. make: stopped in /usr/ports/databases/postgresql94-plpython % make -V PLIST_SUB PYTHON2="" PYTHON3="@comment " PG_USER=pgsql PG_GROUP=pgsql PYTHON_INCLUDEDIR=include/python3.5m PYTHON_LIBDIR=lib/python3.5 PYTHON_PLATFORM=freebsd10 PYTHON_SITELIBDIR=lib/python3.5/site-packages PYTHON_VER=3.5 PYTHON_VERSION=python3.5 OSREL=10.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="@comment " PORTEXAMPLES="@comment " LIB32DIR=lib DOCSDIR="share/doc/postgresql" EXAMPLESDIR="share/examples/postgresql" DATADIR="share/postgresql" WWWDIR="www/postgresql" ETCDIR="etc/postgresql"