holgersson-overlay/app-vim/vimwiki/vimwiki-2.5.ebuild
Nils Freydank 36ccd130ab
app-vim/vimwiki: Add new package version 2.5
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B
Signed-off-by: Nils Freydank <holgersson@posteo.de>
2021-02-26 21:32:04 +01:00

52 lines
1.1 KiB
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit vim-plugin
DESCRIPTION="vim plugin: Personal Wiki"
HOMEPAGE="https://github.com/vimwiki/vimwiki"
LICENSE="MIT"
IUSE="test"
RESTRICT="!test? ( test )"
if [[ ${PV} == *9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/vimwiki/vimwiki.git"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DOCS=(
CONTRIBUTING.md
DesignNotes.md
README.md
README-cn.md
)
src_prepare() {
default
if ! use test; then
rm -rf test || die
rm -f Dockerfile || die
fi
# We store the appropriate license information inside the portage tree.
rm -rf LICENSE.md || die
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
# ^this is a new installation, so:
elog ""
elog "Please ensure that you have set the following in your vimrc:"
elog "set nocompatible"
elog "set filetype plugin on"
elog "syntax on"
elog "For details see https://github.com/vimwiki/vimwiki#prerequisites"
fi
}