From nobody@FreeBSD.org  Sun Mar 15 13:31:58 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5294D106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Mar 2009 13:31:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0ACD88FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Mar 2009 13:31:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2FDVvcS002958
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Mar 2009 13:31:57 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2FDVvQ4002957;
	Sun, 15 Mar 2009 13:31:57 GMT
	(envelope-from nobody)
Message-Id: <200903151331.n2FDVvQ4002957@www.freebsd.org>
Date: Sun, 15 Mar 2009 13:31:57 GMT
From: Attila Nagy <bra@fsn.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: devel/pysvn 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132658
>Category:       ports
>Synopsis:       Update port: devel/pysvn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 15 13:40:03 UTC 2009
>Closed-Date:    Tue Apr 21 13:29:49 UTC 2009
>Last-Modified:  Tue Apr 21 13:29:49 UTC 2009
>Originator:     Attila Nagy
>Release:        
>Organization:
>Environment:
>Description:
- update pysvn to 1.6.3
- run setup.py backport if running with python 2.5 or earlier
- switch to in-source pycxx instead of depending on the port (which sometimes is not compatible with pysvn)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN pysvn/Makefile pysvn.new/Makefile
--- pysvn/Makefile	2009-02-17 23:19:25.000000000 +0100
+++ pysvn.new/Makefile	2009-03-15 14:24:58.000000000 +0100
@@ -6,26 +6,23 @@
 #
 
 PORTNAME=	pysvn
-PORTVERSION=	1.6.2
+PORTVERSION=	1.6.3
 CATEGORIES=	devel
 MASTER_SITES=	http://pysvn.barrys-emacs.org/source_kits/
 
 MAINTAINER=	bra@fsn.hu
 COMMENT=	Python binding for Subversion
 
-BUILD_DEPENDS=	py${PYTHON_SUFFIX}-cxx>=5.4.2:${PORTSDIR}/devel/py-cxx
 LIB_DEPENDS=	svn_client-1:${PORTSDIR}/devel/subversion \
 		neon.28:${PORTSDIR}/www/neon28
 
-BROKEN=		does not compile
-
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
 PYDISTUTILS_NOEGGINFO=yes
 PYDISTUTILS_CONFIGURE_TARGET=configure
-PYDISTUTILS_CONFIGUREARGS=--pycxx-dir=${PYTHON_INCLUDEDIR} \
-		--pycxx-src-dir=${LOCALBASE}/share/${PYTHON_VERSION}/CXX \
-		--apr-inc-dir=${LOCALBASE}/include/apr-1
+PYDISTUTILS_CONFIGUREARGS=--apr-inc-dir=${LOCALBASE}/include/apr-1
+.include <bsd.port.pre.mk>
+PYVERSION=     ${PYTHON_VERSION:S/^python//}
 
 PLIST_SUB=	PYTHONVER=${PYTHON_VERSION:S/./_/:S/python//}
 PLIST_FILES=	%%PYTHON_SITELIBDIR%%/${PORTNAME}/__init__.py \
@@ -34,8 +31,13 @@
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/Source
 
+.if defined(PYTHON_VERSION) && ${PYVERSION:S/.//} < 26
+pre-configure:
+	@cd ${WRKSRC} && ${PYTHON_CMD} setup.py backport
+.endif
+
 do-build:
-	cd ${WRKSRC} && ${MAKE}
+	@cd ${WRKSRC} && ${MAKE}
 
 pre-install:
 	${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
@@ -47,4 +49,4 @@
 		${WRKSRC}/${PORTNAME}/*.so \
 		${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN pysvn/distinfo pysvn.new/distinfo
--- pysvn/distinfo	2008-11-17 19:25:33.000000000 +0100
+++ pysvn.new/distinfo	2009-03-15 12:42:23.000000000 +0100
@@ -1,3 +1,3 @@
-MD5 (pysvn-1.6.2.tar.gz) = 58bb216b815f3c05ed77f70708515355
-SHA256 (pysvn-1.6.2.tar.gz) = 140c28fe9171cb231fb07c78066ccc74e316e20a63e3f1d5a7cdd10da3b7847e
-SIZE (pysvn-1.6.2.tar.gz) = 220638
+MD5 (pysvn-1.6.3.tar.gz) = 41d312ff09b05f7b53d3641a82c64c93
+SHA256 (pysvn-1.6.3.tar.gz) = 85f514b98a5bc9e90c45e8d464940da20be3b2a43b7503fe3337863481918708
+SIZE (pysvn-1.6.3.tar.gz) = 310832
diff -ruN pysvn/files/patch-setup_configure.py pysvn.new/files/patch-setup_configure.py
--- pysvn/files/patch-setup_configure.py	1970-01-01 01:00:00.000000000 +0100
+++ pysvn.new/files/patch-setup_configure.py	2009-03-15 13:01:07.000000000 +0100
@@ -0,0 +1,10 @@
+--- setup_configure.py.orig	2009-03-15 12:58:45.000000000 +0100
++++ setup_configure.py	2009-03-15 12:59:08.000000000 +0100
+@@ -147,6 +147,7 @@
+ 
+         # add source dir
+         include_dir_list.append( '.' )
++        include_dir_list.reverse()
+ 
+         # get the python CFLAGS
+         py_cflags_python_list = distutils.sysconfig.get_config_var('CFLAGS').split()


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun Mar 15 17:08:03 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132658 
State-Changed-From-To: open->feedback 
State-Changed-By: miwi 
State-Changed-When: Sun Mar 15 19:46:40 UTC 2009 
State-Changed-Why:  
Hi, Patch reject here,could you please check, 

Hmm...  Looks like a unified diff to me...  The text leading up to this 
was: -------------------------- | | |Patch attached with submission 
follows: | |diff -ruN pysvn/Makefile pysvn.new/Makefile |--- 
pysvn/Makefile     2009-02-17 23:19:25.000000000 +0100 |+++ 
pysvn.new/Makefile 2009-03-15 14:24:58.000000000 +0100 
-------------------------- File to patch: Makefile Patching file 
Makefile using Plan A...  Hunk #1 failed at 6.  Hunk #2 succeeded at 30 
with fuzz 1 (offset -1 lines).  Hunk #3 succeeded at 48 with fuzz 2 
(offset -1 lines).  patch: **** misordered hunks! output would be 
garbled 

Thanks 


http://www.freebsd.org/cgi/query-pr.cgi?pr=132658 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Tue Apr 21 13:29:47 UTC 2009 
State-Changed-Why:  
newer version in 133893. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132658 
>Unformatted:
