diff options
author | adamw <adamw@FreeBSD.org> | 2017-01-10 01:03:37 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2017-01-10 01:03:37 +0800 |
commit | c8a7be36d8fb3917b65e47c84b5d7b77021bd3bb (patch) | |
tree | 9493b5bd73317bc37c71bc10297fab1b0e3aca69 /editors | |
parent | 22874725ab6764f9bfabd331625eda7e3fcab40a (diff) | |
download | freebsd-ports-gnome-c8a7be36d8fb3917b65e47c84b5d7b77021bd3bb.tar.gz freebsd-ports-gnome-c8a7be36d8fb3917b65e47c84b5d7b77021bd3bb.tar.zst freebsd-ports-gnome-c8a7be36d8fb3917b65e47c84b5d7b77021bd3bb.zip |
Re-add MAKE_JOBS_UNSAFE. From mat:
--- scratch ---
cp config.mk.dist auto/config.mk
--- clean ---
make[2]: "/wrkdirs/usr/ports/editors/vim/work/vim-8.0.0149/src/po/Makefile" line 4: Could not find ../auto/config.mk
make[2]: Fatal errors encountered -- cannot continue
Install desktop files and icons when the GNOME, GTK2, or GTK3 knobs are turned
on. Requested by Kevin Zheng. PORTREVISION bump for this.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vim/Makefile | 24 | ||||
-rw-r--r-- | editors/vim/pkg-plist | 5 |
2 files changed, 20 insertions, 9 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile index 06fb496a0db3..8fb77bfb5651 100644 --- a/editors/vim/Makefile +++ b/editors/vim/Makefile @@ -3,6 +3,7 @@ PORTNAME= vim PORTVERSION= 8.0.0149 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= editors @@ -38,6 +39,7 @@ MAKE_ARGS+= VIMRUNTIMEDIR=${PREFIX}/share/vim/${VIM_VER} VIMRCLOC=${ETCDIR} MAKE_ARGS+= CONF_OPT_MULTIBYTE=--enable-multibyte CONF_TERM_LIB=--with-tlib=ncurses REINPLACE_ARGS= -i '' USES= cpe iconv ncurses pkgconfig shebangfix +MAKE_JOBS_UNSAFE= yes PLIST_SUB= VIM_VER=${VIM_VER} PORTDATA= ${VIM_VER} @@ -85,32 +87,35 @@ NLS_USES= gettext # UI ATHENA_MAKE_ARGS= CONF_OPT_GUI=--enable-gui=athena -ATHENA_PLIST_SUB= GUI="" +ATHENA_PLIST_SUB= GUI="" DESKTOP="@comment " ATHENA_USE= XORG=ice,sm,x11,xaw,xmu,xpm,xt CONSOLE_MAKE_ARGS= CONF_OPT_GUI="--enable-gui=no --without-x" -CONSOLE_PLIST_SUB= GUI="@comment " +CONSOLE_PLIST_SUB= GUI="@comment " DESKTOP="@comment " GNOME_MAKE_ARGS= CONF_OPT_GUI=--enable-gui=gnome2 -GNOME_PLIST_SUB= GUI="" +GNOME_PLIST_SUB= GUI="" DESKTOP="" GNOME_IMPLIES= NLS GNOME_USE= GNOME=gdkpixbuf2,libgnomeui XORG=ice,sm,glproto,x11,xpm,xt +GNOME_USES= desktop-file-utils GTK2_MAKE_ARGS= CONF_OPT_GUI=--enable-gui=gtk2 -GTK2_PLIST_SUB= GUI="" +GTK2_PLIST_SUB= GUI="" DESKTOP="" GTK2_USE= GNOME=gdkpixbuf2,gtk20 XORG=ice,sm,x11,xpm,xt +GTK2_USES= desktop-file-utils GTK3_MAKE_ARGS= CONF_OPT_GUI=--enable-gui=gtk3 -GTK3_PLIST_SUB= GUI="" +GTK3_PLIST_SUB= GUI="" DESKTOP="" GTK3_USE= GNOME=cairo,gdkpixbuf2,gtk30 XORG=ice,sm,x11,xpm,xt +GTK3_USES= desktop-file-utils MOTIF_MAKE_ARGS= CONF_OPT_GUI='--enable-gui=motif --with-motif-lib="${MOTIFLIB}"' MOTIFHOME=${LOCALBASE} -MOTIF_PLIST_SUB= GUI="" +MOTIF_PLIST_SUB= GUI="" DESKTOP="@comment " MOTIF_USES= motif MOTIF_USE= XORG=ice,sm,x11,xmu,xt X11_MAKE_ARGS= CONF_OPT_GUI="--enable-gui=no --with-x" -X11_PLIST_SUB= GUI="@comment " +X11_PLIST_SUB= GUI="@comment " DESKTOP="@comment " X11_USE= XORG=ice,sm,x11,xt # LANGUAGE BINDINGS @@ -143,7 +148,6 @@ post-extract: post-patch: @${FIND} ${WRKSRC}/ -name 'Makefile' | ${XARGS} ${REINPLACE_CMD} -e 's| $$<| $$>|' - @${REINPLACE_CMD} -e '/^install_normal: / s|install-icons|# &|; /cd $$(DEST_BIN); ln -s/d' ${WRKSRC}/src/Makefile @${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB}|g' ${WRKSRC}/src/auto/configure @${ECHO_CMD} '#define SYS_VIMRC_FILE "'${ETCDIR}'/vimrc"' >> ${WRKSRC}/src/feature.h @${ECHO_CMD} '#define SYS_GVIMRC_FILE "'${ETCDIR}'/gvimrc"' >> ${WRKSRC}/src/feature.h @@ -170,8 +174,10 @@ post-configure: @${REINPLACE_CMD} -e 's|#define HAVE_SYSINFO 1|/* #undef HAVE_SYSINFO */|' ${WRKSRC}/src/auto/config.h post-install: + @${RM} ${STAGEDIR}${PREFIX}/bin/ex + @${RM} ${STAGEDIR}${PREFIX}/bin/view .for F in eview evim gview gvim gvimdiff rgview rgvim rview rvim vimdiff - ${LN} -s vim ${STAGEDIR}${PREFIX}/bin/$F + ${LN} -sf vim ${STAGEDIR}${PREFIX}/bin/$F .endfor post-install-DEFAULT_VIMRC-on: diff --git a/editors/vim/pkg-plist b/editors/vim/pkg-plist index cbf55f25b9a0..400e4772e25b 100644 --- a/editors/vim/pkg-plist +++ b/editors/vim/pkg-plist @@ -183,4 +183,9 @@ man/man1/xxd.1.gz %%NON_LITE%%%%NLS%%man/ru.UTF-8/man1/vimdiff.1.gz %%NON_LITE%%%%NLS%%man/ru.UTF-8/man1/vimtutor.1.gz %%NON_LITE%%%%NLS%%man/ru.UTF-8/man1/xxd.1.gz +%%DESKTOP%%%%NON_LITE%%share/applications/gvim.desktop +%%DESKTOP%%%%NON_LITE%%share/applications/vim.desktop +%%DESKTOP%%%%NON_LITE%%share/icons/hicolor/48x48/apps/gvim.png +%%DESKTOP%%%%NON_LITE%%share/icons/locolor/16x16/apps/gvim.png +%%DESKTOP%%%%NON_LITE%%share/icons/locolor/32x32/apps/gvim.png %%NO_NLS%%@dir %%DATADIR%%/%%VIM_VER%%/lang |