SyntaxError: Non-UTF-8 code starting with '\xb7' in file youtube-dl on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details by installing the original unmodified file and a wrapper script. I'm not sure why it broke or why this works better, but it does for me (TM). Bump PKGREVISION.
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.52 2014/06/21 18:16:39 wiz Exp $
|
|
|
|
VERSION_DATE= 2014.05.16.1
|
|
DISTNAME= youtube-dl-${VERSION_DATE}
|
|
PKGNAME= youtube-dl-${VERSION_DATE:S/.//S/.//}
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://youtube-dl.org/downloads/${VERSION_DATE}/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://rg3.github.io/youtube-dl/
|
|
COMMENT= Download videos from youtube.com
|
|
LICENSE= public-domain
|
|
|
|
USE_LANGUAGES= # none
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/youtube-dl
|
|
USE_TOOLS+= gmake
|
|
|
|
MAKE_FLAGS+= PREFIX=${PREFIX} \
|
|
BASHCOMPDIR=${PREFIX}/share/bash-completion/completions
|
|
INSTALLATION_DIRS= share/youtube-dl
|
|
CHECK_INTERPRETER_SKIP= share/youtube-dl/youtube-dl
|
|
|
|
post-patch:
|
|
${ECHO} '#!/bin/sh' > ${WRKSRC}/youtube-dl.sh
|
|
${ECHO} 'exec ${PYTHONBIN} ${PREFIX}/share/youtube-dl/youtube-dl "$$@"' >> ${WRKSRC}/youtube-dl.sh
|
|
|
|
post-install:
|
|
mv ${DESTDIR}${PREFIX}/bin/youtube-dl ${DESTDIR}${PREFIX}/share/youtube-dl
|
|
${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl.sh ${DESTDIR}${PREFIX}/bin/youtube-dl
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|