vim: added subpkg vim-huge

This commit is contained in:
Jan S 2014-03-11 15:53:24 +01:00
parent 2d9a7219b6
commit a8064b7b97
3 changed files with 200 additions and 2 deletions

View File

@ -0,0 +1,43 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=gVim
Name[eo]=VIM-fasado
Name[sv]=gVim
Name[xx]=xx
Comment=GTK2 enhanced vim text editor
Comment[ar]=محرر نصوص
Comment[bg]=Текст Редактор
Comment[de]=Texteditor
Comment[el]=Διορθωτής Κειμένου
Comment[eo]=Tekstredaktilo
Comment[es]=Editor de textos
Comment[et]=Tekstiredaktor
Comment[eu]=Testu Editorea
Comment[fi]=Tekstieditori
Comment[he]=עורך טקסט
Comment[is]=Textaritill
Comment[ja]=
Comment[lt]=Teksto redaktorius
Comment[mt]=Editur tat-test
Comment[pt_BR]=Editor de Texto
Comment[ro]=Editor de text
Comment[ru]=редактор
Comment[sk]=Textový editor
Comment[sl]=Urejevalnik besedil
Comment[ta]=¯¨Ã ¦¾¡ÌôÀ¡Ç÷
Comment[tr]=Metin Düzenleyici
Comment[uk]=Редактор текстів
Comment[vi]=Trình son văn bn
Comment[xx]=xx
Comment[zh_CN]=
Comment[zh_TW]=
GenericName=Text Editor
Type=Application
TryExec=gvim
Exec=gvim
Icon=gvim
Terminal=false
X-MultipleArgs=false
Categories=GTK;Application;Utility;TextEditor;
MimeType=application/mathml+xml;application/xhtml+xml;application/x-perl;application/x-python;application/x-shellscript;audio/x-mpegurl;audio/x-scpls;image/svg+xml;message/news;message/rfc822;text/calendar;text/css;text/english;text/html;text/mrml;text/plain;text/rdf;text/rss;text/rtf;text/sgml;text/vnd.wap.wml;text/x-adasrc;text/x-bibtex;text/x-chdr;text/x-c++hdr;text/x-csrc;text/x-c++src;text/x-c;text/x-objc;text/x-csv;text/x-diff;text/x-java;text/x-katefilelist;text/x-latex;text/x-log;text/x-lyx;text/x-makefile;text/xmcd;text/xml;text/x-moc;text/x-mswinurl;text/x-objcsrc;text/x-pascal;text/x-perl;text/x-php;text/x-php-source;text/x-python;text/x-tcl;text/x-tex;text/x-vcalendar;text/x-vcard;text/x-xslfo;text/x-xslt;

134
srcpkgs/vim-huge/template Normal file
View File

@ -0,0 +1,134 @@
# Template file for 'vim'
pkgname=vim
_distver=7.4
_patchver=169
version=${_distver}.${_patchver}
revision=2
hostmakedepends="mercurial pkg-config"
makedepends="
ncurses-devel acl-devel libXt-devel gtk+-devel desktop-file-utils hicolor-icon-theme ruby-devel python-devel lua-devel perl"
depends="vim-common>=$version"
short_desc="Vim editor (vi clone)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.vim.org"
license="GPL-2"
do_fetch() {
local url="http://code.google.com/p/vim/"
hg clone -u v${_distver/./-}-${_patchver} ${url} ${pkgname}-${version}
}
pre_configure() {
mkdir -p /tmp/vim-x11
cp -a $wrksrc/* /tmp/vim-x11
mv /tmp/vim-x11 $wrksrc/
mkdir -p /tmp/gvim
cp -a $wrksrc/* /tmp/gvim
mv /tmp/gvim $wrksrc/gvim
mkdir -p /tmp/vim-huge
cp -a $wrksrc/* /tmp/vim-huge
mv /tmp/vim-huge $wrksrc/vim-huge
}
do_configure() {
configure_args+=" --disable-perlinterp --disable-pythoninterp
--disable-rubyinterp --disable-cscope --disable-workshop
--disable-netbeans --disable-sniff --disable-gpm
--disable-hangulinput --disable-xim --enable-multibyte
--with-tlib=ncursesw --with-ex-name=vim-ex
--with-view-name=vim-view "
if [ "$CROSS_BUILD" ]; then
configure_args+=" vim_cv_toupper_broken=no vim_cv_terminfo=yes
vim_cv_tty_group=world vim_cv_getcwd_broken=no
vim_cv_stat_ignores_slash=yes
vim_cv_memmove_handles_overlap=yes
ac_cv_small_wchar_t=no"
fi
# Normal version.
cd $wrksrc
./configure ${configure_args} --enable-gui=no --with-x=no
# X11 version.
cd $wrksrc/vim-x11
./configure ${configure_args} --enable-gui=no --with-x
# GTK+ version.
cd $wrksrc/gvim
./configure ${configure_args} --enable-gui=gtk2 --with-x --with-vim-name=gvim
# Huge version.
cd $wrksrc/vim-huge
./configure --with-features=huge --with-x=no --enable-gui=no
}
do_build() {
cd $wrksrc
make ${makejobs}
for f in vim-x11 gvim; do
cd $wrksrc/$f
make ${makejobs}
done
}
do_install() {
make DESTDIR=$DESTDIR install
# Create vim-ex symlink.
cd ${DESTDIR}/usr/bin
ln -sf vim vim-ex
rm -f ${DESTDIR}/usr/bin/{ex,view}
find ${DESTDIR}/usr/share/man -type f -name evim.1 -delete
}
vim-common_package() {
short_desc+=" - common files"
noarch=yes
replaces="vim<=7.2_2"
pkg_install() {
vmove usr/share/vim
}
}
vim-x11_package() {
depends="vim-common-${version}_${revision}"
provides="vim-${version}_${revision}"
replaces="vim>=0"
short_desc+=" - X11 version"
pkg_install() {
cd $wrksrc/vim-x11
make DESTDIR=$PKGDESTDIR install
rm -f $PKGDESTDIR/usr/bin/{ex,view}
rm -rf $PKGDESTDIR/usr/share
}
}
gvim_package() {
depends="vim-common-${version}_${revision} desktop-file-utils hicolor-icon-theme"
short_desc+=" - GTK+ GUI"
pkg_install() {
cd $wrksrc/gvim
sed -i "s|/locolor|/hicolor|g" src/Makefile
for d in 16 32 48; do
install -d ${PKGDESTDIR}/usr/share/icons/hicolor/${d}x${d}/apps
done
make -C src DESTDIR=${PKGDESTDIR} installvimbin install-icons
vinstall ${FILESDIR}/gvim.desktop 644 usr/share/applications
}
}
vim-huge_package() {
depends="vim-common-${version}_${revision}"
short_desc+=" - Huge (all features enabled)"
provides="vim-${version}_${revision}"
replaces="vim>=0"
pkg_install() {
cd $wrksrc/vim-huge
make DESTDIR=$PKGDESTDIR install
rm -f $PKGDESTDIR/usr/bin/{ex,view}
rm -rf $PKGDESTDIR/usr/share
}
}

View File

@ -3,9 +3,10 @@ pkgname=vim
_distver=7.4
_patchver=169
version=${_distver}.${_patchver}
revision=1
revision=2
hostmakedepends="mercurial pkg-config"
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel desktop-file-utils hicolor-icon-theme"
makedepends="
ncurses-devel acl-devel libXt-devel gtk+-devel desktop-file-utils hicolor-icon-theme ruby-devel python-devel lua-devel perl"
depends="vim-common>=$version"
short_desc="Vim editor (vi clone)"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -24,6 +25,9 @@ pre_configure() {
mkdir -p /tmp/gvim
cp -a $wrksrc/* /tmp/gvim
mv /tmp/gvim $wrksrc/gvim
mkdir -p /tmp/vim-huge
cp -a $wrksrc/* /tmp/vim-huge
mv /tmp/vim-huge $wrksrc/vim-huge
}
do_configure() {
@ -53,6 +57,10 @@ do_configure() {
# GTK+ version.
cd $wrksrc/gvim
./configure ${configure_args} --enable-gui=gtk2 --with-x --with-vim-name=gvim
# Huge version.
cd $wrksrc/vim-huge
./configure --with-features=huge --with-x=no --enable-gui=no
}
do_build() {
@ -111,3 +119,16 @@ gvim_package() {
vinstall ${FILESDIR}/gvim.desktop 644 usr/share/applications
}
}
vim-huge_package() {
depends="vim-common-${version}_${revision}"
short_desc+=" - Huge (all features enabled)"
provides="vim-${version}_${revision}"
replaces="vim>=0"
pkg_install() {
cd $wrksrc/vim-huge
make DESTDIR=$PKGDESTDIR install
rm -f $PKGDESTDIR/usr/bin/{ex,view}
rm -rf $PKGDESTDIR/usr/share
}
}