Merge pull request #1688 from christer/master
New package: vim-huge-python3
This commit is contained in:
commit
7636258d64
|
@ -0,0 +1 @@
|
|||
vim
|
|
@ -3,10 +3,10 @@ pkgname=vim
|
|||
_distver=7.4
|
||||
_patchver=729
|
||||
version=${_distver}.${_patchver}
|
||||
revision=2
|
||||
revision=3
|
||||
hostmakedepends="mercurial pkg-config"
|
||||
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel perl
|
||||
ruby-devel python-devel lua-devel"
|
||||
ruby-devel python-devel python3.4-devel lua-devel"
|
||||
depends="vim-common>=$version"
|
||||
short_desc="Vim editor (vi clone)"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -16,7 +16,7 @@ license="GPL-2"
|
|||
subpackages="vim-common vim-x11 gvim"
|
||||
# XXX vim-huge cannot be cross compiled for now.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
subpackages+=" vim-huge"
|
||||
subpackages+=" vim-huge vim-huge-python3"
|
||||
fi
|
||||
|
||||
do_fetch() {
|
||||
|
@ -63,12 +63,17 @@ do_configure() {
|
|||
cd $wrksrc/gvim
|
||||
./configure ${configure_args} ${args} ${nohuge_args} --enable-gui=gtk2 --with-x --with-vim-name=gvim
|
||||
|
||||
# Huge version.
|
||||
# Huge versions
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
cd $wrksrc/vim-huge
|
||||
./configure ${configure_args} ${args} --with-x=no --enable-gui=no \
|
||||
--with-features=huge --enable-perlinterp --enable-pythoninterp \
|
||||
--enable-rubyinterp --enable-luainterp
|
||||
|
||||
cd $wrksrc/vim-huge-python3
|
||||
./configure ${configure_args} ${args} --with-x=no --enable-gui=no \
|
||||
--with-features=huge --enable-perlinterp --disable-pythoninterp --enable-python3interp \
|
||||
--enable-rubyinterp --enable-luainterp
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -129,7 +134,7 @@ gvim_package() {
|
|||
}
|
||||
vim-huge_package() {
|
||||
depends="python vim-common-${version}_${revision}"
|
||||
short_desc+=" - Huge (all features enabled)"
|
||||
short_desc+=" - Huge (all features enabled, using Python 2)"
|
||||
provides="vim-${version}_${revision}"
|
||||
replaces="vim>=0"
|
||||
pkg_install() {
|
||||
|
@ -139,3 +144,15 @@ vim-huge_package() {
|
|||
rm -rf $PKGDESTDIR/usr/share/vim
|
||||
}
|
||||
}
|
||||
vim-huge-python3_package() {
|
||||
depends="python3.4 vim-common-${version}_${revision}"
|
||||
short_desc+=" - Huge (all features enabled, using Python 3)"
|
||||
provides="vim-${version}_${revision}"
|
||||
replaces="vim>=0"
|
||||
pkg_install() {
|
||||
cd $wrksrc/vim-huge-python3
|
||||
make DESTDIR=$PKGDESTDIR install
|
||||
rm -f $PKGDESTDIR/usr/bin/{ex,view}
|
||||
rm -rf $PKGDESTDIR/usr/share/vim
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue