Initial check-in, add vim-qt ebuild.
This commit is contained in:
commit
70f67fb121
2
app-editors/vim-qt/Manifest
Normal file
2
app-editors/vim-qt/Manifest
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
AUX vim-qt.desktop 189 SHA256 4a5d674a9015c114ee53db25b5a523c3393c909e3efcbc82953fd99737f95a6b SHA512 306540cffeda30908feb478aef0de16c378ccfff93c2be91319750342513c8b1f263ea65fa7e0468fc0d5ce5138b0256640d148eb235edb4948b0bd555c99ea0 WHIRLPOOL a626bc1ccd349316b50ac79ada2ae3eda75937b06662c4c9a940d52b806cd29fe5d5aa5ed071f6dd56ad68b2883f28cf505e8f064d7cae012ad278a0646f0a52
|
||||||
|
EBUILD vim-qt-99999999.ebuild 3326 SHA256 27c3f6d1cb78a5868ac2f24fad0f04edc004d8b02796835ad6bdc7c3394d5448 SHA512 7eaf3d077c40c1f735163d486eb35683e220a08d4d6b99d8ebc9ec2eb92878e4ba86f6a3fb4ed15fa7160eba58cb3d4363660c3eb22c432fdaae56f5670d04ac WHIRLPOOL f8681845778c376abe98ae2a84b5bb139c7b5dfbbca8d957b27ceb47320e2e5b02ab4f031ea30c6bade83ee3a5ccfc5e32d173351655f27e846ad5284c51200e
|
9
app-editors/vim-qt/files/vim-qt.desktop
Normal file
9
app-editors/vim-qt/files/vim-qt.desktop
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=vim-Qt
|
||||||
|
Comment=A highly configurable text editor
|
||||||
|
Exec=qvim -f %F
|
||||||
|
Icon=vim-qt
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
MimeType=text/plain;
|
||||||
|
Categories=Qt;TextEditor;Development;
|
126
app-editors/vim-qt/vim-qt-99999999.ebuild
Normal file
126
app-editors/vim-qt/vim-qt-99999999.ebuild
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||||
|
PYTHON_REQ_USE="threads"
|
||||||
|
|
||||||
|
inherit eutils fdo-mime flag-o-matic prefix 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-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/equalsraf/${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 lua luajit lto nls perl python racket ruby"
|
||||||
|
|
||||||
|
REQUIRED_USE="luajit? ( lua )
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-editors/vim-core-7.4.560[acl?]
|
||||||
|
>=app-eselect/eselect-vi-1.1.8
|
||||||
|
>=dev-qt/qtcore-4.7.0:4
|
||||||
|
>=dev-qt/qtgui-4.7.0:4
|
||||||
|
sys-libs/ncurses
|
||||||
|
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||||
|
cscope? ( dev-util/cscope )
|
||||||
|
lua? ( luajit? ( dev-lang/luajit )
|
||||||
|
!luajit? ( dev-lang/lua[deprecated] ) )
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
perl? ( dev-lang/perl:= )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
racket? ( dev-scheme/racket )
|
||||||
|
ruby? ( dev-lang/ruby:2.1 )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-util/ctags
|
||||||
|
sys-devel/autoconf
|
||||||
|
virtual/pkgconfig
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
export LC_COLLATE="C" # prevent locale brokenness
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Read vimrc from /etc/vim/
|
||||||
|
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use lto ; then
|
||||||
|
LDFLAGS_OLD="$LDFLAGS"
|
||||||
|
local LDFLAGS="${LDFLAGS} -fno-lto -fno-use-linker-plugin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
use debug && append-flags "-DDEBUG"
|
||||||
|
|
||||||
|
local myconf="--with-features=huge --disable-gpm --enable-multibyte"
|
||||||
|
myconf+=" $(use_enable acl)"
|
||||||
|
myconf+=" $(use_enable cscope)"
|
||||||
|
myconf+=" $(use_enable nls)"
|
||||||
|
myconf+=" $(use_enable lua luainterp)"
|
||||||
|
myconf+=" $(use_with luajit)"
|
||||||
|
myconf+=" $(use_enable perl perlinterp)"
|
||||||
|
myconf+=" $(use_enable racket mzschemeinterp)"
|
||||||
|
myconf+=" $(use_enable ruby rubyinterp)"
|
||||||
|
|
||||||
|
if ! use cscope ; then
|
||||||
|
sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || die 'sed failed'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# keep prefix env contained within the EPREFIX
|
||||||
|
use prefix && myconf+=" --without-local-dir"
|
||||||
|
|
||||||
|
if use python ; then
|
||||||
|
if [[ ${EPYTHON} == python3* ]] ; then
|
||||||
|
myconf+=" --enable-python3interp"
|
||||||
|
export vi_cv_path_python3="${PYTHON}"
|
||||||
|
else
|
||||||
|
myconf+=" --enable-pythoninterp"
|
||||||
|
export vi_cv_path_python="${PYTHON}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
myconf+=" --disable-pythoninterp --disable-python3interp"
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf ${myconf} --enable-gui=qt --with-vim-name=qvim --with-modified-by=Gentoo-${PVR}
|
||||||
|
|
||||||
|
if use lto ; then
|
||||||
|
LDFLAGS="${LDFLAGS_OLD}"
|
||||||
|
sed -i -e "s|-fno-lto -fno-use-linker-plugin||g" src/auto/config.mk
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin src/qvim
|
||||||
|
dosym qvim /usr/bin/qvimdiff
|
||||||
|
|
||||||
|
dodir /usr/share/man/man1
|
||||||
|
echo ".so vim.1" > "${ED}"/usr/share/man/man1/qvim.1
|
||||||
|
echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/qvimdiff.1
|
||||||
|
|
||||||
|
# track https://bitbucket.org/equalsraf/vim-qt/issue/93/include-desktop-file-in-source
|
||||||
|
# for inclusion of desktop file
|
||||||
|
newmenu "${FILESDIR}"/vim-qt.desktop vim-qt.desktop
|
||||||
|
doicon -s 64 src/qt/icons/vim-qt.png
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
fdo-mime_mime_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
fdo-mime_mime_database_update
|
||||||
|
}
|
2
metadata/layout.conf
Normal file
2
metadata/layout.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
masters = gentoo
|
||||||
|
repo-name = sjlongland
|
Loading…
Reference in New Issue
Block a user