Commit 23c52b64 authored by sunpoet's avatar sunpoet
Browse files

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
parent 7c9c3826
...@@ -193,10 +193,16 @@ ...@@ -193,10 +193,16 @@
# PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} # PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;}
# PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} # PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;}
# PYTHON_PLATFORM=${PYTHON_PLATFORM} # PYTHON_PLATFORM=${PYTHON_PLATFORM}
# PYTHON_PYOEXTENSION=${PYTHON_PYOEXTENSION}
# PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} # PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
# PYTHON_SUFFIX=${PYTHON_SUFFIX}
# PYTHON_VER=${PYTHON_VER} # PYTHON_VER=${PYTHON_VER}
# PYTHON_VERSION=${PYTHON_VERSION} # PYTHON_VERSION=${PYTHON_VERSION}
# #
# and PYTHON2 and PYTHON3 will be set according to the Python version:
#
# PYTHON2="" PYTHON3="@comment " for Python 2.x
# PYTHON2="@comment " PYTHON3="" for Python 3.x
# #
# Deprecated variables, which exist for compatibility and will be removed # Deprecated variables, which exist for compatibility and will be removed
# soon: # soon:
...@@ -433,6 +439,13 @@ PYTHONPREFIX_SITELIBDIR= ${PYTHON_SITELIBDIR:S;${PYTHONBASE};${PREFIX};} ...@@ -433,6 +439,13 @@ PYTHONPREFIX_SITELIBDIR= ${PYTHON_SITELIBDIR:S;${PYTHONBASE};${PREFIX};}
# Used for recording the installed files. # Used for recording the installed files.
_PYTHONPKGLIST= ${WRKDIR}/.PLIST.pymodtmp _PYTHONPKGLIST= ${WRKDIR}/.PLIST.pymodtmp
# PEP 0488 (https://www.python.org/dev/peps/pep-0488/)
.if ${PYTHON_REL} < 3500
PYTHON_PYOEXTENSION= pyo
.else
PYTHON_PYOEXTENSION= opt-1.pyc
.endif
# Ports bound to a certain python version SHOULD # Ports bound to a certain python version SHOULD
# - use the PYTHON_PKGNAMEPREFIX # - use the PYTHON_PKGNAMEPREFIX
# - use directories using the PYTHON_PKGNAMEPREFIX # - use directories using the PYTHON_PKGNAMEPREFIX
...@@ -529,11 +542,6 @@ add-plist-pymod: ...@@ -529,11 +542,6 @@ add-plist-pymod:
# of TMPPLIST that end with .py[co], so that they conform # of TMPPLIST that end with .py[co], so that they conform
# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/) # to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/)
PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())' PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
_USES_stage+= 935:add-plist-python _USES_stage+= 935:add-plist-python
add-plist-python: add-plist-python:
@${AWK} '\ @${AWK} '\
...@@ -542,7 +550,7 @@ add-plist-python: ...@@ -542,7 +550,7 @@ add-plist-python:
/^@dirrmtry / {d = substr($$0, 11); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \ /^@dirrmtry / {d = substr($$0, 11); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
{print} \ {print} \
' \ ' \
pc="__pycache__" mt="$$(${PYMAGICTAG})" pyo="${PYOEXTENSION}" \ pc="__pycache__" mt="$$(${PYMAGICTAG})" pyo="${PYTHON_PYOEXTENSION}" \
${TMPPLIST} > ${TMPPLIST}.pyc_tmp ${TMPPLIST} > ${TMPPLIST}.pyc_tmp
@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST} @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
.endif # ${PYTHON_REL} >= 3200 && defined(_PYTHON_FEATURE_PY3KPLIST) .endif # ${PYTHON_REL} >= 3200 && defined(_PYTHON_FEATURE_PY3KPLIST)
...@@ -591,9 +599,16 @@ PREFIX= ${PYTHONBASE} ...@@ -591,9 +599,16 @@ PREFIX= ${PYTHONBASE}
PLIST_SUB+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} \ PLIST_SUB+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} \
PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} \ PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} \
PYTHON_PLATFORM=${PYTHON_PLATFORM} \ PYTHON_PLATFORM=${PYTHON_PLATFORM} \
PYTHON_PYOEXTENSION=${PYTHON_PYOEXTENSION} \
PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} \ PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} \
PYTHON_SUFFIX=${PYTHON_SUFFIX} \
PYTHON_VER=${PYTHON_VER} \ PYTHON_VER=${PYTHON_VER} \
PYTHON_VERSION=python${_PYTHON_VERSION} PYTHON_VERSION=${PYTHON_VERSION}
.if ${PYTHON_REL} < 3000
PLIST_SUB+= PYTHON2="" PYTHON3="@comment "
.else
PLIST_SUB+= PYTHON2="@comment " PYTHON3=""
.endif
_USES_POST+= python _USES_POST+= python
.endif # _INCLUDE_USES_PYTHON_MK .endif # _INCLUDE_USES_PYTHON_MK
......
...@@ -18,6 +18,7 @@ BUILD_DEPENDS= gsettings-desktop-schemas>=3.2.0:devel/gsettings-desktop-schemas ...@@ -18,6 +18,7 @@ BUILD_DEPENDS= gsettings-desktop-schemas>=3.2.0:devel/gsettings-desktop-schemas
RUN_DEPENDS= gsettings-desktop-schemas>=3.2.0:devel/gsettings-desktop-schemas \ RUN_DEPENDS= gsettings-desktop-schemas>=3.2.0:devel/gsettings-desktop-schemas \
at-spi2-core>=2.1.5:accessibility/at-spi2-core at-spi2-core>=2.1.5:accessibility/at-spi2-core
NO_ARCH= yes
USES= gettext gmake pkgconfig python:3 shebangfix tar:xz USES= gettext gmake pkgconfig python:3 shebangfix tar:xz
USE_GNOME= gtk30 intlhack py3gobject3 USE_GNOME= gtk30 intlhack py3gobject3
INSTALLS_ICONS= yes INSTALLS_ICONS= yes
...@@ -28,15 +29,4 @@ SHEBANG_FILES= plugins/ipython_view.py ...@@ -28,15 +29,4 @@ SHEBANG_FILES= plugins/ipython_view.py
GLIB_SCHEMAS= org.a11y.Accerciser.gschema.xml GLIB_SCHEMAS= org.a11y.Accerciser.gschema.xml
.include <bsd.port.pre.mk> .include <bsd.port.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
.include <bsd.port.post.mk>
...@@ -13,47 +13,47 @@ man/man1/accerciser.1.gz ...@@ -13,47 +13,47 @@ man/man1/accerciser.1.gz
%%PYTHON_SITELIBDIR%%/accerciser/prefs_dialog.py %%PYTHON_SITELIBDIR%%/accerciser/prefs_dialog.py
%%PYTHON_SITELIBDIR%%/accerciser/tools.py %%PYTHON_SITELIBDIR%%/accerciser/tools.py
%%PYTHON_SITELIBDIR%%/accerciser/ui_manager.py %%PYTHON_SITELIBDIR%%/accerciser/ui_manager.py
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/about_dialog.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/about_dialog.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/about_dialog.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/about_dialog.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accerciser.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accerciser.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accerciser.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accerciser.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accessible_treeview.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accessible_treeview.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accessible_treeview.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/accessible_treeview.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/bookmarks.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/bookmarks.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/bookmarks.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/bookmarks.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/hotkey_manager.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/hotkey_manager.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/hotkey_manager.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/hotkey_manager.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/i18n.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/i18n.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/i18n.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/i18n.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/icons.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/icons.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/icons.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/icons.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/main_window.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/main_window.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/main_window.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/main_window.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/node.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/node.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/node.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/node.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/prefs_dialog.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/prefs_dialog.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/prefs_dialog.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/prefs_dialog.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/tools.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/tools.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/tools.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/tools.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/ui_manager.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/ui_manager.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/__pycache__/ui_manager.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/__pycache__/ui_manager.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__init__.py %%PYTHON_SITELIBDIR%%/accerciser/plugin/__init__.py
%%PYTHON_SITELIBDIR%%/accerciser/plugin/base_plugin.py %%PYTHON_SITELIBDIR%%/accerciser/plugin/base_plugin.py
%%PYTHON_SITELIBDIR%%/accerciser/plugin/message.py %%PYTHON_SITELIBDIR%%/accerciser/plugin/message.py
%%PYTHON_SITELIBDIR%%/accerciser/plugin/plugin_manager.py %%PYTHON_SITELIBDIR%%/accerciser/plugin/plugin_manager.py
%%PYTHON_SITELIBDIR%%/accerciser/plugin/view.py %%PYTHON_SITELIBDIR%%/accerciser/plugin/view.py
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/base_plugin.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/base_plugin.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/base_plugin.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/base_plugin.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/message.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/message.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/message.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/message.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/plugin_manager.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/plugin_manager.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/plugin_manager.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/plugin_manager.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/view.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/view.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/view.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/accerciser/plugin/__pycache__/view.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%DATADIR%%/pixmaps/hicolor/22x22/acceleratorlabel.png %%DATADIR%%/pixmaps/hicolor/22x22/acceleratorlabel.png
%%DATADIR%%/pixmaps/hicolor/22x22/alert.png %%DATADIR%%/pixmaps/hicolor/22x22/alert.png
%%DATADIR%%/pixmaps/hicolor/22x22/animation.png %%DATADIR%%/pixmaps/hicolor/22x22/animation.png
......
...@@ -26,6 +26,7 @@ RUN_DEPENDS= py3?-dbus>=0:devel/py3-dbus \ ...@@ -26,6 +26,7 @@ RUN_DEPENDS= py3?-dbus>=0:devel/py3-dbus \
CONFLICTS= py*-json-py-[0-9]* CONFLICTS= py*-json-py-[0-9]*
PORTSCOUT= limitw:1,even PORTSCOUT= limitw:1,even
NO_ARCH= yes
USES= gettext gmake gnome pathfix pkgconfig python:3 tar:xz USES= gettext gmake gnome pathfix pkgconfig python:3 tar:xz
USE_GNOME= gtk30 py3gobject3 intlhack USE_GNOME= gtk30 py3gobject3 intlhack
INSTALLS_ICONS= yes INSTALLS_ICONS= yes
...@@ -37,15 +38,4 @@ post-patch: ...@@ -37,15 +38,4 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/src/orca/orca_i18n.py ${WRKSRC}/src/orca/orca_i18n.py
.include <bsd.port.pre.mk> .include <bsd.port.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
.include <bsd.port.post.mk>
This diff is collapsed.
...@@ -17,21 +17,11 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/at-spi2-registryd:accessibility/at-spi2-core ...@@ -17,21 +17,11 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/at-spi2-registryd:accessibility/at-spi2-core
CONFLICTS= at-spi-1.[0-9]* CONFLICTS= at-spi-1.[0-9]*
PORTSCOUT= limitw:1,even PORTSCOUT= limitw:1,even
NO_ARCH= yes
USES= gettext gmake gnome pathfix pkgconfig python:3 tar:xz USES= gettext gmake gnome pathfix pkgconfig python:3 tar:xz
USE_GNOME= intlhack py3gobject3 USE_GNOME= intlhack py3gobject3
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk> .include <bsd.port.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
.include <bsd.port.post.mk>
%%PYTHON_SITELIBDIR%%/pyatspi/Accessibility.py %%PYTHON_SITELIBDIR%%/pyatspi/Accessibility.py
%%PYTHON_SITELIBDIR%%/pyatspi/__init__.py %%PYTHON_SITELIBDIR%%/pyatspi/__init__.py
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/Accessibility.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/Accessibility.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/Accessibility.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/Accessibility.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/action.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/action.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/action.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/action.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/appevent.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/appevent.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/appevent.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/appevent.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/application.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/application.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/application.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/application.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/collection.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/collection.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/collection.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/collection.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/component.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/component.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/component.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/component.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/constants.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/constants.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/constants.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/constants.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/deviceevent.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/deviceevent.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/deviceevent.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/deviceevent.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/document.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/document.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/document.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/document.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/editabletext.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/editabletext.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/editabletext.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/editabletext.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/enum.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/enum.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/enum.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/enum.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/hypertext.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/hypertext.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/hypertext.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/hypertext.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/image.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/image.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/image.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/image.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/interface.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/interface.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/interface.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/interface.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/registry.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/registry.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/registry.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/registry.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/role.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/role.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/role.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/role.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/selection.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/selection.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/selection.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/selection.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/state.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/state.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/state.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/state.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/table.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/table.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/table.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/table.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/tablecell.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/tablecell.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/tablecell.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/tablecell.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/text.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/text.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/text.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/text.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/utils.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/utils.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/utils.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/utils.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/value.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/value.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/value.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/pyatspi/__pycache__/value.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/pyatspi/action.py %%PYTHON_SITELIBDIR%%/pyatspi/action.py
%%PYTHON_SITELIBDIR%%/pyatspi/appevent.py %%PYTHON_SITELIBDIR%%/pyatspi/appevent.py
%%PYTHON_SITELIBDIR%%/pyatspi/application.py %%PYTHON_SITELIBDIR%%/pyatspi/application.py
......
bin/spd-conf bin/spd-conf
%%PYTHON_SITELIBDIR%%/speechd/__init__.py %%PYTHON_SITELIBDIR%%/speechd/__init__.py
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd/__pycache__/_test.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd/__pycache__/paths.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd/_test.py %%PYTHON_SITELIBDIR%%/speechd/_test.py
%%PYTHON_SITELIBDIR%%/speechd/client.py %%PYTHON_SITELIBDIR%%/speechd/client.py
%%PYTHON_SITELIBDIR%%/speechd/paths.py %%PYTHON_SITELIBDIR%%/speechd/paths.py
%%PYTHON_SITELIBDIR%%/speechd_config/__init__.py %%PYTHON_SITELIBDIR%%/speechd_config/__init__.py
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/config.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/speechd_config/__pycache__/paths.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/speechd_config/config.py %%PYTHON_SITELIBDIR%%/speechd_config/config.py
%%PYTHON_SITELIBDIR%%/speechd_config/paths.py %%PYTHON_SITELIBDIR%%/speechd_config/paths.py
share/sounds/speech-dispatcher/test.wav share/sounds/speech-dispatcher/test.wav
......
...@@ -70,7 +70,6 @@ NAS_CONFIGURE_WITH= nas ...@@ -70,7 +70,6 @@ NAS_CONFIGURE_WITH= nas
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_WITH=pulse PULSEAUDIO_CONFIGURE_WITH=pulse
.include <bsd.port.pre.mk>
post-patch: post-patch:
@${REINPLACE_CMD} -e '/SUBDIRS/ s/tests//' \ @${REINPLACE_CMD} -e '/SUBDIRS/ s/tests//' \
${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.in
...@@ -87,7 +86,6 @@ post-install: ...@@ -87,7 +86,6 @@ post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR} ${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.else .else
PORTSCOUT= ignore:1 PORTSCOUT= ignore:1
...@@ -97,17 +95,6 @@ USES+= python:3.3+ ...@@ -97,17 +95,6 @@ USES+= python:3.3+
LIB_DEPENDS+= libspeechd.so:accessibility/speech-dispatcher LIB_DEPENDS+= libspeechd.so:accessibility/speech-dispatcher
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py3-xdg RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py3-xdg
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>
...@@ -13,6 +13,7 @@ COMMENT= Utility to provide current weather conditions and forecasts ...@@ -13,6 +13,7 @@ COMMENT= Utility to provide current weather conditions and forecasts
LICENSE= ISCL LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_FILE= ${WRKSRC}/LICENSE
NO_ARCH= yes
USES= python shebangfix tar:xz USES= python shebangfix tar:xz
PLIST_FILES= bin/${PORTNAME} \ PLIST_FILES= bin/${PORTNAME} \
...@@ -35,12 +36,6 @@ PYCACHE_DIR= __pycache__/ ...@@ -35,12 +36,6 @@ PYCACHE_DIR= __pycache__/
PYCACHE_FILE= ${PORTNAME}.cpython-${PYTHON_SUFFIX} PYCACHE_FILE= ${PORTNAME}.cpython-${PYTHON_SUFFIX}
.endif .endif
.if ${PYTHON_REL} < 3500
PYTHON_PYOEXTENSION= pyo
.else
PYTHON_PYOEXTENSION= opt-1.pyc
.endif
do-build: do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}/${PORTNAME}.py @${PYTHON_CMD} -m compileall ${WRKSRC}/${PORTNAME}.py
@${PYTHON_CMD} -O -m compileall ${WRKSRC}/${PORTNAME}.py @${PYTHON_CMD} -O -m compileall ${WRKSRC}/${PORTNAME}.py
......
...@@ -29,15 +29,4 @@ INSTALL_TARGET= install-strip ...@@ -29,15 +29,4 @@ INSTALL_TARGET= install-strip
GLIB_SCHEMAS= org.gnome.Music.gschema.xml GLIB_SCHEMAS= org.gnome.Music.gschema.xml
.include <bsd.port.pre.mk> .include <bsd.port.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
.include <bsd.port.post.mk>
...@@ -15,34 +15,34 @@ lib/gnome-music/girepository-1.0/Gd-1.0.typelib ...@@ -15,34 +15,34 @@ lib/gnome-music/girepository-1.0/Gd-1.0.typelib
%%PYTHON_SITELIBDIR%%/gnomemusic/view.py %%PYTHON_SITELIBDIR%%/gnomemusic/view.py
%%PYTHON_SITELIBDIR%%/gnomemusic/widgets.py %%PYTHON_SITELIBDIR%%/gnomemusic/widgets.py
%%PYTHON_SITELIBDIR%%/gnomemusic/window.py %%PYTHON_SITELIBDIR%%/gnomemusic/window.py
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/__init__.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/__init__.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/albumArtCache.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/albumArtCache.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/albumArtCache.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/albumArtCache.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/application.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/application.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/application.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/application.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/grilo.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/grilo.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/grilo.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/grilo.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/mpris.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/mpris.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/mpris.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/mpris.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/notification.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/notification.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/notification.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/notification.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/player.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/player.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/player.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/player.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/playlists.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/playlists.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/playlists.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/playlists.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/query.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/query.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/query.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/query.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/searchbar.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/searchbar.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/searchbar.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/searchbar.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/toolbar.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/toolbar.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/toolbar.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/toolbar.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/view.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/view.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/view.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/view.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/widgets.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/widgets.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/widgets.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/widgets.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/window.cpython-%%PYVER%%.pyc %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/window.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/window.cpython-%%PYVER%%.%%PYOEXTENSION%% %%PYTHON_SITELIBDIR%%/gnomemusic/__pycache__/window.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
man/man1/gnome-music.1.gz man/man1/gnome-music.1.gz
share/appdata/gnome-music.appdata.xml share/appdata/gnome-music.appdata.xml
share/applications/gnome-music.desktop share/applications/gnome-music.desktop
......
...@@ -69,7 +69,6 @@ MTP_LIB_DEPENDS= libmtp.so:multimedia/libmtp \ ...@@ -69,7 +69,6 @@ MTP_LIB_DEPENDS= libmtp.so:multimedia/libmtp \
libhal.so:sysutils/hal libhal.so:sysutils/hal
PYTHON_CONFIGURE_ENABLE= python PYTHON_CONFIGURE_ENABLE= python
PYTHON_USES= python:3.3+ PYTHON_USES= python:3.3+
PYTHON_PLIST_SUB+= PYTVER=${PYTHON_SUFFIX} PYOEXTENSION=${PYOEXTENSION}
PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py3-libpeas PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py3-libpeas
# context plugin # context plugin
# webkit is for the context plugin, which is broken because # webkit is for the context plugin, which is broken because
...@@ -80,12 +79,6 @@ PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py3-libpeas ...@@ -80,12 +79,6 @@ PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py3-libpeas
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|{MOZILLA_PLUGINDIR|{MOZILLA_PLUGINDIR}|g' \ @${REINPLACE_CMD} -e 's|{MOZILLA_PLUGINDIR|{MOZILLA_PLUGINDIR}|g' \
${WRKSRC}/configure ${WRKSRC}/configure
......
<