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>
This commit is contained in:
Ruslan Makhmatkhanov 2015-11-18 18:24:18 +00:00
parent e3461f3178
commit baa06e600b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401886
2 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -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/