Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: app-editors/vim-qt/
Date: Wed, 04 Jul 2012 11:42:38
Message-Id: 1341402127.bf221c0261b3c86a2598078551e8117f95f94fae.johu@gentoo
1 commit: bf221c0261b3c86a2598078551e8117f95f94fae
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 11:42:07 2012 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 4 11:42:07 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=bf221c02
7
8 [app-editors/vim-qt] Initial import. Ebuild by Elijah El Lazkani <ThyArmageddon+GentooOverlay <AT> Gmail.com>.
9
10 (Portage version: 2.2.0_alpha115/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 app-editors/vim-qt/metadata.xml | 10 +++++
14 app-editors/vim-qt/vim-qt-9999.ebuild | 59 +++++++++++++++++++++++++++++++++
15 2 files changed, 69 insertions(+), 0 deletions(-)
16
17 diff --git a/app-editors/vim-qt/metadata.xml b/app-editors/vim-qt/metadata.xml
18 new file mode 100644
19 index 0000000..be850cb
20 --- /dev/null
21 +++ b/app-editors/vim-qt/metadata.xml
22 @@ -0,0 +1,10 @@
23 +<?xml version="1.0" encoding="UTF-8"?>
24 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
25 +<pkgmetadata>
26 + <herd>qt</herd>
27 + <maintainer>
28 + <email>ThyArmageddon+Gentoo@×××××.com</email>
29 + <name>Elijah El Lazkani</name>
30 + </maintainer>
31 + <longdescription lang="en">The well known vim editor with a Qt based front-end interface</longdescription>
32 +</pkgmetadata>
33
34 diff --git a/app-editors/vim-qt/vim-qt-9999.ebuild b/app-editors/vim-qt/vim-qt-9999.ebuild
35 new file mode 100644
36 index 0000000..8026f03
37 --- /dev/null
38 +++ b/app-editors/vim-qt/vim-qt-9999.ebuild
39 @@ -0,0 +1,59 @@
40 +# Copyright 1999-2012 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=4
45 +
46 +inherit eutils toolchain-funcs flag-o-matic git-2
47 +
48 +DESCRIPTION="Qt GUI version of the Vim text editor"
49 +HOMEPAGE="https://bitbucket.org/equalsraf/vim-qt/overview"
50 +EGIT_REPO_URI="git://gitorious.org/${PN}/${PN}.git
51 + https://gitorious.org/${PN}/${PN}.git"
52 +
53 +LICENSE="vim"
54 +SLOT="0"
55 +KEYWORDS=""
56 +IUSE="acl cscope debug gpm nls perl python ruby"
57 +
58 +COMMON_DEPEND="
59 + app-admin/eselect-vi
60 + =app-editors/vim-core-7.3.487
61 + sys-libs/ncurses
62 + >=x11-libs/qt-core-4.7.0:4
63 + >=x11-libs/qt-gui-4.7.0:4
64 + acl? ( kernel_linux? ( sys-apps/acl ) )
65 + cscope? ( dev-util/cscope )
66 + gpm? ( sys-libs/gpm )
67 + nls? ( virtual/libintl )
68 + perl? ( dev-lang/perl )
69 + ruby? ( dev-lang/ruby:1.8 )"
70 +DEPEND="${COMMON_DEPEND}
71 + sys-devel/autoconf"
72 +RDEPEND="${COMMON_DEPEND}"
73 +
74 +src_configure() {
75 + use debug && append-flags "-DDEBUG"
76 +
77 + local myconf="--with-features=huge
78 + --enable-multibyte"
79 + myconf+=" $(use_enable acl)"
80 + myconf+=" $(use_enable gpm)"
81 + myconf+=" $(use_enable nls)"
82 + myconf+=" $(use_enable perl perlinterp)"
83 + myconf+=" $(use_enable python pythoninterp)"
84 + myconf+=" $(use_enable ruby rubyinterp)"
85 + myconf+=" --enable-gui=qt --with-vim-name=qvim --with-x"
86 +
87 + if ! use cscope ; then
88 + sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || \
89 + die "couldn't disable cscope"
90 + fi
91 + econf ${myconf}
92 +}
93 +
94 +src_install() {
95 + dobin src/qvim
96 + doicon -s 64 src/qt/icons/vim-qt.png
97 + make_desktop_entry qvim Vim-qt vim-qt "QT;TextEditor;Development;"
98 +}