blob: a68aa907873e55d8057118d4460cb8378d5b7167 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# New ports collection makefile for: leo
# Date created: 2002/11/17
# Whom: Alan Eldridge <ports@geeksrus.net>
#
# $FreeBSD$
#
PORTNAME= leo
PORTVERSION= 4.0.b1
CATEGORIES= editors python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g}
DIST_SUBDIR= leo
MAINTAINER= sergei@kolobov.com
COMMENT= Advanced outline editor for programmers
RUN_DEPENDS= ${TKINTER}:${PORTSDIR}/x11-toolkits/py-tkinter
USE_ZIP= yes
USE_PYTHON= yes
TKINTER= ${PYTHON_SITELIBDIR}/_tkinter.so
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.b/-b/}
LEO_DIR= ${PYTHONPREFIX_SITELIBDIR}/leo
DOCS= doc/LICENSE.TXT doc/README.TXT
do-build:
${SED} -e 's|@PKGDATADIR@|${LEO_DIR}/src|' ${FILESDIR}/leo.in \
> ${WRKDIR}/leo
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/leo ${PREFIX}/bin/leo
@${MKDIR} ${LEO_DIR}
.for dir in Icons config plugins src
@${MKDIR} ${LEO_DIR}/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${LEO_DIR}/${dir}
.endfor
@${RM} -f ${LEO_DIR}/Icons/*.bmp ${LEO_DIR}/Icons/*.ico
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
@${MKDIR} ${LEO_DIR}/doc
${INSTALL_DATA} ${WRKSRC}/doc/LeoDocs.leo ${LEO_DIR}/doc
.endif
.include <bsd.port.mk>
|