2002-11-17 22:19:57 +01:00
|
|
|
# New ports collection makefile for: leo
|
|
|
|
# Date created: 2002/11/17
|
|
|
|
# Whom: Alan Eldridge <ports@geeksrus.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= leo
|
2012-05-21 05:10:24 +02:00
|
|
|
PORTVERSION= 4.10
|
2012-06-05 22:54:01 +02:00
|
|
|
PORTREVISION= 3
|
2003-07-08 14:01:24 +02:00
|
|
|
CATEGORIES= editors python
|
2012-05-21 05:10:24 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Leo/${PORTVERSION}%20final
|
|
|
|
DISTNAME= Leo-${PORTVERSION}-final
|
2003-07-08 14:01:24 +02:00
|
|
|
DIST_SUBDIR= leo
|
2002-11-17 22:19:57 +01:00
|
|
|
|
2008-07-27 06:30:53 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-07-08 14:01:24 +02:00
|
|
|
COMMENT= Advanced outline editor for programmers
|
2002-11-17 22:19:57 +01:00
|
|
|
|
2011-11-27 11:00:11 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
2002-11-17 22:19:57 +01:00
|
|
|
|
2011-11-27 11:00:11 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 \
|
2012-05-21 05:10:24 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}qt4-svg>=0:${PORTSDIR}/graphics/py-qt4-svg \
|
2011-11-27 11:00:11 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}docutils>=0:${PORTSDIR}/textproc/py-docutils \
|
|
|
|
silvercity>=0:${PORTSDIR}/textproc/silvercity \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}Pmw>=0:${PORTSDIR}/x11-toolkits/py-Pmw \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
|
|
|
2012-06-05 22:54:01 +02:00
|
|
|
OPTIONS_DEFINE= PYENCHANT DOCS
|
|
|
|
PYENCHANT_DESC= Enable PyEnchant support
|
2011-11-27 11:00:11 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Leo-${PORTVERSION}-final
|
2011-03-27 12:35:10 +02:00
|
|
|
|
2002-11-17 22:19:57 +01:00
|
|
|
USE_ZIP= yes
|
2011-03-27 12:35:10 +02:00
|
|
|
USE_PYTHON= 2.6+
|
2002-11-18 03:55:54 +01:00
|
|
|
|
2003-07-08 14:01:24 +02:00
|
|
|
LEO_DIR= ${PYTHONPREFIX_SITELIBDIR}/leo
|
2002-11-17 22:19:57 +01:00
|
|
|
|
2011-11-27 11:00:11 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2011-03-27 12:35:10 +02:00
|
|
|
|
2012-06-05 22:54:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYENCHANT}
|
2011-11-27 11:00:11 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enchant>=0:${PORTSDIR}/textproc/py-enchant
|
2011-03-27 12:35:10 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@-${FIND} ${WRKSRC}/leo -type d -empty -delete
|
|
|
|
|
2003-07-08 14:01:24 +02:00
|
|
|
do-build:
|
2011-03-27 12:35:10 +02:00
|
|
|
${SED} -e 's|@PKGDATADIR@/leo.py|${LEO_DIR}/core/runLeo.py|' \
|
|
|
|
${FILESDIR}/leo.in > ${WRKDIR}/leo
|
2002-11-17 22:19:57 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-07-08 14:01:24 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/leo ${PREFIX}/bin/leo
|
2011-03-27 12:35:10 +02:00
|
|
|
@${MKDIR} ${LEO_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/__init__.py ${LEO_DIR}
|
2008-08-03 00:34:45 +02:00
|
|
|
@${MKDIR} ${LEO_DIR}/Icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/Icons/*.GIF ${LEO_DIR}/Icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/Icons/*.gif ${LEO_DIR}/Icons
|
2011-03-27 12:35:10 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/Icons/*.png ${LEO_DIR}/Icons
|
2012-06-05 22:54:01 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/Icons/*.svg ${LEO_DIR}/Icons
|
|
|
|
@(cd ${WRKSRC}/leo/Icons && ${COPYTREE_SHARE} cleo ${LEO_DIR}/Icons)
|
2011-11-27 11:00:11 +01:00
|
|
|
.for dir in config core external extensions modes plugins scripts test www
|
2011-03-27 12:35:10 +02:00
|
|
|
@(cd ${WRKSRC}/leo; ${COPYTREE_SHARE} ${dir} ${LEO_DIR})
|
|
|
|
.endfor
|
2012-06-05 22:54:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2011-03-27 12:35:10 +02:00
|
|
|
@(cd ${WRKSRC}/leo; ${COPYTREE_SHARE} doc ${LEO_DIR})
|
2003-07-08 14:01:24 +02:00
|
|
|
.endif
|
2002-11-17 22:19:57 +01:00
|
|
|
|
2011-11-27 11:00:11 +01:00
|
|
|
.include <bsd.port.mk>
|