aboutsummaryrefslogtreecommitdiff
path: root/editors/leo/Makefile
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-11-17 21:19:57 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-11-17 21:19:57 +0000
commit795b816cf1ea3c6752772a34603487af76f3d9a1 (patch)
tree9c17710923fb182f26310a2042a7386dd3a67538 /editors/leo/Makefile
parent8df466abc657aeb7da0568846b648a4ee5844075 (diff)
Notes
Diffstat (limited to 'editors/leo/Makefile')
-rw-r--r--editors/leo/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/editors/leo/Makefile b/editors/leo/Makefile
new file mode 100644
index 000000000000..5eb29e3117ea
--- /dev/null
+++ b/editors/leo/Makefile
@@ -0,0 +1,53 @@
+# ex:ts=8
+#
+# New ports collection makefile for: leo
+# Date created: 2002/11/17
+# Whom: Alan Eldridge <ports@geeksrus.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leo
+PORTVERSION= 3.8
+PORTEPOCH= 0
+CATEGORIES= editors
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= alane@freebsd.org
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+
+USE_ZIP= yes
+USE_PYTHON= yes
+NO_BUILD= yes
+
+.include <bsd.port.pre.mk>
+
+PLIST=${WRKDIR}/plist
+INSTALL_DIR=${LOCALBASE}/share
+
+CPIO?= /usr/bin/cpio
+SORT?= /usr/bin/sort
+
+do-install:
+ cd ${WRKDIR}; ${FIND} ${DISTNAME} \
+ | ${CPIO} -pdmv -R ${LIBOWN}:${LIBGRP} ${INSTALL_DIR}
+ cd ${LOCALBASE}; ${FIND} share/${DISTNAME} -type f \
+ | ${XARGS} ${CHMOD} ${LIBMODE}
+ cd ${LOCALBASE}; ${FIND} share/${DISTNAME} -type d \
+ | ${XARGS} ${CHMOD} ${BINMODE}
+ ${SED} -e 's|@DISTNAME@|${DISTNAME}|' \
+ -e 's|@LOCALBASE@|${LOCALBASE}|'\
+ <${FILESDIR}/leo.in >${LOCALBASE}/bin/leo
+ ${CHMOD} ${BINMODE} ${LOCALBASE}/bin/leo
+ ${CHOWN} ${BINOWN}:${BINGRP} ${LOCALBASE}/bin/leo
+ ${ECHO_CMD} "bin/leo" >${PLIST}
+ cd ${LOCALBASE}; ${FIND} share/${DISTNAME} -type f \
+ | ${SORT} >>${PLIST}
+ cd ${LOCALBASE}; ${FIND} share/${DISTNAME} -type d \
+ | ${SORT} -r | ${SED} -e 's|^|@dirrm |' >>${PLIST}
+
+.include <bsd.port.post.mk>
+
+#EOF