You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/vim-qt/vim-qt-20131004.ebuild

89 lines
2.4 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-qt/vim-qt-20131004.ebuild,v 1.1 2013/10/25 16:34:26 yngwin Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
PYTHON_REQ_USE="threads"
inherit eutils fdo-mime flag-o-matic python-single-r1
DESCRIPTION="Qt GUI version of the Vim text editor"
HOMEPAGE="https://bitbucket.org/equalsraf/vim-qt/wiki/Home"
if [[ ${PV} == *9999* ]]; then
inherit git-2
EGIT_REPO_URI="https://bitbucket.org/equalsraf/${PN}.git
git://github.com/equalsraf/${PN}.git
git://gitorious.org/${PN}/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/equalsraf/${PN}/archive/package-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-package-${PV}"
fi
LICENSE="vim"
SLOT="0"
IUSE="acl cscope debug gpm lua luajit nls perl python ruby"
RDEPEND="app-admin/eselect-vi
>=app-editors/vim-core-7.4.22[acl?]
sys-libs/ncurses
>=dev-qt/qtcore-4.7.0:4
>=dev-qt/qtgui-4.7.0:4
acl? ( kernel_linux? ( sys-apps/acl ) )
cscope? ( dev-util/cscope )
gpm? ( sys-libs/gpm )
lua? ( luajit? ( dev-lang/luajit )
!luajit? ( dev-lang/lua ) )
nls? ( virtual/libintl )
perl? ( dev-lang/perl )
python? ( ${PYTHON_DEPS} )
ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 ) )"
DEPEND="${RDEPEND}
dev-util/ctags
sys-devel/autoconf
virtual/pkgconfig
nls? ( sys-devel/gettext )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
pkg_setup() {
export LC_COLLATE="C" # prevent locale brokenness bug #82186
use python && python-single-r1_pkg_setup
}
src_configure() {
use debug && append-flags "-DDEBUG"
local myconf="--with-features=huge --enable-multibyte"
myconf+=" $(use_enable acl)"
myconf+=" $(use_enable gpm)"
myconf+=" $(use_enable nls)"
myconf+=" $(use_enable lua luainterp)"
myconf+=" $(use_with luajit)"
myconf+=" $(use_enable perl perlinterp)"
myconf+=" $(use_enable python pythoninterp)"
myconf+=" $(use_enable ruby rubyinterp)"
myconf+=" --enable-gui=qt --with-vim-name=qvim --with-x"
if ! use cscope ; then
sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || die 'sed failed'
fi
econf ${myconf}
}
src_install() {
dobin src/qvim
doicon -s 64 src/qt/icons/vim-qt.png
make_desktop_entry qvim Vim-qt vim-qt "Qt;TextEditor;Development;"
}
pkg_postinst() {
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_mime_database_update
}