Skip to content

Commit

Permalink
editors/vim: Update to 8.2.4669, add x11 support, drop Athena
Browse files Browse the repository at this point in the history
Vim no longer includes the Athena (Xaw) frontend, so drop the
athena flavor.

As requested by many (and based on a patch from scf), restore the x11
flavor. The x11 flavor is a bit odd; it doesn't actually include an X
GUI. As a result, when Vim got flavorized I dropped it as I thought
it was vestigial. What the x11 flavor actually provides is support for
some X interaction (mainly xclipboard), and is highly useful to people
who run console Vim within X.

The outcry was pretty swift, and I'd like to thank all the people who
took the time to email me about it, and especially scf who provided
the bulk of this patch.

I'm going to MFH this due to the athena build failure.
  • Loading branch information
assistcontrol committed Apr 2, 2022
1 parent 2410b02 commit de02b1a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
18 changes: 9 additions & 9 deletions editors/vim/Makefile
@@ -1,7 +1,7 @@
# Created by: David O'Brien <obrien@cs.ucdavis.edu>

PORTNAME= vim
PORTVERSION= 8.2.4659
PORTVERSION= 8.2.4669
DISTVERSIONPREFIX= v
CATEGORIES= editors

Expand Down Expand Up @@ -37,7 +37,7 @@ VIM_VER= ${PORTNAME}${PORTVERSION:R:S|.||g}
# Flavors {{{1
# FLAVORS are used to build various Vim GUIs. The default flavor (`vim') is
# console-only.
FLAVORS= console athena gtk2 gtk3 motif tiny
FLAVORS= console gtk2 gtk3 motif x11 tiny
FLAVOR?= ${FLAVORS:[1]}
# Register conflicts with all other flavors
CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:S/^/vim-/}
Expand All @@ -57,13 +57,6 @@ GUI= no
CONFIGURE_ARGS+=--without-x
PLIST= ${.CURDIR}/pkg-plist-tiny

.elif ${FLAVOR:U} == athena
GUI= athena
CONFIGURE_ARGS+=--enable-xim --enable-fontset
PLIST_SUB+= GUI="" DESKTOP="@comment "
USES+= xorg
USE_XORG+= ice sm x11 xaw xmu xpm xt

.elif ${FLAVOR:U} == gtk2
GUI= gtk2
CONFIGURE_ARGS+=--enable-xim --enable-fontset
Expand All @@ -87,6 +80,13 @@ CONFIGURE_ENV+= MOTIFHOME=${LOCALBASE}
PLIST_SUB+= GUI="" DESKTOP="@comment "
USES+= motif xorg
USE_XORG= ice sm x11 xmu xt

.elif ${FLAVOR:U} == x11
GUI= x11
CONFIGURE_ARGS+=--with-x
PLIST_SUB+= GUI="@comment " DESKTOP="@comment "
USES+= xorg
USE_XORG= ice sm x11 xmu xpm xt
.endif

# Options {{{1
Expand Down
6 changes: 3 additions & 3 deletions editors/vim/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1648806173
SHA256 (vim-vim-v8.2.4659_GH0.tar.gz) = daa9252e215548221d24f51cd1e773d3cd5d8c53d29220a8136a0835a3983acc
SIZE (vim-vim-v8.2.4659_GH0.tar.gz) = 16304340
TIMESTAMP = 1648936763
SHA256 (vim-vim-v8.2.4669_GH0.tar.gz) = cca3c98dd36423a5c968260e5ee1b04f0acd36161388e284232b189cadebb3db
SIZE (vim-vim-v8.2.4669_GH0.tar.gz) = 16305422
3 changes: 2 additions & 1 deletion editors/vim/pkg-descr
Expand Up @@ -8,7 +8,8 @@ configuration files.

FreeBSD has the following Vim packages:
* vim: Console-only Vim (vim binary) with all runtime files
* vim-gtk3, -gtk2, -athena, -motif, -x11: Console Vim plus a GUI (gvim binary)
* vim-gtk3, -gtk2, -motif: Console Vim plus a GUI (gvim binary)
* vim-x11: Console Vim only, with xclipboard support
* vim-tiny: Vim binary only, with no runtime files. Not useful for most people;
intended for minimal (ex. jail) installations

Expand Down

0 comments on commit de02b1a

Please sign in to comment.