From 9923f3e78c045eebf1d2089a118f42a75e9390b7 Mon Sep 17 00:00:00 2001 From: Stephen Reaves Date: Wed, 4 Sep 2024 11:37:08 -0400 Subject: dev-vcs/git: add support for git-credential-netrc Fedora installs this too. Signed-off-by: Stephen Reaves Closes: https://github.com/gentoo/gentoo/pull/38434 Signed-off-by: Sam James --- dev-vcs/git/git-2.46.0.ebuild | 16 ++++++++++++++++ dev-vcs/git/git-2.46.1.ebuild | 16 ++++++++++++++++ dev-vcs/git/git-9999.ebuild | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) (limited to 'dev-vcs') diff --git a/dev-vcs/git/git-2.46.0.ebuild b/dev-vcs/git/git-2.46.0.ebuild index 754773f787a6..0247cf6cb525 100644 --- a/dev-vcs/git/git-2.46.0.ebuild +++ b/dev-vcs/git/git-2.46.0.ebuild @@ -333,6 +333,10 @@ src_compile() { git_emake gitweb fi + if use perl ; then + git_emake -C contrib/credential/netrc + fi + if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then git_emake -C contrib/credential/osxkeychain fi @@ -482,6 +486,12 @@ src_test() { # And bail if there was a problem [[ ${rc} -eq 0 ]] || die "Tests failed. Please file a bug!" + + if use perl ; then + make -C contrib/credential/netrc test || \ + make -C contrib/credential/netrc testverbose || \ + die "Tests failed for git-credential-netrc failed. Please file a bug!" + fi } src_install() { @@ -608,6 +618,12 @@ src_install() { rm -rf "${ED}"/usr/share/gitweb fi + if use perl ; then + pushd contrib/credential/netrc &>/dev/null || die + dobin git-credential-netrc + popd &>/dev/null || die + fi + if ! use subversion ; then rm -f "${ED}"/usr/libexec/git-core/git-svn \ "${ED}"/usr/share/man/man1/git-svn.1* diff --git a/dev-vcs/git/git-2.46.1.ebuild b/dev-vcs/git/git-2.46.1.ebuild index 754773f787a6..0247cf6cb525 100644 --- a/dev-vcs/git/git-2.46.1.ebuild +++ b/dev-vcs/git/git-2.46.1.ebuild @@ -333,6 +333,10 @@ src_compile() { git_emake gitweb fi + if use perl ; then + git_emake -C contrib/credential/netrc + fi + if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then git_emake -C contrib/credential/osxkeychain fi @@ -482,6 +486,12 @@ src_test() { # And bail if there was a problem [[ ${rc} -eq 0 ]] || die "Tests failed. Please file a bug!" + + if use perl ; then + make -C contrib/credential/netrc test || \ + make -C contrib/credential/netrc testverbose || \ + die "Tests failed for git-credential-netrc failed. Please file a bug!" + fi } src_install() { @@ -608,6 +618,12 @@ src_install() { rm -rf "${ED}"/usr/share/gitweb fi + if use perl ; then + pushd contrib/credential/netrc &>/dev/null || die + dobin git-credential-netrc + popd &>/dev/null || die + fi + if ! use subversion ; then rm -f "${ED}"/usr/libexec/git-core/git-svn \ "${ED}"/usr/share/man/man1/git-svn.1* diff --git a/dev-vcs/git/git-9999.ebuild b/dev-vcs/git/git-9999.ebuild index 754773f787a6..0247cf6cb525 100644 --- a/dev-vcs/git/git-9999.ebuild +++ b/dev-vcs/git/git-9999.ebuild @@ -333,6 +333,10 @@ src_compile() { git_emake gitweb fi + if use perl ; then + git_emake -C contrib/credential/netrc + fi + if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then git_emake -C contrib/credential/osxkeychain fi @@ -482,6 +486,12 @@ src_test() { # And bail if there was a problem [[ ${rc} -eq 0 ]] || die "Tests failed. Please file a bug!" + + if use perl ; then + make -C contrib/credential/netrc test || \ + make -C contrib/credential/netrc testverbose || \ + die "Tests failed for git-credential-netrc failed. Please file a bug!" + fi } src_install() { @@ -608,6 +618,12 @@ src_install() { rm -rf "${ED}"/usr/share/gitweb fi + if use perl ; then + pushd contrib/credential/netrc &>/dev/null || die + dobin git-credential-netrc + popd &>/dev/null || die + fi + if ! use subversion ; then rm -f "${ED}"/usr/libexec/git-core/git-svn \ "${ED}"/usr/share/man/man1/git-svn.1* -- cgit v1.2.3-65-gdbad