tweak MODPY_EGG_VERSION handling to take setuptools canonicalisation into

account, the current version does work but this gives less churn in PLISTs
for updates.  ok pirofti@
This commit is contained in:
sthen 2015-09-30 11:44:20 +00:00
parent ef79a18114
commit 62cbf4d63b
2 changed files with 12 additions and 11 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.140 2015/09/29 16:51:10 pirofti Exp $
# $OpenBSD: Makefile,v 1.141 2015/09/30 11:44:20 sthen Exp $
COMMENT = CLI program to download videos from YouTube and other sites
MODPY_EGG_VERSION = 2015.09.28
VERSION = 2015.09.28
MODPY_EGG_VERSION = ${VERSION:S/.0/./}
DISTNAME = youtube-dl-${MODPY_EGG_VERSION}
DISTNAME = youtube-dl-${VERSION}
CATEGORIES = www
HOMEPAGE = http://rg3.github.io/youtube-dl/
@ -14,7 +15,7 @@ MAINTAINER = Paul Irofti <pirofti@openbsd.org>
# Public Domain
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = https://yt-dl.org/downloads/${MODPY_EGG_VERSION}/
MASTER_SITES = https://yt-dl.org/downloads/${VERSION}/
MODULES = lang/python

View File

@ -1,12 +1,12 @@
@comment $OpenBSD: PLIST,v 1.85 2015/09/29 16:51:10 pirofti Exp $
@comment $OpenBSD: PLIST,v 1.86 2015/09/30 11:44:20 sthen Exp $
bin/youtube-dl
lib/python${MODPY_VERSION}/site-packages/youtube_dl/
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-2015.9.28-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl/YoutubeDL.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/YoutubeDL.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/__init__.py