diff options
author | Tony Olagbaiye <bqv@fron.io> | 2023-01-03 07:23:58 +0000 |
---|---|---|
committer | Tony Olagbaiye <bqv@fron.io> | 2023-01-03 07:23:58 +0000 |
commit | 68b35832817cc0e2868603504fc81288c93a5758 (patch) | |
tree | 12cfc98743ad0ae87d117b14337e13f02c4930c7 /net-misc/gnome-ssh-askpass | |
parent | net-misc/gnome-ssh-askpass: new package, add 9.1_p1 (diff) | |
download | guru-68b35832817cc0e2868603504fc81288c93a5758.tar.gz guru-68b35832817cc0e2868603504fc81288c93a5758.tar.bz2 guru-68b35832817cc0e2868603504fc81288c93a5758.zip |
net-misc/gnome-ssh-askpass: minor corrections
Signed-off-by: Tony Olagbaiye <bqv@fron.io>
Diffstat (limited to 'net-misc/gnome-ssh-askpass')
-rw-r--r-- | net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild b/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild index a17b5e22c..4de717ec4 100644 --- a/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild +++ b/net-misc/gnome-ssh-askpass/gnome-ssh-askpass-9.1_p1.ebuild @@ -22,10 +22,11 @@ REQUIRED_USE="|| ( gtk2 gtk3 )" RESTRICT="test" -DEPEND=" +RDEPEND=" gtk2? ( x11-libs/gtk+:2 ) gtk3? ( x11-libs/gtk+:3 ) " +DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig verify-sig? ( sec-keys/openpgp-keys-openssh ) @@ -43,22 +44,24 @@ src_configure() { } src_compile() { - pushd contrib + pushd contrib || die use gtk2 && emake gnome-ssh-askpass2 use gtk3 && emake gnome-ssh-askpass3 - popd + popd || die } src_install() { - use gtk2 && ( dobin contrib/gnome-ssh-askpass2; \ - echo "export SSH_ASKPASS='${EPREFIX}/usr/bin/gnome-ssh-askpass2'" > "${T}/99gnome_ssh_askpass" \ - || die "envd file creation failed" ) + if use gtk2; then + dobin contrib/gnome-ssh-askpass2; + fi - use gtk3 && ( dobin contrib/gnome-ssh-askpass3; \ - echo "export SSH_ASKPASS='${EPREFIX}/usr/bin/gnome-ssh-askpass3'" > "${T}/99gnome_ssh_askpass" \ - || die "envd file creation failed" ) + if use gtk3; then + dobin contrib/gnome-ssh-askpass3; + fi - doenvd "${T}"/99gnome_ssh_askpass + newenvd - 99gnome_ssh_askpass <<-EOF + export SSH_ASKPASS='${EPREFIX}/usr/bin/gnome-ssh-askpass$(usex gtk3 3 2)' + EOF } |