2002-11-17 21:19:57 +00:00
|
|
|
# New ports collection makefile for: leo
|
|
|
|
# Date created: 2002/11/17
|
|
|
|
# Whom: Alan Eldridge <ports@geeksrus.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= leo
|
2011-03-27 10:35:10 +00:00
|
|
|
PORTVERSION= 4.8
|
2003-07-08 12:01:24 +00:00
|
|
|
CATEGORIES= editors python
|
2009-08-22 00:20:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Leo/${PORTVERSION}%20final
|
2011-03-27 10:35:10 +00:00
|
|
|
DISTNAME= Leo-${PORTVERSION}-final
|
2003-07-08 12:01:24 +00:00
|
|
|
DIST_SUBDIR= leo
|
2002-11-17 21:19:57 +00:00
|
|
|
|
2008-07-27 04:30:53 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-07-08 12:01:24 +00:00
|
|
|
COMMENT= Advanced outline editor for programmers
|
2002-11-17 21:19:57 +00:00
|
|
|
|
2008-08-02 22:34:45 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
${PYTHON_SITELIBDIR}/Gato/__init__.py:${PORTSDIR}/math/py-gato \
|
|
|
|
${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils \
|
|
|
|
${PYTHON_SITELIBDIR}/SilverCity/__init__.py:${PORTSDIR}/textproc/silvercity \
|
|
|
|
${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/py-Pmw \
|
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
2002-11-17 21:19:57 +00:00
|
|
|
|
2011-03-27 10:35:10 +00:00
|
|
|
OPTIONS= PYQT4 "Qt4 look and feel" off
|
|
|
|
|
2002-11-17 21:19:57 +00:00
|
|
|
USE_ZIP= yes
|
2011-03-27 10:35:10 +00:00
|
|
|
USE_PYTHON= 2.6+
|
2002-11-18 02:55:54 +00:00
|
|
|
|
2003-07-08 12:01:24 +00:00
|
|
|
LEO_DIR= ${PYTHONPREFIX_SITELIBDIR}/leo
|
2002-11-17 21:19:57 +00:00
|
|
|
|
2011-03-27 10:35:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PYQT4)
|
|
|
|
RUN_DEPENDS+= py*-qt4-gui>=0:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@-${FIND} ${WRKSRC}/leo -type d -empty -delete
|
|
|
|
|
2003-07-08 12:01:24 +00:00
|
|
|
do-build:
|
2011-03-27 10:35:10 +00:00
|
|
|
${SED} -e 's|@PKGDATADIR@/leo.py|${LEO_DIR}/core/runLeo.py|' \
|
|
|
|
${FILESDIR}/leo.in > ${WRKDIR}/leo
|
2002-11-17 21:19:57 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-07-08 12:01:24 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/leo ${PREFIX}/bin/leo
|
2011-03-27 10:35:10 +00:00
|
|
|
@${MKDIR} ${LEO_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/__init__.py ${LEO_DIR}
|
2008-08-02 22:34:45 +00: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 10:35:10 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/Icons/*.png ${LEO_DIR}/Icons
|
2008-08-02 22:34:45 +00:00
|
|
|
@${MKDIR} ${LEO_DIR}/extensions
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/leo/extensions/*.py ${LEO_DIR}/extensions
|
2011-03-27 10:35:10 +00:00
|
|
|
.for dir in config core external modes plugins scripts test www
|
|
|
|
@(cd ${WRKSRC}/leo; ${COPYTREE_SHARE} ${dir} ${LEO_DIR})
|
|
|
|
.endfor
|
2002-11-18 02:55:54 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2011-03-27 10:35:10 +00:00
|
|
|
@(cd ${WRKSRC}/leo; ${COPYTREE_SHARE} doc ${LEO_DIR})
|
2003-07-08 12:01:24 +00:00
|
|
|
.endif
|
2002-11-17 21:19:57 +00:00
|
|
|
|
2011-03-27 10:35:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|