holgersson-overlay/app-vim/vim-obsession/vim-obsession-1.0_p20220405-r1.ebuild

33 lines
844 B
Bash
Raw Normal View History

# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit vim-plugin
COMMIT_ID="7d39576149d17bde3c096fd57e3a2cdae65deaf5"
DESCRIPTION="vim plugin: mksession automation tool"
HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=4472 https://github.com/tpope/vim-obsession"
LICENSE="vim"
IUSE="test"
RESTRICT="!test? ( test )"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/tpope/vim-obsession.git"
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/tpope/vim-obsession/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/vim-obsession-${COMMIT_ID}"
else
SRC_URI="https://github.com/tpope/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
fi
KEYWORDS="~amd64 ~x86"
DOCS=(
README.markdown
CONTRIBUTING.markdown
)