summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/ledit/Makefile33
-rw-r--r--sysutils/ledit/distinfo3
-rw-r--r--sysutils/ledit/files/patch-pa_local.ml15
-rw-r--r--sysutils/ledit/pkg-descr3
5 files changed, 55 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 16e298c67631..ff74b8608525 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -331,6 +331,7 @@
SUBDIR += lcdproc
SUBDIR += ldap-account-manager
SUBDIR += ldapvi
+ SUBDIR += ledit
SUBDIR += less
SUBDIR += lfm
SUBDIR += libcdio
diff --git a/sysutils/ledit/Makefile b/sysutils/ledit/Makefile
new file mode 100644
index 000000000000..da541d0f475c
--- /dev/null
+++ b/sysutils/ledit/Makefile
@@ -0,0 +1,33 @@
+# ex:ts=8
+# Ports collection makefile for: ledit
+# Date created: Feb 8, 2005
+# Whom: Marwan Burelle <marwan.burelle@lri.fr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ledit
+PORTVERSION= 1.11
+PORTREVISION= 1
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.inria.fr/INRIA/cristal/Daniel.de_Rauglaudre/Tools/ \
+ http://home.leo.org/~barner/freebsd/distfiles/
+
+MAINTAINER= barner@FreeBSD.org
+COMMENT= Line editor to be used with interactive commands
+
+BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
+
+ALL_TARGET= all ledit.opt
+
+PLIST_FILES= bin/ledit
+
+MAN1= ledit.1
+
+.include <bsd.port.pre.mk>
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ledit.out ${PREFIX}/bin/ledit
+ ${INSTALL_MAN} ${WRKSRC}/ledit.l ${MANPREFIX}/man/man1/ledit.1
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/ledit/distinfo b/sysutils/ledit/distinfo
new file mode 100644
index 000000000000..4957f05252eb
--- /dev/null
+++ b/sysutils/ledit/distinfo
@@ -0,0 +1,3 @@
+MD5 (ledit-1.11.tar.gz) = a2d38ba641682509c1e964ad699a9dd2
+SHA256 (ledit-1.11.tar.gz) = d5f3775e200f0bfcd2f255866b284572cb431b1befd61eab34112c10369c4d59
+SIZE (ledit-1.11.tar.gz) = 14027
diff --git a/sysutils/ledit/files/patch-pa_local.ml b/sysutils/ledit/files/patch-pa_local.ml
new file mode 100644
index 000000000000..9c6f32e6e40a
--- /dev/null
+++ b/sysutils/ledit/files/patch-pa_local.ml
@@ -0,0 +1,15 @@
+--- pa_local.ml.orig Mon Jun 25 11:20:33 2007
++++ pa_local.ml Mon Jun 25 11:21:06 2007
+@@ -14,10 +14,10 @@
+ open Pcaml;
+
+ value expr_of_patt p =
+- let loc = MLast.loc_of_patt p in
++ let _loc = MLast.loc_of_patt p in
+ match p with
+ [ <:patt< $lid:x$ >> -> <:expr< $lid:x$ >>
+- | _ -> Stdpp.raise_with_loc loc (Stream.Error "identifier expected") ]
++ | _ -> Stdpp.raise_with_loc _loc (Stream.Error "identifier expected") ]
+ ;
+
+ EXTEND
diff --git a/sysutils/ledit/pkg-descr b/sysutils/ledit/pkg-descr
new file mode 100644
index 000000000000..d8f4a5c43112
--- /dev/null
+++ b/sysutils/ledit/pkg-descr
@@ -0,0 +1,3 @@
+Ledit is a line editor, allowing to use control commands like in emacs
+or in shells (bash, tcsh). To be used with interactive commands. It is
+written in Ocaml and Camlp4 and uses the library unix.cma.