Bug 172409 - devel/py-importlib: cleanup
Summary: devel/py-importlib: cleanup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-06 19:10 UTC by Ruslan Makhmatkhanov
Modified: 2012-10-07 06:37 UTC (History)
0 users

See Also:


Attachments
file.diff (1.47 KB, patch)
2012-10-06 19:10 UTC, Ruslan Makhmatkhanov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-10-06 19:10:10 UTC
importlib module is available in Python standard library since 2.7 (in 2.x branch) and 3.1 (in 3.x branch). Since we dodn't have 3.0 in ports, nor anything less 2.6, set USE_PYTHON to exactly 2.6

while here:
- trim Makefile header
- move pkg-plist contents to Makefile:PLIST_FILES
- correct WWW in pkg-descr

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-06 19:10:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-06 19:10:28 UTC
Maintainer of devel/py-importlib,

Please note that PR ports/172409 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172409

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-06 19:10:30 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Alexandros Kosiaris 2012-10-06 23:15:31 UTC
Looks just fine. Approved :-)

On Sat, Oct 6, 2012 at 9:10 PM, Edwin Groothuis <edwin@freebsd.org> wrote:
> Maintainer of devel/py-importlib,
>
> Please note that PR ports/172409 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172409
>
> --
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2012-10-07 01:18:10 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-10-07 06:22:14 UTC
Author: rm
Date: Sun Oct  7 05:21:59 2012
New Revision: 305431
URL: http://svn.freebsd.org/changeset/ports/305431

Log:
  importlib module is available in Python standard library since 2.7
  (in 2.x branch) and 3.1 (in 3.x branch). Since we don't have 3.0
  in ports, nor anything less 2.6, set USE_PYTHON to exactly 2.6
  
  while here:
  - trim Makefile header
  - move pkg-plist contents to Makefile:PLIST_FILES
  - correct WWW in pkg-descr
  
  PR:		172409
  Submitted by:	rm (myself)
  Approved by:	Alexandros Kosiaris <akosiaris at gmail dot com> (maintainer)

Deleted:
  head/devel/py-importlib/pkg-plist
Modified:
  head/devel/py-importlib/Makefile
  head/devel/py-importlib/pkg-descr

Modified: head/devel/py-importlib/Makefile
==============================================================================
--- head/devel/py-importlib/Makefile	Sun Oct  7 04:49:08 2012	(r305430)
+++ head/devel/py-importlib/Makefile	Sun Oct  7 05:21:59 2012	(r305431)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	py-importlib
-# Date created:		14 February 2012
-# Whom:			Alexandros Kosiaris <akosiaris+ports@gmail.com>
-#
+# Created by: Alexandros Kosiaris <akosiaris+ports@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	importlib
 PORTVERSION=	1.0.2
@@ -14,7 +10,12 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	akosiaris+ports@gmail.com
 COMMENT=	Backport of importlib.import_module() from Python 2.7
 
-USE_PYTHON=	2.3-2.6
+USE_PYTHON=	2.6
 USE_PYDISTUTILS=	yes
 
+PLIST_FILES=	%%PYTHON_SITELIBDIR%%/importlib/__init__.py \
+		%%PYTHON_SITELIBDIR%%/importlib/__init__.pyc \
+		%%PYTHON_SITELIBDIR%%/importlib/__init__.pyo
+PLIST_DIRS=	%%PYTHON_SITELIBDIR%%/importlib
+
 .include <bsd.port.mk>

Modified: head/devel/py-importlib/pkg-descr
==============================================================================
--- head/devel/py-importlib/pkg-descr	Sun Oct  7 04:49:08 2012	(r305430)
+++ head/devel/py-importlib/pkg-descr	Sun Oct  7 05:21:59 2012	(r305431)
@@ -7,4 +7,4 @@ trunk.
 
 For documentation, see the importlib docs for Python 2.7.
 
-WWW: http://pypi.python.org/pypi/importlib/1.0.1
+WWW: http://pypi.python.org/pypi/importlib
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 7 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-10-07 06:37:16 UTC
State Changed
From-To: open->closed

Committed, thank you!