New package: vim-huge-python3
vim-huge using python3 instead of 2.
This commit is contained in:
parent
4f6d321358
commit
f6e39382da
2 changed files with 22 additions and 4 deletions
1
srcpkgs/vim-huge-python3
Symbolic link
1
srcpkgs/vim-huge-python3
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
vim
|
|
@ -6,7 +6,7 @@ version=${_distver}.${_patchver}
|
||||||
revision=2
|
revision=2
|
||||||
hostmakedepends="mercurial pkg-config"
|
hostmakedepends="mercurial pkg-config"
|
||||||
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel perl
|
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"
|
depends="vim-common>=$version"
|
||||||
short_desc="Vim editor (vi clone)"
|
short_desc="Vim editor (vi clone)"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -16,7 +16,7 @@ license="GPL-2"
|
||||||
subpackages="vim-common vim-x11 gvim"
|
subpackages="vim-common vim-x11 gvim"
|
||||||
# XXX vim-huge cannot be cross compiled for now.
|
# XXX vim-huge cannot be cross compiled for now.
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages+=" vim-huge"
|
subpackages+=" vim-huge vim-huge-python3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
|
@ -63,12 +63,17 @@ do_configure() {
|
||||||
cd $wrksrc/gvim
|
cd $wrksrc/gvim
|
||||||
./configure ${configure_args} ${args} ${nohuge_args} --enable-gui=gtk2 --with-x --with-vim-name=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
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
cd $wrksrc/vim-huge
|
cd $wrksrc/vim-huge
|
||||||
./configure ${configure_args} ${args} --with-x=no --enable-gui=no \
|
./configure ${configure_args} ${args} --with-x=no --enable-gui=no \
|
||||||
--with-features=huge --enable-perlinterp --enable-pythoninterp \
|
--with-features=huge --enable-perlinterp --enable-pythoninterp \
|
||||||
--enable-rubyinterp --enable-luainterp
|
--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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,7 +134,7 @@ gvim_package() {
|
||||||
}
|
}
|
||||||
vim-huge_package() {
|
vim-huge_package() {
|
||||||
depends="python vim-common-${version}_${revision}"
|
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}"
|
provides="vim-${version}_${revision}"
|
||||||
replaces="vim>=0"
|
replaces="vim>=0"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -139,3 +144,15 @@ vim-huge_package() {
|
||||||
rm -rf $PKGDESTDIR/usr/share/vim
|
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 a new issue