Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 02:57:21 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/188865: devel/drpython: Update to version 3.11.4
Message-ID:  <20140422025721.1996765ad51b9d83019f5695@yahoo.com>
Resent-Message-ID: <201404211810.s3LIA4YE023440@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188865
>Category:       ports
>Synopsis:       devel/drpython: Update to version 3.11.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 21 18:10:03 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p8 i386
>Organization:
>Environment:
>Description:
- Update to version 3.11.4

New file:
files/patch-drToolBarDialog.py

Remove file:
files/patch-setup.py

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/drpython/Makefile devel/drpython/Makefile
--- /usr/ports/devel/drpython/Makefile	2014-03-11 06:37:55.000000000 +0900
+++ devel/drpython/Makefile	2014-04-22 00:00:00.000000000 +0900
@@ -2,8 +2,7 @@
 # $FreeBSD: head/devel/drpython/Makefile 347809 2014-03-10 20:55:20Z gerald $
 
 PORTNAME=	drpython
-PORTVERSION=	3.11.3
-PORTREVISION=	4
+PORTVERSION=	3.11.4
 CATEGORIES=	devel python
 MASTER_SITES=	SF/${PORTNAME}/DrPython%20%283.x%29/${PORTVERSION}
 PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}
@@ -14,26 +13,43 @@
 
 LICENSE=	GPLv2
 
-WRKSRC=		${WRKDIR}/DrPython
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
+RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils
+
+NO_ARCH=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
 USES=		zip
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_AUTOPLIST=	yes
 PYDISTUTILS_PKGNAME=	DrPython
-USE_WX=		2.6+
+USE_WX=		2.8
 WX_COMPS=	python:lib
 
-DESKTOP_ENTRIES=	"DrPython" "Python editor and IDE" \
-			"${PYTHONPREFIX_SITELIBDIR}/drpython/bitmaps/drpython.png" \
-			"drpython" "Development;IDE;" "false"
-
 PLIST_FILES=	bin/drpython
 
-NO_STAGE=	yes
-post-install:
+DESKTOP_ENTRIES="DrPython" "Python editor and IDE" \
+		"${PYTHONPREFIX_SITELIBDIR}/drpython/bitmaps/drpython.png" \
+		"drpython" "Development;IDE;" ""
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/postinst.py/d' ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e \
+		's|firefox|xdg-open|' ${WRKSRC}/drPreferences.py
+
+pre-build:
+	@(cd ${WRKSRC}/docsrc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} html)
+	@(cd ${WRKSRC}/docsrc/_build/html && ${CP} -f *.html *.js \
+		${WRKSRC}/documentation)
+
+post-build:
 	@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/drpython.sh
 	@${ECHO_CMD} 'exec ${PYTHON_CMD} -m drpython.drpython' >> ${WRKDIR}/drpython.sh
-	${INSTALL_SCRIPT} ${WRKDIR}/drpython.sh ${PREFIX}/bin/drpython
+
+post-install:
+	(cd ${WRKDIR} && ${INSTALL_SCRIPT} drpython.sh \
+		${STAGEDIR}${PREFIX}/bin/drpython)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/drpython/distinfo devel/drpython/distinfo
--- /usr/ports/devel/drpython/distinfo	2013-11-06 21:49:17.000000000 +0900
+++ devel/drpython/distinfo	2014-04-22 00:00:00.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (DrPython_3.11.3.zip) = 62672a0a25a60f8efa976b2329108e129c7b1977b1e4975b46607dd61cf80f48
-SIZE (DrPython_3.11.3.zip) = 636799
+SHA256 (DrPython_3.11.4.zip) = 37a2e4873fb6accd1145f89518db101458c2f43fbc3ea7cf3e2de446bf353f42
+SIZE (DrPython_3.11.4.zip) = 824982
diff -urN /usr/ports/devel/drpython/files/patch-drToolBarDialog.py devel/drpython/files/patch-drToolBarDialog.py
--- /usr/ports/devel/drpython/files/patch-drToolBarDialog.py	1970-01-01 09:00:00.000000000 +0900
+++ devel/drpython/files/patch-drToolBarDialog.py	2014-04-22 00:00:00.000000000 +0900
@@ -0,0 +1,11 @@
+--- drToolBarDialog.py.orig
++++ drToolBarDialog.py
+@@ -36,7 +36,7 @@
+         text = f.read()
+         f.close()
+     except:
+-        drScrolledMessageDialog.ShowMessage(frame, "File error with: '" + filename + "".", "ERROR")
++        drScrolledMessageDialog.ShowMessage(frame, "File error with: '" + filename + "'.", "ERROR")
+         return []
+ 
+         # modified 22/10/2006 Jean-Pierre MANDON
diff -urN /usr/ports/devel/drpython/files/patch-setup.py devel/drpython/files/patch-setup.py
--- /usr/ports/devel/drpython/files/patch-setup.py	2014-01-23 03:40:00.000000000 +0900
+++ devel/drpython/files/patch-setup.py	1970-01-01 09:00:00.000000000 +0900
@@ -1,10 +0,0 @@
---- setup.py.orig	2008-02-25 16:48:04.000000000 +0900
-+++ setup.py	2008-06-13 02:15:11.000000000 +0900
-@@ -93,6 +93,5 @@
-     license = 'GPL',
-     packages=[ MY_NAME ],
-     package_dir={ MY_NAME : '.' },
--    package_data={ MY_NAME : DATA },
--    scripts=['postinst.py'],
-+    package_data={ MY_NAME : DATA }
- )
diff -urN /usr/ports/devel/drpython/pkg-descr devel/drpython/pkg-descr
--- /usr/ports/devel/drpython/pkg-descr	2014-01-23 03:40:00.000000000 +0900
+++ devel/drpython/pkg-descr	2014-04-22 00:00:00.000000000 +0900
@@ -1,5 +1,5 @@
-DrPython is a highly customizable, extensible editor/environment for developing
-programs written in the Python programming Language.  It is implemented in
-wxPython.
+DrPython is a highly customizable, extensible editor/environment for
+developing programs written in the Python programming Language. It is
+implemented in wxPython.
 
 WWW: http://drpython.sourceforge.net/
>Release-Note:
>Audit-Trail:
>Unformatted:



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