diff --git a/app-misc/vimcat/Manifest b/app-misc/vimcat/Manifest new file mode 100644 index 0000000..8828635 --- /dev/null +++ b/app-misc/vimcat/Manifest @@ -0,0 +1 @@ +DIST vimcat-1.0.0.tar.gz 21252 BLAKE2B c915a4bd1ed474d70e0c122d052e610473a50971858d9cef178afa19724990d1f1811cabe982a192211c41c9e7077772448ea67aa7df15d0898a5a364fc906fb SHA512 20c2afc4218cc1b6d35e651145334948af554e273fb799927bd4705737cba8b92e46b5532f2f3de971c14835b0493ff28a28acf7fdcd5deb2d84633dabf3b66b diff --git a/app-misc/vimcat/vimcat-1.0.0.ebuild b/app-misc/vimcat/vimcat-1.0.0.ebuild new file mode 100644 index 0000000..95f0e31 --- /dev/null +++ b/app-misc/vimcat/vimcat-1.0.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="vimcat: cat with vim syntax-highlighting" +HOMEPAGE="" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ofavre/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/ofavre/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 -x86" +fi + +LICENSE="bsd2" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND} app-editors/vim" +BDEPEND="" + +src_prepare() { + default + if [[ ${PV} != "9999" ]]; then + mv ${PN}{,-${PV}} + fi +} + +src_compile() { + : +} + +src_install() { + if [[ ${PV} == "9999" ]]; then + dobin ${PN} + else + dobin ${P} + fi +} diff --git a/app-misc/vimcat/vimcat-9999.ebuild b/app-misc/vimcat/vimcat-9999.ebuild new file mode 100644 index 0000000..95f0e31 --- /dev/null +++ b/app-misc/vimcat/vimcat-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="vimcat: cat with vim syntax-highlighting" +HOMEPAGE="" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ofavre/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/ofavre/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 -x86" +fi + +LICENSE="bsd2" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND} app-editors/vim" +BDEPEND="" + +src_prepare() { + default + if [[ ${PV} != "9999" ]]; then + mv ${PN}{,-${PV}} + fi +} + +src_compile() { + : +} + +src_install() { + if [[ ${PV} == "9999" ]]; then + dobin ${PN} + else + dobin ${P} + fi +}