summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Reaves <reaves735@gmail.com>2024-09-04 11:37:08 -0400
committerSam James <sam@gentoo.org>2024-09-22 12:26:30 +0100
commit9923f3e78c045eebf1d2089a118f42a75e9390b7 (patch)
treed5ef58ba9be6df1c4dcac1824a2135ccdf548c56 /dev-vcs
parentnet-p2p/bitcoin-core: bump to 28.0_rc2 (diff)
downloadgentoo-9923f3e78c045eebf1d2089a118f42a75e9390b7.tar.gz
gentoo-9923f3e78c045eebf1d2089a118f42a75e9390b7.tar.bz2
gentoo-9923f3e78c045eebf1d2089a118f42a75e9390b7.zip
dev-vcs/git: add support for git-credential-netrc
Fedora installs this too. Signed-off-by: Stephen Reaves <reaves735@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38434 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/git/git-2.46.0.ebuild16
-rw-r--r--dev-vcs/git/git-2.46.1.ebuild16
-rw-r--r--dev-vcs/git/git-9999.ebuild16
3 files changed, 48 insertions, 0 deletions
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*