On 2014/05/01 21:17, Sergey Bronnikov wrote: > On 18:26 Thu 01 May , Antoine Jacoutot wrote: > > On Thu, May 01, 2014 at 08:13:11PM +0400, Sergey Bronnikov wrote: > > > $ cat misc/py-asciinema/pkg/DESCR > > > asciinema is a free and open source solution for recording the terminal > > > sessions and sharing them on the web. > > > > > > Tested on -current, amd64 > > > > > > P.S. actually it was sent to ports@ on 2014-01-24, now updated to latest > > > version. > > > > You don't want to use FULLPKGNAME in the PLIST. > > WRKSRC is the default, you don't need that. > > Use MASTER_SITE_PYPI instead of github. > > py-* is usually for python modules, since this is a standalone software, no > > need to prefix it. > > Thank you for review. > > In my case: > $ make show=WRKSRC > /usr/ports/pobj/asciinema-0.9.8/v0.9.8 > and without setting of WRKSRC packaging failed. > > - MASTER_SITES pointed to MASTER_SITE_PYPI > - keep FULLPKGNAME in PLIST > - renamed py-asciinema to asciinema
Diff relative to yours, new tar attached. diff --git Makefile Makefile index 8866dcb..e0e8dbc 100644 --- Makefile +++ Makefile @@ -2,25 +2,23 @@ COMMENT = command line client for asciinema.org service -VERSION = 0.9.8 -DISTNAME = v${VERSION} -PKGNAME = asciinema-${VERSION} +MODPY_EGG_VERSION = 0.9.8 +DISTNAME = asciinema-${MODPY_EGG_VERSION} CATEGORIES = misc sysutils HOMEPAGE = http://asciinema.org -MAINTAINER = Sergey Bronnikov <este...@gmail.com> +MAINTAINER = Sergey Bronnikov <este...@gmail.com> -# MIT License +# MIT PERMIT_PACKAGE_CDROM = Yes MASTER_SITES = ${MASTER_SITE_PYPI:=a/asciinema/} MODULES = lang/python NO_BUILD = Yes RUN_DEPENDS = www/py-requests +TEST_DEPENDS = ${RUN_DEPENDS} MODPY_SETUPTOOLS = Yes -WRKSRC = ${WRKDIR}/${PKGNAME}/ - .include <bsd.port.mk> diff --git distinfo distinfo index d69825d..6535fb4 100644 --- distinfo +++ distinfo @@ -1,2 +1,2 @@ -SHA256 (v0.9.8.tar.gz) = 8wnb+G5Ix2ybOuhsvQj8HCG42Vqd2Kl8zeGDry3tyYQ= -SIZE (v0.9.8.tar.gz) = 14540 +SHA256 (asciinema-0.9.8.tar.gz) = 8gv5bF7F9Pq6fEyRzltIaWzoFgWTpIl+iofMg5IU3x8= +SIZE (asciinema-0.9.8.tar.gz) = 6336 diff --git pkg/PLIST pkg/PLIST index 104603e..1a0b8b5 100644 --- pkg/PLIST +++ pkg/PLIST @@ -1,13 +1,13 @@ @comment $OpenBSD$ bin/asciinema lib/python${MODPY_VERSION}/site-packages/asciinema/ -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/ -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/PKG-INFO -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/SOURCES.txt -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/dependency_links.txt -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/entry_points.txt -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/requires.txt -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/asciinema-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/asciinema/__init__.py lib/python${MODPY_VERSION}/site-packages/asciinema/__init__.pyc lib/python${MODPY_VERSION}/site-packages/asciinema/__main__.py
asciinema.tgz
Description: application/tar-gz