holgersson-overlay/app-vim/neoformat/neoformat-0.4.0_p20221206.ebuild
Nils Freydank 6dfa3b4dfc
app-vim/neoformat: Bump to 0.4.0_p20221206
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2022-12-08 22:57:56 +01:00

36 lines
803 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit vim-plugin
COMMIT_ID="902f674b9e8a703fad9dafdda9d8f7c88ecf689f"
DESCRIPTION="vim plugin: in-buffer formatter runner"
HOMEPAGE="https://github.com/sbdchd/neoformat"
if [[ ${PV} == *9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/sbdchd/neoformat.git"
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/sbdchd/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
else
SRC_URI="https://github.com/sbdchd/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
fi
LICENSE="BSD-2"
IUSE="test"
RESTRICT="!test? ( test )"
KEYWORDS="~amd64 ~x86"
DOCS=( README.md )
src_compile() {
# The Makefile runs only tests.
:;
}