Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2013 18:47:53 +0000 (UTC)
From:      Ruslan Mahmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r313002 - in head/news/hellanzb: . files
Message-ID:  <201302261847.r1QIlrrk020415@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Tue Feb 26 18:47:53 2013
New Revision: 313002
URL: http://svnweb.freebsd.org/changeset/ports/313002

Log:
  - add upstream patch to fix runtime with Twisted version > 11.1
  - bump PORTREVISION
  
  while here:
  - trim Makefile header
  - define PORTDOCS uncoditionally
  - convert to optionsng (DOCS case)
  
  PR:		171388
  Reported by:	W.Scholten <w-info@xs4all.nl>
  Approved by:	maintainer timeout (4 months)

Modified:
  head/news/hellanzb/Makefile
  head/news/hellanzb/files/patch-Hellanzb_HellaReactor.py

Modified: head/news/hellanzb/Makefile
==============================================================================
--- head/news/hellanzb/Makefile	Tue Feb 26 17:27:06 2013	(r313001)
+++ head/news/hellanzb/Makefile	Tue Feb 26 18:47:53 2013	(r313002)
@@ -1,14 +1,9 @@
-# New ports collection makefile for:	hellanzb
-# Date created:		Sat Sep 25 18:46:46 PDT 2004
-# Whom:			Philip Jenvey <pjenvey@groovie.org>
-#
+# Created by: Philip Jenvey <pjenvey@groovie.org>
 # $FreeBSD$
-# $Id: Makefile 828 2006-09-10 01:20:41Z pjenvey $
-#
 
 PORTNAME=	hellanzb
 PORTVERSION=	0.13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	news
 MASTER_SITES=	http://www.hellanzb.com/distfiles/
 
@@ -26,8 +21,9 @@ RUN_DEPENDS=	par2:${PORTSDIR}/archivers/
 USE_PYTHON=	-2.7
 USE_PYDISTUTILS=yes
 USE_TWISTED_RUN=	web
+PORTDOCS=	CHANGELOG CREDITS README
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 # more fully-featured rar needs i386
 .if ${ARCH} == "i386"
@@ -36,21 +32,17 @@ RUN_DEPENDS+=	rar:${PORTSDIR}/archivers/
 RUN_DEPENDS+=	unrar:${PORTSDIR}/archivers/unrar
 .endif
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	CHANGELOG CREDITS README
-.endif
-
 post-install:
 	@if [ ! -f ${PREFIX}/etc/hellanzb.conf ]; then \
 		${ECHO} "Installing default configuration file."; \
 		${INSTALL_DATA} ${WRKSRC}/etc/hellanzb.conf.sample ${PREFIX}/etc/hellanzb.conf; \
 	fi
 
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for doc in ${PORTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/news/hellanzb/files/patch-Hellanzb_HellaReactor.py
==============================================================================
--- head/news/hellanzb/files/patch-Hellanzb_HellaReactor.py	Tue Feb 26 17:27:06 2013	(r313001)
+++ head/news/hellanzb/files/patch-Hellanzb_HellaReactor.py	Tue Feb 26 18:47:53 2013	(r313002)
@@ -1,11 +1,15 @@
---- Hellanzb/HellaReactor.py.orig	2007-03-27 08:20:43.000000000 +0400
-+++ Hellanzb/HellaReactor.py	2012-01-21 20:33:18.000000000 +0400
-@@ -9,7 +9,7 @@
+--- ./Hellanzb/HellaReactor.py.orig	2007-03-27 08:20:43.000000000 +0400
++++ ./Hellanzb/HellaReactor.py	2013-02-26 22:29:07.000000000 +0400
+@@ -9,7 +9,11 @@
  import Hellanzb, sys, time
  
  import twisted.copyright
 -if twisted.copyright.version >= '2.0.0':
-+if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
++if twisted.copyright.version >= '11.1.0':
++    from twisted.internet.selectreactor import SelectReactor
++    from twisted.internet.posixbase import _NO_FILENO
++    from twisted.internet.posixbase import _NO_FILEDESC
++elif twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
      from twisted.internet.selectreactor import SelectReactor
      from twisted.internet.selectreactor import _NO_FILENO
      from twisted.internet.selectreactor import _NO_FILEDESC



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