blob: 840a3125767ed0042026c393ebb7f7da4f5985a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# 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-20130220-r1.ebuild,v 1.1 2013/10/16 12:20:28 mgorny 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 nls perl python ruby"
RDEPEND="app-admin/eselect-vi
>=app-editors/vim-core-7.3.762[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 )
nls? ( virtual/libintl )
perl? ( dev-lang/perl )
python? ( ${PYTHON_DEPS} )
ruby? ( || ( dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )"
DEPEND="${RDEPEND}"
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 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
}
|