summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-04-26 02:33:55 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-04-26 02:33:55 +0000
commit15022b9d602ac33f8f36f5ce34756afdb00051e1 (patch)
treea799976ec7f4c786b07f89c248050b7ac6ee1621
parent- Update to 0.9.13 (diff)
- Update to version 3.11.4
PR: 188865 Submitted by: Ports Fury
-rw-r--r--devel/drpython/Makefile38
-rw-r--r--devel/drpython/distinfo4
-rw-r--r--devel/drpython/files/patch-drToolBarDialog.py11
-rw-r--r--devel/drpython/files/patch-setup.py10
-rw-r--r--devel/drpython/pkg-descr6
5 files changed, 43 insertions, 26 deletions
diff --git a/devel/drpython/Makefile b/devel/drpython/Makefile
index cd72c8bef7a8..b94dde8c247b 100644
--- a/devel/drpython/Makefile
+++ b/devel/drpython/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
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 @@ COMMENT= Highly customizable cross-platform ide to aid programming in Python
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 --git a/devel/drpython/distinfo b/devel/drpython/distinfo
index fb803c0cc68b..f4b3a0325a2c 100644
--- a/devel/drpython/distinfo
+++ b/devel/drpython/distinfo
@@ -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 --git a/devel/drpython/files/patch-drToolBarDialog.py b/devel/drpython/files/patch-drToolBarDialog.py
new file mode 100644
index 000000000000..5289021c5799
--- /dev/null
+++ b/devel/drpython/files/patch-drToolBarDialog.py
@@ -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 --git a/devel/drpython/files/patch-setup.py b/devel/drpython/files/patch-setup.py
deleted file mode 100644
index 3a8be6dca12e..000000000000
--- a/devel/drpython/files/patch-setup.py
+++ /dev/null
@@ -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 --git a/devel/drpython/pkg-descr b/devel/drpython/pkg-descr
index 215a2406cf1b..97c03d205199 100644
--- a/devel/drpython/pkg-descr
+++ b/devel/drpython/pkg-descr
@@ -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/