aboutsummaryrefslogtreecommitdiffstats
path: root/editors/leo
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2015-11-19 02:24:18 +0800
committerrm <rm@FreeBSD.org>2015-11-19 02:24:18 +0800
commit10ee8edaff964628309e2b9357b64d94d6381080 (patch)
tree6ba6359792e6e4b2f7fead53c4ca690c7dcabc3d /editors/leo
parentc486ebbd72498f42da66fef3cad502c357e677fc (diff)
downloadfreebsd-ports-gnome-10ee8edaff964628309e2b9357b64d94d6381080.tar.gz
freebsd-ports-gnome-10ee8edaff964628309e2b9357b64d94d6381080.tar.zst
freebsd-ports-gnome-10ee8edaff964628309e2b9357b64d94d6381080.zip
editors/leo: fix runtime
- fix runtime - limit to python 2.x, because port's dependency textproc/silvercity fails to build with python3 - bump PORTREVISION because of package change PR: 200920 Submitted by: Michael Krauss <hippodriver@codunix.org>
Diffstat (limited to 'editors/leo')
-rw-r--r--editors/leo/Makefile8
-rw-r--r--editors/leo/pkg-descr2
2 files changed, 7 insertions, 3 deletions
diff --git a/editors/leo/Makefile b/editors/leo/Makefile
index a9b84bc0c3d7..7141d2130c8e 100644
--- a/editors/leo/Makefile
+++ b/editors/leo/Makefile
@@ -3,7 +3,7 @@
PORTNAME= leo
PORTVERSION= 5.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= editors python
MASTER_SITES= SF/${PORTNAME}/Leo/${PORTVERSION}-final
DISTNAME= Leo-${PORTVERSION}-final
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
NO_ARCH= yes
-USES= python shebangfix zip
+USES= python:2 shebangfix zip
SHEBANG_FILES= leo/doc/html/fixup.pl leo/external/saveleo
USE_PYTHON= autoplist distutils
@@ -35,4 +35,8 @@ OPTIONS_DEFINE= DOCS PYENCHANT
PYENCHANT_DESC= Spell checking support via PyEnchant
PYENCHANT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}enchant>0:${PORTSDIR}/textproc/py-enchant
+post-install:
+ @${REINPLACE_CMD} -e 's,===,==,' ${STAGEDIR}${PREFIX}/bin/leo \
+ ${STAGEDIR}${PREFIX}/bin/leoc
+
.include <bsd.port.mk>
diff --git a/editors/leo/pkg-descr b/editors/leo/pkg-descr
index d8408cc777c0..97ac1443b817 100644
--- a/editors/leo/pkg-descr
+++ b/editors/leo/pkg-descr
@@ -17,6 +17,6 @@
* Leo is portable. Leo.py is 100% pure Python and will run on any
platform supporting Python and PyQt, including Windows, Linux and
MacOS X.
-* Leo is Open Software, distributed under the Python License.
+* Leo is Open Software, distributed under the Python License.
WWW: http://leoeditor.com/