vim: Fix environment contamination from libcanberra

Vim will link against libcanberra if it's present, leading to an
undeclared link and breakage risk if canberra is removed. It only really
makes sense for it to do this during a gnome build, so explicitly
enable it there and disable it elsewhere.

PR:		245460
Reported by:	Andy Mender
MFH:		2020Q2
This commit is contained in:
Adam Weinberger 2020-04-12 16:10:58 +00:00
parent 1fead13002
commit d47ef88916
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531528

View File

@ -3,6 +3,7 @@
PORTNAME= vim
PORTVERSION= 8.2.0491
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= editors
@ -95,6 +96,8 @@ CONSOLE_CONFIGURE_OFF= --enable-xim --enable-fontset
CONSOLE_PLIST_SUB= GUI="@comment " DESKTOP="@comment "
CONSOLE_VARS= GUI=no
GNOME_CONFIGURE_ENABLE= canberra
GNOME_LIB_DEPENDS= libcanberra.so:audio/libcanberra
GNOME_PLIST_SUB= GUI="" DESKTOP=""
GNOME_IMPLIES= NLS
GNOME_USE= GNOME=gdkpixbuf2,libgnomeui XORG=ice,sm,xorgproto,x11,xpm,xt