diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-06-16 14:20:41 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-06-16 14:21:33 +0100 |
commit | 490357d3d77155d7f32da0b2332d162d1904a109 (patch) | |
tree | 6614c86ffd7c77c78a73218ac84399da78da8e5a /dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild | |
parent | app-dicts/sword-KingComm: initial import (diff) | |
download | gentoo-490357d3d77155d7f32da0b2332d162d1904a109.tar.gz gentoo-490357d3d77155d7f32da0b2332d162d1904a109.tar.bz2 gentoo-490357d3d77155d7f32da0b2332d162d1904a109.zip |
dev-vcs/git-flow: fix the script-directory prefix
Closes: https://bugs.gentoo.org/796341
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild')
-rw-r--r-- | dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild b/dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild new file mode 100644 index 000000000000..95612de82ddb --- /dev/null +++ b/dev-vcs/git-flow/git-flow-1.12.3-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 + +MY_PN="${PN/-/}-avh" +COMP_PN="${PN}-completion" +COMP_PV="0.6.0" +COMP_P="${COMP_PN}-${COMP_PV}" + +DESCRIPTION="Git extensions to provide high-level repository operations" +HOMEPAGE="https://github.com/petervanderdoes/gitflow-avh" +SRC_URI="https://github.com/petervanderdoes/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/petervanderdoes/${COMP_PN}/archive/${COMP_PV}.tar.gz -> ${COMP_P}.tar.gz" + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-vcs/git" + +PATCHES=( + "${FILESDIR}"/${PN}-1.12.3_scriptdir.patch +) + +DOCS=( AUTHORS CHANGELOG.md README.md ) + +S="${WORKDIR}"/${MY_PN}-${PV} + +src_prepare() { + default + sed -i "s!doc/gitflow!doc/${PF}!" Makefile || die "Fixing doc path failed" + sed -i "s!@PREFIX@!${EPREFIX}/usr!" git-flow || die "Failed to set prefix in the script" +} + +src_compile() { + true +} + +src_install() { + emake prefix="${ED}"/usr install + einstalldocs + newbashcomp "${WORKDIR}"/${COMP_P}/${COMP_PN}.bash ${PN} +} |