2010-01-21 02:36:01 +00:00
|
|
|
# Build template file for 'gvim'.
|
|
|
|
#
|
|
|
|
# Source vim template and overwrite some vars, it's stupid
|
|
|
|
# to duplicate all this stuff again!
|
|
|
|
#
|
|
|
|
. ${XBPS_SRCPKGDIR}/vim/template
|
2010-05-17 19:47:55 +00:00
|
|
|
unset subpackages
|
2010-01-21 02:36:01 +00:00
|
|
|
|
|
|
|
pkgname=gvim
|
|
|
|
configure_args="${configure_args} --enable-gui=gtk2 --with-x
|
|
|
|
--with-vim-name=gvim"
|
|
|
|
make_install_target="-C src
|
2010-05-17 19:47:55 +00:00
|
|
|
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} installvimbin install-icons"
|
2010-01-21 02:36:01 +00:00
|
|
|
short_desc="${short_desc} (GTK+ GUI)"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This packages contains gvim, the GTK+ GUI version of vim."
|
|
|
|
|
2010-05-17 19:47:55 +00:00
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
2010-01-21 02:36:01 +00:00
|
|
|
|
|
|
|
Add_dependency run atk
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run pango
|
|
|
|
Add_dependency run cairo
|
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run libXt
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run libSM
|
|
|
|
Add_dependency run libICE
|
2010-05-17 19:47:55 +00:00
|
|
|
|
2010-01-21 02:36:01 +00:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build atk-devel
|
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build pango-devel
|
|
|
|
Add_dependency build cairo-devel
|
|
|
|
Add_dependency build freetype-devel
|
|
|
|
Add_dependency build fontconfig-devel
|
|
|
|
Add_dependency build gtk+-devel
|
|
|
|
Add_dependency build libXt-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libSM-devel
|
|
|
|
Add_dependency build libICE-devel
|
2010-05-17 19:47:55 +00:00
|
|
|
|
|
|
|
Add_dependency full desktop-file-utils
|
|
|
|
Add_dependency full hicolor-icon-theme
|
|
|
|
|
|
|
|
pre_install()
|
|
|
|
{
|
|
|
|
sed -i "s|/locolor|/hicolor|g" ${wrksrc}/src/Makefile || return 1
|
|
|
|
for d in 16 32 48; do
|
|
|
|
install -d ${DESTDIR}/usr/share/icons/hicolor/${d}x${d}/apps
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
install -D -m644 ${FILESDIR}/gvim.desktop \
|
|
|
|
${DESTDIR}/usr/share/applications/gvim.desktop
|
|
|
|
}
|