On Sun, Feb 07, 2016 at 01:55:24PM +0000, Stuart Henderson wrote:
> On 2016/02/07 07:16, Jiri B wrote:
> > IMO there's something wrong with 'pre-configure' block in py-qt5, I've
> > discovered it while working on python3 flavor (install part fails as
> > it is working with python2 syntax [except IOError, e...]).
> 
> That was just copied from py-qt4, it probably won't work for py3 there
> either, as you can see none of these ports support py3 as-is.
> 
> As things stand, it's just expected that py2 works.

Thanks. I have solved it for myself for now like this:

$ sed -n '/^pre-configure/,$p' Makefile 
pre-configure:
.if ${FLAVOR:Mpython3}
        rm -fr ${WRKSRC}/pyuic/uic/port_v2
.else
        rm -fr ${WRKSRC}/pyuic/uic/port_v3
.endif


post-install:
        mv ${WRKINST}${TRUEPREFIX}/bin/pylupdate5 
${WRKINST}${TRUEPREFIX}/bin/pylupdate5${MODPY_BIN_SUFFIX}
        mv ${WRKINST}${TRUEPREFIX}/bin/pyrcc5 
${WRKINST}${TRUEPREFIX}/bin/pyrcc5${MODPY_BIN_SUFFIX}
        mv ${WRKINST}${TRUEPREFIX}/bin/pyuic5 
${WRKINST}${TRUEPREFIX}/bin/pyuic5${MODPY_BIN_SUFFIX}
        ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}/${MODPY_SITEPKG}
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}qt5
        cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/${MODPY_PY_PREFIX}qt5
        chown -R ${SHAREOWN}:${SHAREGRP} 
${PREFIX}/share/doc/${MODPY_PY_PREFIX}qt5/*

.include <bsd.port.mk>

But... There's 'share/sip' subdir :/ Fedora packages it only for
python2 and IIUC we don't have MODPY_COMMENT-like trick for python3
(thus to make python3 flavor to ignore it).

In PLIST I changed:

+@bin bin/pylupdate5${MODPY_BIN_SUFFIX}
+@bin bin/pyrcc5${MODPY_BIN_SUFFIX}
+bin/pyuic5${MODPY_BIN_SUFFIX}

plus commented out with MODPY_COMMENT '${MODPY_PYCACHE}/' lines.

I tried to open PanConvert (an QT5 GUI for pandoc converter) and it
opens the main windows.

j.

Reply via email to