2023-01-13 20:20:09 +01:00
|
|
|
# Copyright 2022-2023 Gentoo Authors
|
2022-09-20 09:46:55 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="8"
|
|
|
|
|
|
|
|
inherit vim-plugin
|
2023-06-24 19:52:54 +02:00
|
|
|
COMMIT_ID="1412d2016a772aef6aea818c840eb7803ade0312"
|
2022-09-20 09:46:55 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
:;
|
|
|
|
}
|