Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 07:50:06 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343433 - in head/www/trac-OhlohWidgetsMacro: . files
Message-ID:  <201402090750.s197o6xv083336@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Sun Feb  9 07:50:06 2014
New Revision: 343433
URL: http://svnweb.freebsd.org/changeset/ports/343433
QAT: https://qat.redports.org/buildarchive/r343433/

Log:
  - add upstream patch to fix runtime, using correct url scheme
  - adopt staging and use auto-generated packing list
  - bump PORTREVISION
  
  PR:		183853
  Submitted by:	Douglas William Thrift <douglas@douglasthrift.net> (maintainer)

Added:
  head/www/trac-OhlohWidgetsMacro/files/
  head/www/trac-OhlohWidgetsMacro/files/patch-ohloh_widgets__macro.py   (contents, props changed)
Deleted:
  head/www/trac-OhlohWidgetsMacro/pkg-plist
Modified:
  head/www/trac-OhlohWidgetsMacro/Makefile

Modified: head/www/trac-OhlohWidgetsMacro/Makefile
==============================================================================
--- head/www/trac-OhlohWidgetsMacro/Makefile	Sun Feb  9 06:05:30 2014	(r343432)
+++ head/www/trac-OhlohWidgetsMacro/Makefile	Sun Feb  9 07:50:06 2014	(r343433)
@@ -1,8 +1,9 @@
-# Created by: Douglas Thrift
+# Created by: Douglas Thrift <douglas@douglasthrift.net>
 # $FreeBSD$
 
 PORTNAME=	OhlohWidgetsMacro
 PORTVERSION=	0.2
+PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	trac-
@@ -10,12 +11,13 @@ PKGNAMEPREFIX=	trac-
 MAINTAINER=	douglas@douglasthrift.net
 COMMENT=	Trac macro to embed Ohloh widgets
 
+LICENSE=	MIT
+
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycerberus>=0.3:${PORTSDIR}/devel/py-pycerberus \
 		tracd:${PORTSDIR}/www/trac
 
-LICENSE=	MIT
-
-USE_PYTHON=	yes
-USE_PYDISTUTILS=	easy_install
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
 .include <bsd.port.mk>

Added: head/www/trac-OhlohWidgetsMacro/files/patch-ohloh_widgets__macro.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/trac-OhlohWidgetsMacro/files/patch-ohloh_widgets__macro.py	Sun Feb  9 07:50:06 2014	(r343433)
@@ -0,0 +1,20 @@
+--- ./ohloh_widgets/macro.py.orig	2013-06-17 12:52:47.000000000 -0700
++++ ./ohloh_widgets/macro.py	2013-06-17 12:53:17.000000000 -0700
+@@ -46,7 +46,7 @@
+        ![[OhlohWidget(project_id, widget_name)]]
+     
+     The macro gets two parameters which you can get from Ohloh's widget page
+-    for your project (!http://www.ohloh.net/p/<project name>/widgets) when you
++    for your project (!https://www.ohloh.net/p/<project name>/widgets) when you
+     look at the embeddable HTML snippet:
+     
+      * project_id -- a 6 digit number which identifies your project
+@@ -70,7 +70,7 @@
+     
+     def url(self, parameters):
+         query_string = ''
+-        url_template = 'http://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
++        url_template = 'https://www.ohloh.net/p/%(project_id)d/widgets/%(widget_name)s.js'
+         widget_name = parameters.widget_name
+         if '?' in widget_name:
+             parameters['widget_name'], query_parameters = widget_name.split('?', 1)



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