Skip to content

Instantly share code, notes, and snippets.

@tomoasleep
Created December 21, 2013 14:14
Show Gist options
  • Save tomoasleep/8069837 to your computer and use it in GitHub Desktop.
Save tomoasleep/8069837 to your computer and use it in GitHub Desktop.
AURのgvim-pythonに補完候補を自動挿入しないパッチを当てるよう追加してみた。
# $Id$
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Maintainer: tobias [ tobias at archlinux org ]
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=gvim-python
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI) (Compiled with Python 3).'
_topver=7.4
_patchlevel=86
_versiondir="vim${_topver//./}"
pkgver=${_topver}.${_patchlevel}
pkgrel=1
arch=('i686' 'x86_64')
license=('custom:vim')
url="http://www.vim.org"
depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'ruby' 'libxt'
'desktop-file-utils' 'gtk2' 'lua' 'python')
provides=("vim=${pkgver}-${pkgrel}" "gvim=${pkgver}-${pkgrel}")
conflicts=('vim' 'gvim')
install=gvim.install
source=("ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz"
"ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz.sig"
'https://gist.github.com/Shougo/5654189/raw'
'vimrc'
'archlinux.vim'
'gvim.desktop')
md5sums=('436d4d3c6402ce20309bf2cdedce63c0'
'SKIP'
'75b87a9f132aac99523fb2c31b4571a0'
'b9d4dcb9d3ee2e151dc4be1e94934f6a'
'10353a61aadc3f276692d0e17db1478e'
'd90413bd21f400313a785bb4010120cd')
build() {
cp -a "${srcdir}/vim-${pkgver}" gvim-build
mv "${srcdir}"/raw "${srcdir}"/comp.patch
cd "${srcdir}"/gvim-build
patch -u -p1 < "${srcdir}"/comp.patch
./configure \
--prefix=/usr \
--localstatedir=/var/lib/vim \
--with-features=huge \
--with-compiledby='Arch Linux' \
--enable-gpm \
--enable-acl \
--with-x=yes \
--enable-gui=gtk2 \
--enable-multibyte \
--enable-cscope \
--enable-netbeans \
--enable-perlinterp \
--disable-pythoninterp \
--enable-python3interp \
--enable-rubyinterp \
--enable-luainterp
make
}
check() {
# disable tests because they seem to freeze
cd "${srcdir}"/gvim-build
#make test
}
package() {
cd "${srcdir}"/gvim-build
make -j1 VIMRCLOC=/etc DESTDIR="${pkgdir}" install
# provided by (n)vi in core
rm "${pkgdir}"/usr/bin/{ex,view}
# delete some manpages
find "${pkgdir}"/usr/share/man -type d -name 'man1' 2>/dev/null | \
while read _mandir; do
cd ${_mandir}
rm -f ex.1 view.1 # provided by (n)vi
done
# remove run-time
rm -r "${pkgdir}"/usr/share/vim
# freedesktop links
install -Dm644 "${srcdir}"/gvim.desktop \
"${pkgdir}"/usr/share/applications/gvim.desktop
install -Dm644 runtime/vim48x48.png "${pkgdir}"/usr/share/pixmaps/gvim.png
# license
install -Dm644 "${srcdir}"/vim-${pkgver}/runtime/doc/uganda.txt \
"${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
}
# vim:set sw=2 sts=2 et:
--- PKGBUILD.original 2013-12-21 23:02:42.680266273 +0900
+++ PKGBUILD 2013-12-21 23:13:43.733612926 +0900
@@ -20,18 +20,24 @@
install=gvim.install
source=("ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz"
"ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz.sig"
+ 'https://gist.github.com/Shougo/5654189/raw'
'vimrc'
'archlinux.vim'
'gvim.desktop')
md5sums=('436d4d3c6402ce20309bf2cdedce63c0'
'SKIP'
+ '75b87a9f132aac99523fb2c31b4571a0'
'b9d4dcb9d3ee2e151dc4be1e94934f6a'
'10353a61aadc3f276692d0e17db1478e'
'd90413bd21f400313a785bb4010120cd')
build() {
cp -a "${srcdir}/vim-${pkgver}" gvim-build
+
+ mv "${srcdir}"/raw "${srcdir}"/comp.patch
+
cd "${srcdir}"/gvim-build
+ patch -u -p1 < "${srcdir}"/comp.patch
./configure \
--prefix=/usr \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment