Bug 173173 - www/trac-keywords: do not directly depend on setuptools
Summary: www/trac-keywords: do not directly depend on setuptools
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: Eygene Ryabinkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-28 20:30 UTC by Ruslan Makhmatkhanov
Modified: 2012-12-26 10:06 UTC (History)
0 users

See Also:


Attachments
file.diff (1.82 KB, patch)
2012-10-28 20:30 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-28 20:30:01 UTC
- do not directly depend on setuptools, use USE_DISTUTILS instead
- bump PORTREVISION because of dependency change
- trim Makefile header
- remove indefinite article in COMMENT
- limit python version to 2.x only
- remove permissions fixing part - setuptools will take care of it

buildlog:
http://people.freebsd.org/~rm/trac-keywords-0.2_1.log

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-28 20:30:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rea

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-12-26 09:40:35 UTC
Author: rm
Date: Wed Dec 26 09:40:28 2012
New Revision: 309507
URL: http://svnweb.freebsd.org/changeset/ports/309507

Log:
  - do not directly depend on setuptools, use USE_DISTUTILS instead
  - bump PORTREVISION because of dependency change
  - trim Makefile header
  - remove indefinite article in COMMENT
  - limit python version to 2.x only
  - remove permissions fixing part - setuptools will take care of it
  
  PR:		173173
  Submitted by:	rm (myself)
  Approved by:	maintainer timeout (~2 months)

Modified:
  head/www/trac-keywords/Makefile

Modified: head/www/trac-keywords/Makefile
==============================================================================
--- head/www/trac-keywords/Makefile	Wed Dec 26 09:38:23 2012	(r309506)
+++ head/www/trac-keywords/Makefile	Wed Dec 26 09:40:28 2012	(r309507)
@@ -1,40 +1,28 @@
-# New ports collection makefile for: trac-keywords
-# Date created:                      December 17, 2009
-# Whom:                              Eygene Ryabinkin <rea-fbsd@codelabs.ru>
-#
+# Created by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	keywords
 PORTVERSION=	0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	http://dist.codelabs.ru/fbsd/
 PKGNAMEPREFIX=	trac-
 DISTNAME=	trackeywordsplugin-r${REL}
 
 MAINTAINER=	rea@FreeBSD.org
-COMMENT=	A plugin for using pre-configured keywords
+COMMENT=	Plugin for using pre-configured keywords
 
-BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
 RUN_DEPENDS+=	trac>=0.11:${PORTSDIR}/www/trac
 
-USE_PYTHON=	2.5+
+USE_PYTHON=	-2.7
 USE_ZIP=	yes
-NO_BUILD=	yes
-USE_PYDISTUTILS=	yes
+USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	TracKeywordsPlugin
-PYDISTUTILS_NOEGGINFO=	yes
-WRKSRC=		${WRKDIR}/trackeywordsplugin/0.11
-REL=		7273
-PLIST_FILES=	${PYTHON_SITELIBDIR:S;${LOCALBASE}/;;}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
+WRKSRC=			${WRKDIR}/trackeywordsplugin/0.11
+REL=			7273
+PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 
 post-extract:
-# We must fix file permissions -- ZIP file have 0000 for every file.
-# Directory permissions are fine (they aren't stored inside ZIP
-# file), but we set them too -- just in case.
-	@${FIND} ${WRKSRC} -type f | ${XARGS} chmod 644
-	@${FIND} ${WRKSRC} -type d | ${XARGS} chmod 755
 # Fix misplaced Genshi template: https://trac-hacks.org/ticket/6104
 	@${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/templates/keywords.html ${WRKSRC}/trackeywords/templates/
 # Seems like web_ui.py was misplaced too.
_______________________________________________
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 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-12-26 10:06:11 UTC
State Changed
From-To: open->closed

Committed, thank you!