aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-12-30 10:19:09 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-12-30 10:19:09 +0000
commitc060c425ad2c654711734fc0e3c6cfab22dcf128 (patch)
tree590383dffcc3944d3d40a4c8b4a0695e11201e13 /editors
parent8fa445d7dce357c9348493ca3be03f46c4edaa21 (diff)
downloadports-c060c425ad2c654711734fc0e3c6cfab22dcf128.tar.gz
ports-c060c425ad2c654711734fc0e3c6cfab22dcf128.zip
Notes
Diffstat (limited to 'editors')
-rw-r--r--editors/Makefile1
-rw-r--r--editors/web-mode/Makefile30
-rw-r--r--editors/web-mode/distinfo3
-rw-r--r--editors/web-mode/files/Makefile15
-rw-r--r--editors/web-mode/files/web-mode-autoloads.el.in11
-rw-r--r--editors/web-mode/pkg-descr10
6 files changed, 70 insertions, 0 deletions
diff --git a/editors/Makefile b/editors/Makefile
index 5c521f869791..09fd4ef80cad 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -256,6 +256,7 @@
SUBDIR += vile
SUBDIR += vim
SUBDIR += vim-lite
+ SUBDIR += web-mode
SUBDIR += with-editor
SUBDIR += wordgrinder
SUBDIR += xcoral
diff --git a/editors/web-mode/Makefile b/editors/web-mode/Makefile
new file mode 100644
index 000000000000..8fdaae2d31c0
--- /dev/null
+++ b/editors/web-mode/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME= web-mode
+PORTVERSION= 14
+DISTVERSIONPREFIX= v
+CATEGORIES= editors elisp
+PKGNAMESUFFIX= -${EMACS_PORT_NAME}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Autonomous Emacs major-mode for editing web templates
+
+LICENSE= GPLv2
+
+USE_GITHUB= yes
+GH_ACCOUNT= fxbois
+USE_EMACS= yes
+MAKEFILE= ${FILESDIR}/Makefile
+MAKE_ENV= EMACS="${EMACS_CMD}" LISPDIR="${WEBMODE_LISPDIR}" \
+ DESTDIR="${STAGEDIR}"
+SUB_FILES= web-mode-autoloads.el
+SUB_LIST= LISPDIR="${WEBMODE_LISPDIR}"
+WEBMODE_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/web-mode
+PLIST_FILES= %%EMACS_VERSION_SITE_LISPDIR%%/web-mode/web-mode.elc.gz \
+ %%EMACS_VERSION_SITE_LISPDIR%%/web-mode-autoloads.el
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/web-mode-autoloads.el \
+ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+
+.include <bsd.port.mk>
diff --git a/editors/web-mode/distinfo b/editors/web-mode/distinfo
new file mode 100644
index 000000000000..6f903130fe4d
--- /dev/null
+++ b/editors/web-mode/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1483092091
+SHA256 (fxbois-web-mode-v14_GH0.tar.gz) = 40ddc857211b575579e2054fcf056fb96e39680bee8f4479c37b1311a101dca0
+SIZE (fxbois-web-mode-v14_GH0.tar.gz) = 108282
diff --git a/editors/web-mode/files/Makefile b/editors/web-mode/files/Makefile
new file mode 100644
index 000000000000..01194af1fede
--- /dev/null
+++ b/editors/web-mode/files/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+SRCS= web-mode.el
+OBJS= ${SRCS:C/.el$/.elc/}
+
+.SUFFIXES:
+.SUFFIXES: .el .elc
+.el.elc:
+ ${EMACS} -batch -q -f batch-byte-compile ${.IMPSRC}
+
+all: ${OBJS}
+
+install: ${OBJS}
+ mkdir -p ${DESTDIR}${LISPDIR}
+ ${BSD_INSTALL_DATA} ${.ALLSRC} ${DESTDIR}${LISPDIR}
+ cd ${DESTDIR}${LISPDIR} && gzip -9 ${.ALLSRC}
diff --git a/editors/web-mode/files/web-mode-autoloads.el.in b/editors/web-mode/files/web-mode-autoloads.el.in
new file mode 100644
index 000000000000..b2e66e382479
--- /dev/null
+++ b/editors/web-mode/files/web-mode-autoloads.el.in
@@ -0,0 +1,11 @@
+;; -*- lisp -*-
+;; $FreeBSD$
+;;
+(if (not (fboundp 'normal-top-level-add-subdirs-to-load-path))
+ (setq load-path (append '(
+ "%%LISPDIR%%"
+ ) load-path)))
+
+(autoload 'web-mode "web-mode" "Major mode to edit Javascript files." t)
+
+(provide 'web-mode-autoloads)
diff --git a/editors/web-mode/pkg-descr b/editors/web-mode/pkg-descr
new file mode 100644
index 000000000000..16c888db987e
--- /dev/null
+++ b/editors/web-mode/pkg-descr
@@ -0,0 +1,10 @@
+web-mode.el is an emacs major mode for editing web templates aka HTML
+files embedding parts (CSS/JavaScript) and blocks (pre rendered by
+client/server side engines).
+
+web-mode.el is compatible with many template engines: PHP, JSP, ASP,
+Django, Twig, Jinja, Mustache, ERB, FreeMarker, Velocity, Cheetah,
+Smarty, CTemplate, Mustache, Blade, ErlyDTL, Go Template, Dust.js,
+Google Closure (soy), React/JSX, Angularjs, ejs, Nunjucks, etc.
+
+WWW: http://web-mode.org