diff options
author | jylefort <jylefort@FreeBSD.org> | 2006-06-19 18:02:05 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2006-06-19 18:02:05 +0800 |
commit | 6a1ff6df28bbfa54cf2a31b4374758cf09777b0b (patch) | |
tree | 869803915e02f8fe09cba2e83d57100cd653cc9f /lang | |
parent | 06521ed2b9a63daed633cd5eb54dab7d83747178 (diff) | |
download | freebsd-ports-graphics-6a1ff6df28bbfa54cf2a31b4374758cf09777b0b.tar.gz freebsd-ports-graphics-6a1ff6df28bbfa54cf2a31b4374758cf09777b0b.tar.zst freebsd-ports-graphics-6a1ff6df28bbfa54cf2a31b4374758cf09777b0b.zip |
Add csharp-mode.el.
After a good number of years, we noticed that there wasn't a "non-patched"
version of a csharp-mode for Emacs. There were a few, but most of them had
comments that they were "in progress" or "about to merge", but then we noticed
that those notices were there even after a couple of months.
Then, we saw a request for a csharp-mode on the cc-mode Emacs site, so we
decided to follow the rules and create one that required no patching or
modification to the core cc-mode engine (which is a good thing). So, this is
the C# mode.
WWW: http://mfgames.com/linux/csharp-mode
Diffstat (limited to 'lang')
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/csharp-mode.el/Makefile | 40 | ||||
-rw-r--r-- | lang/csharp-mode.el/distinfo | 3 | ||||
-rw-r--r-- | lang/csharp-mode.el/pkg-descr | 14 | ||||
-rw-r--r-- | lang/csharp-mode.el/pkg-message | 8 |
5 files changed, 66 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index 177b1b57086..da3315c5ceb 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -29,6 +29,7 @@ SUBDIR += cmucl-extra SUBDIR += cocor SUBDIR += compaq-cc + SUBDIR += csharp-mode.el SUBDIR += cu-prolog SUBDIR += cyclone SUBDIR += dice diff --git a/lang/csharp-mode.el/Makefile b/lang/csharp-mode.el/Makefile new file mode 100644 index 00000000000..f414a2aebf3 --- /dev/null +++ b/lang/csharp-mode.el/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: csharp-mode.el +# Date created: 19 Jun 2006 +# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= csharp-mode.el +PORTVERSION= 0.5.0 +CATEGORIES= lang elisp +MASTER_SITES= http://mfgames.com/linux/releases/ +DISTNAME= ${PORTNAME:S|.el$||}-${PORTVERSION} + +MAINTAINER= jylefort@FreeBSD.org +COMMENT= Emacs/XEmacs major mode for editing C\# source code + +USE_BZIP2= yes +NO_WRKSUBDIR= yes + +USE_EMACS= yes +EMACS_PORT_NAME?= emacs22 +CSHARP_MODE_DIR= ${EMACS_LIBDIR_WITH_VER}/lisp + +PLIST_FILES= ${CSHARP_MODE_DIR}/csharp-mode.el \ + ${CSHARP_MODE_DIR}/csharp-mode.elc + +post-patch: + @${MV} ${WRKSRC}/csharp-mode-${PORTVERSION}.el ${WRKSRC}/csharp-mode.el + +do-build: + cd ${WRKSRC} && ${EMACS_CMD} -batch -q -f batch-byte-compile csharp-mode.el + +do-install: + ${MKDIR} ${PREFIX}/${CSHARP_MODE_DIR} + ${INSTALL_DATA} ${WRKSRC}/csharp-mode.* ${PREFIX}/${CSHARP_MODE_DIR} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/lang/csharp-mode.el/distinfo b/lang/csharp-mode.el/distinfo new file mode 100644 index 00000000000..75e7cfdb6b4 --- /dev/null +++ b/lang/csharp-mode.el/distinfo @@ -0,0 +1,3 @@ +MD5 (csharp-mode-0.5.0.tar.bz2) = e58afd4a1d708ac227ab52b1420ef2f3 +SHA256 (csharp-mode-0.5.0.tar.bz2) = 0fcec187188cd9d349a1fc1962cf9b9e257d770ca267d5b657bdf7553b910dd6 +SIZE (csharp-mode-0.5.0.tar.bz2) = 5439 diff --git a/lang/csharp-mode.el/pkg-descr b/lang/csharp-mode.el/pkg-descr new file mode 100644 index 00000000000..a89af0a8d22 --- /dev/null +++ b/lang/csharp-mode.el/pkg-descr @@ -0,0 +1,14 @@ +After a good number of years, we noticed that there wasn't a "non-patched" +version of a csharp-mode for Emacs. There were a few, but most of them had +comments that they were "in progress" or "about to merge", but then we noticed +that those notices were there even after a couple of months. + +Then, we saw a request for a csharp-mode on the cc-mode Emacs site, so we +decided to follow the rules and create one that required no patching or +modification to the core cc-mode engine (which is a good thing). So, this is +the C# mode. + +WWW: http://mfgames.com/linux/csharp-mode + +- Jean-Yves Lefort +jylefort@FreeBSD.org diff --git a/lang/csharp-mode.el/pkg-message b/lang/csharp-mode.el/pkg-message new file mode 100644 index 00000000000..8de392e1e98 --- /dev/null +++ b/lang/csharp-mode.el/pkg-message @@ -0,0 +1,8 @@ +=============================================================================== + +To use csharp-mode, add the following lines to your ~/.emacs file: + + (autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t) + (setq auto-mode-alist (append '(("\\.cs$" . csharp-mode)) auto-mode-alist)) + +=============================================================================== |