Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 22:16:19 GMT
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185564: [patch] devel/py-cfgparse: update to 1.3
Message-ID:  <201401072216.s07MGJsI005096@oldred.freebsd.org>
Resent-Message-ID: <201401072220.s07MK0xF050447@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185564
>Category:       ports
>Synopsis:       [patch] devel/py-cfgparse: update to 1.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 07 22:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Makhmatkhanov
>Release:        FreeBSD 11.0-CURRENT
>Organization:
>Environment:
>Description:
- update to 1.3
- change mastersites to PYPI (it hold more fresh version - 1.3)
- switch to using PYDISTUTILS_AUTOPLIST, so remove no more needed
  PYDISTUTILS_PKGNAME and PYDISTUTILS_EGGINFO
- use DOS2UNIX to clean up cfgparse code
- support stage, by install port docs unconditionally to stage area
- remove PLIST_SUB that wasn't used anywhere in pkg-plist
- whitespace fix in pkg-descr
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 339040)
+++ Makefile	(working copy)
@@ -2,30 +2,26 @@
 # $FreeBSD$
 
 PORTNAME=	cfgparse
-PORTVERSION=	1.2
-PORTREVISION=	1
+PORTVERSION=	1.3
 CATEGORIES=	devel python
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/v01_02
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	cfgparse-v01_02
 
 MAINTAINER=	jdferrell3@yahoo.com
 COMMENT=	Python module for parsing configuration files
 
-USE_PYTHON=	2.5+
-USE_PYDISTUTILS=yes
-PYDISTUTILS_PKGNAME=	cfgparse
-PYDISTUTILS_EGGINFO=	${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-v01_02-${PYTHON_VERSION:S/thon//}.egg-info
+USES=			dos2unix
+DOS2UNIX_FILES=		cfgparse.py
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+USE_ZIP=		yes
 
 DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
+PORTDOCS=	*
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/cfgparse/* ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
 
-PLIST_SUB=	PYTHONVER=${PYTHON_VERSION:S/python//}
-
 .include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 339040)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (cfgparse-v01_02.tar.gz) = 59189e3886be58f344c2b85956ff97089aaa546f7a342bd26144ed94c991a61c
-SIZE (cfgparse-v01_02.tar.gz) = 128803
+SHA256 (cfgparse-1.3.zip) = adc830323e4d9872af1a81364dd18e958b5550c3cc2d1f05929ec2634147f2f9
+SIZE (cfgparse-1.3.zip) = 98401
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 339040)
+++ pkg-descr	(working copy)
@@ -1,3 +1,3 @@
-cfgparse is Python module for parsing configuration files.  
+cfgparse is Python module for parsing configuration files.
 
 WWW: http://cfgparse.sourceforge.net/
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 339040)
+++ pkg-plist	(working copy)
@@ -1,52 +0,0 @@
-%%PYTHON_SITELIBDIR%%/cfgparse.py
-%%PYTHON_SITELIBDIR%%/cfgparse.pyc
-%%PYTHON_SITELIBDIR%%/cfgparse.pyo
-%%PORTDOCS%%%%DOCSDIR%%/about.html
-%%PORTDOCS%%%%DOCSDIR%%/blank.png
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-adding-files.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-adding-options.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-cmd-line-coop.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-coop-files.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-coop-help.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-coop-keys.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-coop-option.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-create-parser.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-default-keys.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-env-keys.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-groups.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-help-notes.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-keys.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-option-check.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-option-help.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-option-name.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-option-type.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-parsing.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-printing-help.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-python.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-round-trip-set-option.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-round-trip-set.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-round-trip-write.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-section-keys.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-sections.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse-text-sub.html
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse.css
-%%PORTDOCS%%%%DOCSDIR%%/cfgparse.html
-%%PORTDOCS%%%%DOCSDIR%%/contents.png
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/index.png
-%%PORTDOCS%%%%DOCSDIR%%/modules.png
-%%PORTDOCS%%%%DOCSDIR%%/next.png
-%%PORTDOCS%%%%DOCSDIR%%/node1.html
-%%PORTDOCS%%%%DOCSDIR%%/node10.html
-%%PORTDOCS%%%%DOCSDIR%%/node18.html
-%%PORTDOCS%%%%DOCSDIR%%/node2.html
-%%PORTDOCS%%%%DOCSDIR%%/node22.html
-%%PORTDOCS%%%%DOCSDIR%%/node23.html
-%%PORTDOCS%%%%DOCSDIR%%/node24.html
-%%PORTDOCS%%%%DOCSDIR%%/node28.html
-%%PORTDOCS%%%%DOCSDIR%%/node33.html
-%%PORTDOCS%%%%DOCSDIR%%/node36.html
-%%PORTDOCS%%%%DOCSDIR%%/previous.png
-%%PORTDOCS%%%%DOCSDIR%%/pyfav.png
-%%PORTDOCS%%%%DOCSDIR%%/up.png
-%%PORTDOCS%%@dirrm %%DOCSDIR%%


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401072216.s07MGJsI005096>