On Mon, Mar 28, 2016 at 12:44:33PM +0200, Remi Pointel wrote: > attached is the new port pdfid.
I would recommend to install the binary without the .py suffix, the user does not care that it is written in python. You should patch the #! line. $ /usr/local/bin/pdfid.py env: python: No such file or directory There are 3 plugins which were not installed. The script searches for them in the bin directory. This diff fixes the issues, but perhaps the plugins should be installed somewhere in /usr/local/lib and the script's search routine patched. bluhm --- Makefile.orig Mon Mar 28 15:33:36 2016 +++ Makefile Mon Mar 28 15:52:13 2016 @@ -21,12 +21,17 @@ EXTRACT_SUFX = .zip MODULES = lang/python -NO_BUILD = Yes NO_TEST = Yes WRKDIST = ${WRKDIR} +do-build: + echo 'H\n1s,^#!.*,#!${MODPY_BIN},\nwq' | ed -s ${WRKSRC}/pdfid.py + do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/pdfid.py ${PREFIX}/bin/ + ${INSTALL_SCRIPT} ${WRKSRC}/pdfid.py ${PREFIX}/bin/pdfid + for plugin in `cat ${WRKSRC}/plugin_list`; do \ + ${INSTALL_DATA} ${WRKSRC}/$$plugin ${PREFIX}/bin/; \ + done .include <bsd.port.mk>