git: c51ce87a4ef5 - main - editors/vim-colorschemes-legacy: Add port

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Sat, 03 Sep 2022 16:33:11 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c51ce87a4ef535f7df2c31bbf8b1cbd1a0f1d579

commit c51ce87a4ef535f7df2c31bbf8b1cbd1a0f1d579
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2022-09-03 16:26:48 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2022-09-03 16:26:48 +0000

    editors/vim-colorschemes-legacy: Add port
    
    Upstream vim modernized their colorschemes, which is a good thing.
    However, the look of them has changed, which is jarring at best for
    users used to the original look.
    
    Upstream colorscheme development was split into a new repo, and the
    original colorschemes were imported there. This port installs those
    colorschemes.
    
    The rest of that repo are the colorschemes included in vim, so there's
    not really any benefit to packaging anything else from it.
    
    PR:             265798
---
 editors/Makefile                              |  1 +
 editors/vim-colorschemes-legacy/Makefile      | 33 ++++++++++++
 editors/vim-colorschemes-legacy/distinfo      |  3 ++
 editors/vim-colorschemes-legacy/files/LICENSE | 78 +++++++++++++++++++++++++++
 editors/vim-colorschemes-legacy/pkg-descr     |  7 +++
 editors/vim-colorschemes-legacy/pkg-plist     | 17 ++++++
 6 files changed, 139 insertions(+)

diff --git a/editors/Makefile b/editors/Makefile
index 2a49e4899e93..2f7ab5ece415 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -268,6 +268,7 @@
     SUBDIR += vigor
     SUBDIR += vile
     SUBDIR += vim
+    SUBDIR += vim-colorschemes-legacy
     SUBDIR += vscode
     SUBDIR += web-mode
     SUBDIR += with-editor
diff --git a/editors/vim-colorschemes-legacy/Makefile b/editors/vim-colorschemes-legacy/Makefile
new file mode 100644
index 000000000000..b5c1ad467ada
--- /dev/null
+++ b/editors/vim-colorschemes-legacy/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	vim-colorschemes-legacy
+DISTVERSION=	g20220816
+CATEGORIES=	editors
+
+MAINTAINER=	michael.osipov@siemens.com
+COMMENT=	Legacy colorschemes for Vim
+
+LICENSE=	VIM
+LICENSE_NAME=	VIM License
+LICENSE_FILE=	${FILESDIR}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+RUN_DEPENDS=	vim:editors/vim
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	vim
+GH_PROJECT=	colorschemes
+GH_TAGNAME=	38384b9d9cd24028094e5c9a6ebd1a9950426a4a
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+VIMRUNTIME!=	make -C "${.CURDIR}/../vim" -V '$${DATADIR}/$${VIM_VER}'
+DATADIR:=	${VIMRUNTIME}/colors/legacy
+WRKSRC_SUBDIR=	legacy_colors
+
+post-extract:
+	${RM} ${WRKSRC}/README.md
+
+do-install:
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/editors/vim-colorschemes-legacy/distinfo b/editors/vim-colorschemes-legacy/distinfo
new file mode 100644
index 000000000000..7c0d65f73400
--- /dev/null
+++ b/editors/vim-colorschemes-legacy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660818710
+SHA256 (vim-colorschemes-g20220816-38384b9d9cd24028094e5c9a6ebd1a9950426a4a_GH0.tar.gz) = c3c2d54e9e4d07d1d62c770e8c5c8e2283a5491af7ccfcb491a26fd8dfe61d05
+SIZE (vim-colorschemes-g20220816-38384b9d9cd24028094e5c9a6ebd1a9950426a4a_GH0.tar.gz) = 89603
diff --git a/editors/vim-colorschemes-legacy/files/LICENSE b/editors/vim-colorschemes-legacy/files/LICENSE
new file mode 100644
index 000000000000..ecfbe5534e21
--- /dev/null
+++ b/editors/vim-colorschemes-legacy/files/LICENSE
@@ -0,0 +1,78 @@
+VIM LICENSE
+
+I)  There are no restrictions on distributing unmodified copies of Vim except
+    that they must include this license text.  You can also distribute
+    unmodified parts of Vim, likewise unrestricted except that they must
+    include this license text.  You are also allowed to include executables
+    that you made from the unmodified Vim sources, plus your own usage
+    examples and Vim scripts.
+
+II) It is allowed to distribute a modified (or extended) version of Vim,
+    including executables and/or source code, when the following four
+    conditions are met:
+    1) This license text must be included unmodified.
+    2) The modified Vim must be distributed in one of the following five ways:
+       a) If you make changes to Vim yourself, you must clearly describe in
+          the distribution how to contact you.  When the maintainer asks you
+          (in any way) for a copy of the modified Vim you distributed, you
+          must make your changes, including source code, available to the
+          maintainer without fee.  The maintainer reserves the right to
+          include your changes in the official version of Vim.  What the
+          maintainer will do with your changes and under what license they
+          will be distributed is negotiable.  If there has been no negotiation
+          then this license, or a later version, also applies to your changes.
+          The current maintainer is Bram Moolenaar <Bram@vim.org>.  If this
+          changes it will be announced in appropriate places (most likely
+          vim.sf.net, www.vim.org and/or comp.editors). When it is completely
+          impossible to contact the maintainer, the obligation to send him
+          your changes ceases.  Once the maintainer has confirmed that he has
+          received your changes they will not have to be sent again.
+       b) If you have received a modified Vim that was distributed as
+          mentioned under a) you are allowed to further distribute it
+          unmodified, as mentioned at I).  If you make additional changes the
+          text under a) applies to those changes.
+       c) Provide all the changes, including source code, with every copy of
+          the modified Vim you distribute.  This may be done in the form of a
+          context diff.  You can choose what license to use for new code you
+          add.  The changes and their license must not restrict others from
+          making their own changes to the official version of Vim.
+       d) When you have a modified Vim which includes changes as mentioned
+          under c), you can distribute it without the source code for the
+          changes if the following three conditions are met:
+          - The license that applies to the changes permits you to distribute
+            the changes to the Vim maintainer without fee or restriction, and
+            permits the Vim maintainer to include the changes in the official
+            version of Vim without fee or restriction.
+          - You keep the changes for at least three years after last
+            distributing the corresponding modified Vim.  When the maintainer
+            or someone who you distributed the modified Vim to asks you (in
+            any way) for the changes within this period, you must make them
+            available to him.
+          - You clearly describe in the distribution how to contact you.  This
+            contact information must remain valid for at least three years
+            after last distributing the corresponding modified Vim, or as long
+            as possible.
+       e) When the GNU General Public License (GPL) applies to the changes,
+          you can distribute the modified Vim under the GNU GPL version 2 or
+          any later version.
+    3) A message must be added, at least in the output of the ":version"
+       command and in the intro screen, such that the user of the modified Vim
+       is able to see that it was modified.  When distributing as mentioned
+       under 2)e) adding the message is only required for as far as this does
+       not conflict with the license used for the changes.
+    4) The contact information as required under 2)a) and 2)d) must not be
+       removed or changed, except that the person himself can make
+       corrections.
+
+III) If you distribute a modified version of Vim, you are encouraged to use
+     the Vim license for your changes and make them available to the
+     maintainer, including the source code.  The preferred way to do this is
+     by e-mail or by uploading the files to a server and e-mailing the URL.
+     If the number of changes is small (e.g., a modified Makefile) e-mailing a
+     context diff will do.  The e-mail address to be used is
+     <maintainer@vim.org>
+
+IV)  It is not allowed to remove this license from the distribution of the Vim
+     sources, parts of it or from a modified version.  You may use this
+     license for previous Vim releases instead of the license that they came
+     with, at your option.
diff --git a/editors/vim-colorschemes-legacy/pkg-descr b/editors/vim-colorschemes-legacy/pkg-descr
new file mode 100644
index 000000000000..cf23be86f549
--- /dev/null
+++ b/editors/vim-colorschemes-legacy/pkg-descr
@@ -0,0 +1,7 @@
+The collection of legacy vim colorschemes before 8.2.4954.
+
+The upstream vim colorschemes were substantively changed in that patch,
+so the look is now noticably different. The original colorschemes live
+on in this package.
+
+WWW: https://github.com/vim/colorschemes
diff --git a/editors/vim-colorschemes-legacy/pkg-plist b/editors/vim-colorschemes-legacy/pkg-plist
new file mode 100644
index 000000000000..e09969b47ab4
--- /dev/null
+++ b/editors/vim-colorschemes-legacy/pkg-plist
@@ -0,0 +1,17 @@
+%%DATADIR%%/blue.vim
+%%DATADIR%%/darkblue.vim
+%%DATADIR%%/delek.vim
+%%DATADIR%%/desert.vim
+%%DATADIR%%/elflord.vim
+%%DATADIR%%/evening.vim
+%%DATADIR%%/industry.vim
+%%DATADIR%%/koehler.vim
+%%DATADIR%%/morning.vim
+%%DATADIR%%/murphy.vim
+%%DATADIR%%/pablo.vim
+%%DATADIR%%/peachpuff.vim
+%%DATADIR%%/ron.vim
+%%DATADIR%%/shine.vim
+%%DATADIR%%/slate.vim
+%%DATADIR%%/torte.vim
+%%DATADIR%%/zellner.vim