From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KMkdh-0007KH-Qj for garchives@archives.gentoo.org; Sat, 26 Jul 2008 14:20:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E61AE035B; Sat, 26 Jul 2008 14:20:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 93A00E035B for ; Sat, 26 Jul 2008 14:20:52 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 173F764B0E for ; Sat, 26 Jul 2008 14:20:52 +0000 (UTC) Received: from hawking by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1KMkde-0001mF-Gv for gentoo-commits@lists.gentoo.org; Sat, 26 Jul 2008 14:20:50 +0000 From: "Ali Polatel (hawking)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, hawking@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: vim.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: vim.eclass X-VCS-Directories: eclass X-VCS-Committer: hawking X-VCS-Committer-Name: Ali Polatel Content-Type: text/plain; charset=utf8 Message-Id: Sender: Ali Polatel Date: Sat, 26 Jul 2008 14:20:50 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0063cf75-eafd-4f2d-93c4-f5a5c1523be0 X-Archives-Hash: 11766dee74a5106a5b6a2da928c79d51 hawking 08/07/26 14:20:50 Modified: vim.eclass Log: Quoting, fixes #203985 Revision Changes Path 1.172 eclass/vim.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?= rev=3D1.172&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?= rev=3D1.172&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/vim.eclass?= r1=3D1.171&r2=3D1.172 Index: vim.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v retrieving revision 1.171 retrieving revision 1.172 diff -u -r1.171 -r1.172 --- vim.eclass 6 Apr 2008 09:22:13 -0000 1.171 +++ vim.eclass 26 Jul 2008 14:20:50 -0000 1.172 @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.171 2008/04/06 = 09:22:13 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.172 2008/07/26 = 14:20:50 hawking Exp $ =20 # Authors: # Ryan Phillips @@ -24,18 +24,18 @@ inherit eutils vim-doc flag-o-matic versionator fdo-mime =20 # Support -cvs ebuilds, even though they're not in the official tree. -MY_PN=3D"${PN%-cvs}" +MY_PN=3D${PN%-cvs} =20 # This isn't a conditional inherit from portage's perspective, since $MY= _PN is # constant at cache creation time. It's therefore legal and doesn't brea= k # anything. I even checked with carpaski first :) (08 Sep 2004 ciaranm) -if [[ "${MY_PN}" !=3D "vim-core" ]] && ! version_is_at_least "6.3.086" ;= then - IUSE=3D"debug" +if [[ ${MY_PN} !=3D "vim-core" ]] && ! version_is_at_least 6.3.086 ; the= n + IUSE=3Ddebug else - IUSE=3D"" + IUSE=3D fi =20 -if [[ "${PN##*-}" =3D=3D "cvs" ]] ; then +if [[ ${PN##*-} =3D=3D "cvs" ]] ; then inherit cvs fi =20 @@ -45,7 +45,7 @@ =20 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install src_test p= kg_postinst pkg_postrm =20 -if version_is_at_least "6.4_beta" ; then +if version_is_at_least 6.4_beta ; then IUSE=3D"${IUSE} nls acl" else IUSE=3D"${IUSE} selinux nls acl" @@ -54,7 +54,7 @@ DEPEND=3D"${DEPEND} nls? ( virtual/libintl )" RDEPEND=3D"${RDEPEND} nls? ( virtual/libintl )" =20 -if [[ "${MY_PN}" =3D=3D "vim-core" ]] ; then +if [[ ${MY_PN} =3D=3D "vim-core" ]] ; then IUSE=3D"${IUSE} livecd" else IUSE=3D"${IUSE} cscope gpm perl python ruby" @@ -73,18 +73,18 @@ acl? ( kernel_linux? ( sys-apps/acl ) ) ruby? ( virtual/ruby )" =20 - if ! version_is_at_least "6.4_beta" ; then + if ! version_is_at_least 6.4_beta ; then DEPEND=3D"${DEPEND} selinux? ( sys-libs/libselinux )" RDEPEND=3D"${RDEPEND} selinux? ( sys-libs/libselinux )" fi =20 - if [[ "${MY_PN}" =3D=3D "vim" ]] ; then + if [[ ${MY_PN} =3D=3D vim ]] ; then IUSE=3D"${IUSE} vim-with-x minimal" # see bug #111979 for modular X deps DEPEND=3D"${DEPEND} vim-with-x? ( x11-libs/libXt x11-libs/libX11 x11-libs/libSM x11-proto/xproto )" RDEPEND=3D"${RDEPEND} vim-with-x? ( x11-libs/libXt )" - elif [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + elif [[ ${MY_PN} =3D=3D gvim ]] ; then if version_is_at_least "6.3.086" ; then IUSE=3D"${IUSE} gnome gtk motif" else @@ -99,14 +99,14 @@ # ebuilds don't handle it). if [[ $(get_major_version ) -ge 7 ]] ; then # mzscheme support is currently broken. bug #91970 - #if [[ "${MY_PN}" !=3D "vim-core" ]] ; then + #if [[ ${MY_PN} !=3D "vim-core" ]] ; then # IUSE=3D"${IUSE} mzscheme" # DEPEND=3D"${DEPEND} # mzscheme? ( dev-scheme/mzscheme )" # RDEPEND=3D"${RDEPEND} # mzscheme? ( dev-scheme/mzscheme )" #fi - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then IUSE=3D"${IUSE} netbeans aqua nextaw" # Vim implements netbeans external editor protocol when netbeans is # enabled and doesn't necessarily need dev-util/netbeans. @@ -114,12 +114,12 @@ # DEPEND=3D"${DEPEND} netbeans? ( dev-util/netbeans )" # RDEPEND=3D"${RDEPEND} netbeans? ( dev-util/netbeans )" fi - if [[ "${MY_PN}" =3D=3D "vim" ]] ; then + if [[ ${MY_PN} =3D=3D vim ]] ; then IUSE=3D"${IUSE} vim-pager" fi =20 # app-vim blocks - if [[ "${MY_PN}" !=3D "vim-core" ]] ; then + if [[ ${MY_PN} !=3D "vim-core" ]] ; then # align: bug 79982 RDEPEND=3D"${RDEPEND} !"/dev/stderr"} patchnum =3D $3 @@ -223,7 +223,7 @@ vim_src_unpack() { unpack ${A} =20 - if [[ "${PN##*-}" =3D=3D "cvs" ]] ; then + if [[ ${PN##*-} =3D=3D cvs ]] ; then ECVS_SERVER=3D"vim.cvs.sourceforge.net:/cvsroot/vim" ECVS_PASS=3D"" if [[ $(get_major_version ) -ge 7 ]] ; then @@ -240,67 +240,67 @@ =20 # Unpack the runtime snapshot if available (only for vim-core) if [[ -n "$VIM_RUNTIME_SNAP" ]] ; then - cd ${S} || die + cd "${S}" || die ebegin "Unpacking vim runtime snapshot" rm -rf runtime # Changed this from bzip2 |tar to tar -j since the former broke for # some reason on freebsd. # --spb, 2004/12/18 - tar xjf ${DISTDIR}/${VIM_RUNTIME_SNAP} + tar xjf "${DISTDIR}"/${VIM_RUNTIME_SNAP} assert # this will check both parts of the pipeline; eend would not eend 0 fi fi =20 # Another set of patches borrowed from src rpm to fix syntax errors etc= . - cd ${S} || die "cd ${S} failed" + cd "${S}" || die "cd ${S} failed" EPATCH_SUFFIX=3D"gz" EPATCH_FORCE=3D"yes" \ - epatch ${WORKDIR}/gentoo/patches-all/ + epatch "${WORKDIR}"/gentoo/patches-all/ =20 # Unpack an updated netrw snapshot if necessary. This is nasty. Don't # ask, you don't want to know. if [[ -n "${VIM_NETRW_SNAP}" ]] ; then ebegin "Unpacking updated netrw snapshot" - tar xjf ${DISTDIR}/${VIM_NETRW_SNAP} -C runtime/ + tar xjf "${DISTDIR}"/${VIM_NETRW_SNAP} -C runtime/ eend $? fi =20 # Fixup a script to use awk instead of nawk - sed -i '1s|.*|#!/usr/bin/awk -f|' ${S}/runtime/tools/mve.awk \ + sed -i '1s|.*|#!/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ || die "mve.awk sed failed" =20 # Patch to build with ruby-1.8.0_pre5 and following - sed -i 's/defout/stdout/g' ${S}/src/if_ruby.c + sed -i 's/defout/stdout/g' "${S}"/src/if_ruby.c =20 # Read vimrc and gvimrc from /etc/vim - echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> ${S}/src/feature.h - echo '#define SYS_GVIMRC_FILE "/etc/vim/gvimrc"' >> ${S}/src/feature.h + echo '#define SYS_VIMRC_FILE "/etc/vim/vimrc"' >> "${S}"/src/feature.h + echo '#define SYS_GVIMRC_FILE "/etc/vim/gvimrc"' >> "${S}"/src/feature.= h =20 # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. # Hopefully this pattern won't break for a while at least. # This fixes bug 29398 (27 Sep 2003 agriffis) sed -i 's/\> "$c" ; done + find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done =20 # if we're vim-7 and USE vim-pager, make the manpager.sh script - if [[ "${MY_PN}" =3D=3D "vim" ]] && [[ $(get_major_version ) -ge 7 ]] \ + if [[ ${MY_PN} =3D=3D vim ]] && [[ $(get_major_version ) -ge 7 ]] \ && use vim-pager ; then - cat < ${S}/runtime/macros/manpager.sh + cat < "${S}"/runtime/macros/manpager.sh #!/bin/sh sed -e 's/\x1B\[[[:digit:]]\+m//g' | \\ tr '\\267' '.' | col -b | \\ @@ -313,10 +313,10 @@ fi =20 # Try to avoid sandbox problems. Bug #114475. - if [[ $(get_major_version ) -ge 7 ]] && [[ -d "${S}/src/po" ]] ; then + if [[ $(get_major_version ) -ge 7 ]] && [[ -d "${S}"/src/po ]] ; then sed -i -e \ '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ - "${S}/src/po/Makefile" + "${S}"/src/po/Makefile fi } =20 @@ -355,8 +355,8 @@ [[ -e ${file} ]] && addwrite $file done =20 - if [[ "${MY_PN}" =3D=3D "vim-core" ]] || - ( [[ "${MY_PN}" =3D=3D "vim" ]] && use minimal ); then + if [[ ${MY_PN} =3D=3D "vim-core" ]] || + ( [[ ${MY_PN} =3D=3D vim ]] && use minimal ); then myconf=3D"--with-features=3Dtiny \ --enable-gui=3Dno \ --without-x \ @@ -366,7 +366,7 @@ --disable-gpm" =20 else - if ! version_is_at_least "6.3.086" ; then + if ! version_is_at_least 6.3.086 ; then use debug && append-flags "-DDEBUG" fi =20 @@ -383,7 +383,7 @@ if [[ $(get_major_version ) -ge 7 ]] ; then # mzscheme support is currently broken. bug #91970 #myconf=3D"${myconf} `use_enable mzscheme mzschemeinterp`" - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then myconf=3D"${myconf} `use_enable netbeans`" fi fi @@ -395,12 +395,12 @@ die "couldn't disable cscope" fi =20 - if [[ "${MY_PN}" =3D=3D "vim" ]] ; then + if [[ ${MY_PN} =3D=3D vim ]] ; then # don't test USE=3DX here ... see bug #19115 # but need to provide a way to link against X ... see bug #20093 myconf=3D"${myconf} --enable-gui=3Dno `use_with vim-with-x x`" =20 - elif [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + elif [[ ${MY_PN} =3D=3D gvim ]] ; then myconf=3D"${myconf} --with-vim-name=3Dgvim --with-x" =20 echo ; echo @@ -408,7 +408,7 @@ einfo "Building gvim with the Carbon GUI" myconf=3D"${myconf} --enable-gui=3Dcarbon" elif use gtk ; then - if version_is_at_least "6.3.086" ; then + if version_is_at_least 6.3.086 ; then myconf=3D"${myconf} --enable-gtk2-check" if use gnome ; then einfo "Building gvim with the Gnome 2 GUI" @@ -454,7 +454,7 @@ fi fi =20 - if [[ "${MY_PN}" =3D=3D "vim" ]] && use minimal ; then + if [[ ${MY_PN} =3D=3D vim ]] && use minimal ; then myconf=3D"${myconf} --disable-nls --disable-multibyte --disable-acl" else myconf=3D"${myconf} `use_enable nls` `use_enable acl`" @@ -464,7 +464,7 @@ # for the reasons behind the USE flag change. myconf=3D"${myconf} --with-tlib=3Dcurses" =20 - if version_is_at_least "6.4_beta" ; then + if version_is_at_least 6.4_beta ; then myconf=3D"${myconf} --disable-selinux" else use selinux \ @@ -472,7 +472,7 @@ fi =20 # Let Portage do the stripping. Some people like that. - if version_is_at_least "7.0_beta" ; then + if version_is_at_least 7.0_beta ; then export ac_cv_prog_STRIP=3D"$(type -P true ) faking strip" fi =20 @@ -482,7 +482,7 @@ # The following allows emake to be used make -j1 -C src auto/osdef.h objects || die "make failed" =20 - if [[ "${MY_PN}" =3D=3D "vim-core" ]] ; then + if [[ ${MY_PN} =3D=3D "vim-core" ]] ; then emake tools || die "emake tools failed" rm -f src/vim else @@ -498,7 +498,7 @@ } =20 vim_src_install() { - if [[ "${MY_PN}" =3D=3D "vim-core" ]] ; then + if [[ ${MY_PN} =3D=3D "vim-core" ]] ; then dodir /usr/{bin,share/{man/man1,vim}} cd src || die "cd src failed" if [[ $(get_major_version ) -ge 7 ]] ; then @@ -525,7 +525,7 @@ installtools \ install-languages \ install-icons \ - DESTDIR=3D${D} \ + DESTDIR=3D"${D}" \ BINDIR=3D/usr/bin \ MANDIR=3D/usr/share/man \ DATADIR=3D/usr/share \ @@ -537,7 +537,7 @@ # default vimrc is installed by vim-core since it applies to # both vim and gvim insinto /etc/vim/ - newins ${FILESDIR}/vimrc${VIMRC_FILE_SUFFIX} vimrc + newins "${FILESDIR}"/vimrc${VIMRC_FILE_SUFFIX} vimrc =20 if use livecd ; then # To save space, install only a subset of the files if we're on a @@ -548,7 +548,7 @@ shopt -s extglob rm -fr ${vimfiles}/{compiler,doc,ftplugin,indent} rm -fr ${vimfiles}/{macros,print,tools,tutor} - rm ${D}/usr/bin/vimtutor + rm "${D}"/usr/bin/vimtutor =20 local keep_colors=3D"default" ignore=3D$(rm -fr ${vimfiles}/colors/!(${keep_colors}).vim ) @@ -562,15 +562,15 @@ # These files might have slight security issues, so we won't # install them. See bug #77841. We don't mind if these don't # exist. - rm ${D}/usr/share/vim/vim${VIM_VERSION/.}/tools/{vimspell.sh,tcltags} + rm "${D}"/usr/share/vim/vim${VIM_VERSION/.}/tools/{vimspell.sh,tcltags= } =20 - elif [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + elif [[ ${MY_PN} =3D=3D gvim ]] ; then dobin src/gvim dosym gvim /usr/bin/gvimdiff dosym gvim /usr/bin/evim dosym gvim /usr/bin/eview # bug #74349 says we should install these - if version_is_at_least "6.3-r4" ; then + if version_is_at_least 6.3-r4 ; then dosym gvim /usr/bin/gview dosym gvim /usr/bin/rgvim dosym gvim /usr/bin/rgview @@ -583,28 +583,28 @@ fi =20 insinto /etc/vim - newins ${FILESDIR}/gvimrc${GVIMRC_FILE_SUFFIX} gvimrc + newins "${FILESDIR}"/gvimrc${GVIMRC_FILE_SUFFIX} gvimrc =20 # as of 6.3-r1, we install a desktop entry. bug #44633, and bug #68622 # for the nicer updated version. insinto /usr/share/applications - newins ${FILESDIR}/gvim.desktop${GVIM_DESKTOP_SUFFIX} gvim.desktop + newins "${FILESDIR}"/gvim.desktop${GVIM_DESKTOP_SUFFIX} gvim.desktop insinto /usr/share/pixmaps - doins ${FILESDIR}/gvim.xpm + doins "${FILESDIR}"/gvim.xpm =20 else dobin src/vim - ln -s vim ${D}/usr/bin/vimdiff && \ - ln -s vim ${D}/usr/bin/rvim && \ - ln -s vim ${D}/usr/bin/ex && \ - ln -s vim ${D}/usr/bin/view && \ - ln -s vim ${D}/usr/bin/rview \ + ln -s vim "${D}"/usr/bin/vimdiff && \ + ln -s vim "${D}"/usr/bin/rvim && \ + ln -s vim "${D}"/usr/bin/ex && \ + ln -s vim "${D}"/usr/bin/view && \ + ln -s vim "${D}"/usr/bin/rview \ || die "/usr/bin symlinks failed" if [[ $(get_major_version ) -ge 7 ]] && use vim-pager ; then ln -s /usr/share/vim/vim${VIM_VERSION//./}/macros/less.sh \ - ${D}/usr/bin/vimpager + "${D}"/usr/bin/vimpager ln -s /usr/share/vim/vim${VIM_VERSION//./}/macros/manpager.sh \ - ${D}/usr/bin/vimmanpager + "${D}"/usr/bin/vimmanpager insinto /usr/share/vim/vim${VIM_VERSION//./}/macros doins runtime/macros/manpager.sh fperms a+x /usr/share/vim/vim${VIM_VERSION//./}/macros/manpager.sh @@ -613,10 +613,10 @@ =20 # bash completion script, bug #79018. if version_is_at_least 6.3.1 ; then - if [[ "${MY_PN}" =3D=3D "vim-core" ]] ; then - dobashcompletion ${FILESDIR}/xxd-completion xxd + if [[ ${MY_PN} =3D=3D "vim-core" ]] ; then + dobashcompletion "${FILESDIR}"/xxd-completion xxd else - dobashcompletion ${FILESDIR}/${MY_PN}-completion ${MY_PN} + dobashcompletion "${FILESDIR}"/${MY_PN}-completion ${MY_PN} fi fi =20 @@ -645,21 +645,21 @@ fi =20 # Make or remove convenience symlink, vim -> gvim - if [[ -f ${ROOT}/usr/bin/gvim ]]; then - ln -s gvim ${ROOT}/usr/bin/vim 2>/dev/null - elif [[ -L ${ROOT}/usr/bin/vim && ! -f ${ROOT}/usr/bin/vim ]]; then - rm ${ROOT}/usr/bin/vim + if [[ -f "${ROOT}"/usr/bin/gvim ]]; then + ln -s gvim "${ROOT}"/usr/bin/vim 2>/dev/null + elif [[ -L "${ROOT}"/usr/bin/vim && ! -f "${ROOT}"/usr/bin/vim ]]; then + rm "${ROOT}"/usr/bin/vim fi =20 # Make or remove convenience symlinks to vim - if [[ -f ${ROOT}/usr/bin/vim ]]; then + if [[ -f "${ROOT}"/usr/bin/vim ]]; then for f in ${syms}; do - ln -s vim ${ROOT}/usr/bin/${f} 2>/dev/null + ln -s vim "${ROOT}"/usr/bin/${f} 2>/dev/null done else for f in ${syms}; do - if [[ -L ${ROOT}/usr/bin/${f} && ! -f ${ROOT}/usr/bin/${f} ]]; then - rm -f ${ROOT}/usr/bin/${f} + if [[ -L "${ROOT}"/usr/bin/${f} && ! -f "${ROOT}"/usr/bin/${f} ]]; th= en + rm -f "${ROOT}"/usr/bin/${f} fi done fi @@ -674,12 +674,12 @@ update_vim_helptags =20 # Update fdo mime stuff, bug #78394 - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then fdo-mime_mime_database_update fi =20 if [[ $(get_major_version ) -lt 7 ]] ; then - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then echo elog "To enable UTF-8 viewing, set guifont and guifontwide: " elog ":set guifont=3D-misc-fixed-medium-r-normal-*-18-120-100-100-c-9= 0-iso10646-1" @@ -690,12 +690,12 @@ elog elog "Then, set read encoding to UTF-8:" elog ":set encoding=3Dutf-8" - elif [[ "${MY_PN}" =3D=3D "vim" ]] ; then + elif [[ ${MY_PN} =3D=3D vim ]] ; then echo elog "gvim has now a seperate ebuild, 'emerge gvim' will install gvim= " fi else - if [[ "${MY_PN}" =3D=3D "vim" ]] ; then + if [[ ${MY_PN} =3D=3D vim ]] ; then echo elog "To install a GUI version of vim, use the app-editors/gvim" elog "package." @@ -711,7 +711,7 @@ ewarn "default." fi =20 - if [[ "${MY_PN}" !=3D "vim-core" ]] ; then + if [[ ${MY_PN} !=3D "vim-core" ]] ; then echo elog "To see what's new in this release, use :help version${VIM_VERSIO= N/.*/}.txt" fi @@ -751,14 +751,14 @@ update_vim_symlinks =20 # Update fdo mime stuff, bug #78394 - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then fdo-mime_mime_database_update fi } =20 vim_src_test() { =20 - if [[ "${MY_PN}" =3D=3D "vim-core" ]] ; then + if [[ ${MY_PN} =3D=3D "vim-core" ]] ; then einfo "No testing needs to be done for vim-core" return fi @@ -776,10 +776,10 @@ # Don't let vim talk to X unset DISPLAY =20 - if [[ "${MY_PN}" =3D=3D "gvim" ]] ; then + if [[ ${MY_PN} =3D=3D gvim ]] ; then # Make gvim not try to connect to X. See :help gui-x11-start # in vim for how this evil trickery works. - ln -s ${S}/src/gvim ${S}/src/testvim + ln -s "${S}"/src/gvim "${S}"/src/testvim testprog=3D"../testvim" else testprog=3D"../vim" @@ -787,7 +787,7 @@ =20 # We've got to call make test from within testdir, since the Makefiles # don't pass through our VIMPROG argument - cd ${S}/src/testdir + cd "${S}"/src/testdir =20 # Test 49 won't work inside a portage environment einfo "Test 49 isn't sandbox-friendly, so it will be skipped."