svn commit: r458471 - in head/editors: . vim vim-lite vim-tiny
Adam Weinberger
adamw at FreeBSD.org
Mon Jan 8 19:44:15 UTC 2018
Author: adamw
Date: Mon Jan 8 19:44:13 2018
New Revision: 458471
URL: https://svnweb.freebsd.org/changeset/ports/458471
Log:
Add editors/vim-tiny.
By popular request, this is a slave port that installs only the vim binary. It has
no dependencies, produces a 1 MB package with a 3 MB installed footprint, and
is unable to do anything except edit files. It contains no help files, no runtime
files, no syntax highlighting, no filetype-specific indenting, non-US keymaps,
macros, or spell-checking.
vim-tiny is designed for minimal installs, and is the wrong choice for most users.
Added:
head/editors/vim-tiny/
head/editors/vim-tiny/Makefile (contents, props changed)
head/editors/vim-tiny/pkg-descr (contents, props changed)
Modified:
head/editors/Makefile
head/editors/vim-lite/Makefile
head/editors/vim/Makefile
Modified: head/editors/Makefile
==============================================================================
--- head/editors/Makefile Mon Jan 8 19:43:49 2018 (r458470)
+++ head/editors/Makefile Mon Jan 8 19:44:13 2018 (r458471)
@@ -244,6 +244,7 @@
SUBDIR += vile
SUBDIR += vim
SUBDIR += vim-lite
+ SUBDIR += vim-tiny
SUBDIR += web-mode
SUBDIR += with-editor
SUBDIR += wordgrinder
Modified: head/editors/vim-lite/Makefile
==============================================================================
--- head/editors/vim-lite/Makefile Mon Jan 8 19:43:49 2018 (r458470)
+++ head/editors/vim-lite/Makefile Mon Jan 8 19:44:13 2018 (r458471)
@@ -5,7 +5,7 @@ PKGNAMESUFFIX= -lite
COMMENT= Improved version of the vi editor (lite package)
-CONFLICTS_INSTALL= vim-[0-9]*
+CONFLICTS_INSTALL= vim vim-tiny
LITE= yes
MASTERDIR= ${.CURDIR}/../vim
Added: head/editors/vim-tiny/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/vim-tiny/Makefile Mon Jan 8 19:44:13 2018 (r458471)
@@ -0,0 +1,22 @@
+# Created by: Adam Weinberger <adamw at FreeBSD.org>
+# $FreeBSD$
+
+PKGNAMESUFFIX= -tiny
+
+COMMENT= Improved version of the vi editor (vim binary only)
+
+CONFLICTS_INSTALL= vim vim-lite
+
+TINY= yes
+MASTERDIR= ${.CURDIR}/../vim
+
+PORTDATA= # Not for -tiny
+PLIST= # Not for -tiny
+PLIST_FILES= bin/vim \
+ man/man1/vim.1.gz
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/vim ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/runtime/doc/vim.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+.include "${MASTERDIR}/Makefile"
Added: head/editors/vim-tiny/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/vim-tiny/pkg-descr Mon Jan 8 19:44:13 2018 (r458471)
@@ -0,0 +1,15 @@
+Vim is a highly configurable text editor built to enable efficient text editing.
+It is an improved version of the vi editor distributed with most UNIX systems.
+
+Vim is often called a "programmer's editor," and so useful for programming that
+many consider it an entire IDE. It's not just for programmers, though. Vim is
+perfect for all kinds of text editing, from composing email to editing
+configuration files.
+
+This is the "tiny" version, which is console-only and contains ONLY the vim
+binary. It contains no help files, syntax files, or any other runtime files,
+and is designed only for minimal installs. You almost always want the vim
+or vim-lite package instead.
+
+WWW: http://www.vim.org/
+WWW: https://github.com/vim/vim
Modified: head/editors/vim/Makefile
==============================================================================
--- head/editors/vim/Makefile Mon Jan 8 19:43:49 2018 (r458470)
+++ head/editors/vim/Makefile Mon Jan 8 19:44:13 2018 (r458471)
@@ -14,7 +14,7 @@ LICENSE_NAME= VIM License
LICENSE_FILE= ${WRKSRC}/runtime/doc/uganda.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-CONFLICTS_INSTALL?= vim-lite-[0-9]*
+CONFLICTS_INSTALL?= vim-lite vim-tiny
USES= cpe iconv ncurses pkgconfig shebangfix
USE_GITHUB= yes
@@ -30,7 +30,7 @@ CPE_VERSION= ${PORTVERSION:R}
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
PLIST_SUB= VIM_VER=${VIM_VER}
-PORTDATA= ${VIM_VER}
+PORTDATA?= ${VIM_VER}
PORTSCOUT= ignore:1
REINPLACE_ARGS= -i ''
SHEBANG_FILES= runtime/tools/demoserver.py runtime/tools/efm_perl.pl
@@ -52,6 +52,11 @@ OPTIONS_SLAVE= CONSOLE
OPTIONS_EXCLUDE:= ${OPTIONS_DEFINE:NDEFAULT_VIMRC} \
${OPTIONS_SINGLE_UI:NCONSOLE} \
${OPTIONS_GROUP_LANGBIND}
+.elif defined(TINY)
+OPTIONS_SLAVE= CONSOLE
+OPTIONS_EXCLUDE:= ${OPTIONS_DEFINE} \
+ ${OPTIONS_SINGLE_UI:NCONSOLE} \
+ ${OPTIONS_GROUP_LANGBIND}
.endif
DEFAULT_VIMRC_DESC= Install bundled vimrc as default setting
@@ -156,6 +161,7 @@ post-configure:
# Needed when devel/libsysinfo is installed:
@${REINPLACE_CMD} -e '/#define HAVE_SYSINFO 1/ d' ${WRKSRC}/src/auto/config.h
+.if !defined(TINY)
post-install:
@${RM} ${STAGEDIR}${PREFIX}/bin/ex
@${RM} ${STAGEDIR}${PREFIX}/bin/view
@@ -187,5 +193,6 @@ post-install-NLS-off:
@${MKDIR} ${STAGEDIR}${DATADIR}/${VIM_VER}/lang
@${MKDIR} ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap
${INSTALL_DATA} ${WRKSRC}/runtime/keymap/* ${STAGEDIR}${DATADIR}/${VIM_VER}/keymap
+.endif #!defined(TINY)
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list