diff --git a/deskutils/calibre/Makefile b/deskutils/calibre/Makefile index a9879d6e54d3..2675b4bc6c0d 100644 --- a/deskutils/calibre/Makefile +++ b/deskutils/calibre/Makefile @@ -53,6 +53,7 @@ USES= desktop-file-utils gettext-runtime gl gnome localbase:ldflags \ pkgconfig pyqt:5 qt:5 shared-mime-info shebangfix \ ssl tar:xz xorg USE_RC_SUBR= calibre +SUB_LIST+= PYTHON_VERSION=${PYTHON_VERSION} USE_PYQT= core gui network sip svg webengine widgets xmlpatterns USE_QT= buildtools_build core dbus gui qmake_build widgets USE_GL= egl gl diff --git a/deskutils/calibre/files/calibre.in b/deskutils/calibre/files/calibre.in index 129337efe3bf..f93f5140e438 100644 --- a/deskutils/calibre/files/calibre.in +++ b/deskutils/calibre/files/calibre.in @@ -46,7 +46,7 @@ load_rc_config $name pidfile=/var/run/${name}/${name}.pid command=%%PREFIX%%/bin/calibre-server -command_interpreter=%%LOCALBASE%%/bin/python2.7 +command_interpreter=%%LOCALBASE%%/bin/%%PYTHON_VERSION%% required_dirs=${calibre_library} start_precmd=calibre_prestart