diff --git a/audio/sonice/Makefile b/audio/sonice/Makefile index 9b632993e8ab..90ef598e3ecc 100644 --- a/audio/sonice/Makefile +++ b/audio/sonice/Makefile @@ -13,15 +13,15 @@ COMMENT= Sonice eases reencoding of .ogg files RUN_DEPENDS= oggenc:${PORTSDIR}/audio/vorbis-tools \ flac:${PORTSDIR}/audio/flac \ vorbisgain:${PORTSDIR}/audio/vorbisgain \ - ${PYTHON_SITELIBDIR}/yaml/__init__.py:${PORTSDIR}/devel/py-yaml + ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml -NO_STAGE= yes USE_PYTHON= 2 USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes WRKSRC= ${WRKDIR}/sonice -post-install: - @${MV} ${PREFIX}/bin/sonice.py ${PREFIX}/bin/sonice +post-patch: + @${MV} ${WRKSRC}/bin/sonice.py ${WRKSRC}/bin/sonice + @${REINPLACE_CMD} '/binify/ s|\.py||' ${WRKSRC}/setup.py .include