From owner-svn-ports-head@freebsd.org Mon Jan 8 19:44:14 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E512FE5C76C; Mon, 8 Jan 2018 19:44:14 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE00670213; Mon, 8 Jan 2018 19:44:14 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EA6144696; Mon, 8 Jan 2018 19:44:13 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w08JiDR8058964; Mon, 8 Jan 2018 19:44:13 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08JiDrt058959; Mon, 8 Jan 2018 19:44:13 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201801081944.w08JiDrt058959@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Mon, 8 Jan 2018 19:44:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458471 - in head/editors: . vim vim-lite vim-tiny X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: in head/editors: . vim vim-lite vim-tiny X-SVN-Commit-Revision: 458471 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 19:44:15 -0000 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 +# $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