mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
app-crypt/pinentry: Sync with Gentoo
It's from Gentoo commit 5f8fad56cb06fc038c5d3a75c2193b1ec0ffdf5a.
This commit is contained in:
parent
755decdfb0
commit
d4e595afa6
@ -2,3 +2,5 @@ DIST pinentry-1.2.1.tar.bz2 547698 BLAKE2B aa47612aa3a6f74c3676bf4018780356cb22e
|
|||||||
DIST pinentry-1.2.1.tar.bz2.sig 238 BLAKE2B 01ba3dc296a8e76c546d21d0bb0cd13778476d5d5b3ef55a3401c6a0353a56d79250d11555afb31c77c5a77e63847ded0f8eaef395bb0dc2ee3ff1d6a4ed83bd SHA512 d0e8435dc169a58f111f057f1c9fbb6c70da32a850f1107d6abdf41357c1714832728109ae61507db313d7eaef9596e5faf92fd21bed78adcc46a8c8a590430b
|
DIST pinentry-1.2.1.tar.bz2.sig 238 BLAKE2B 01ba3dc296a8e76c546d21d0bb0cd13778476d5d5b3ef55a3401c6a0353a56d79250d11555afb31c77c5a77e63847ded0f8eaef395bb0dc2ee3ff1d6a4ed83bd SHA512 d0e8435dc169a58f111f057f1c9fbb6c70da32a850f1107d6abdf41357c1714832728109ae61507db313d7eaef9596e5faf92fd21bed78adcc46a8c8a590430b
|
||||||
DIST pinentry-1.3.0.tar.bz2 610363 BLAKE2B a55b80754ef37d18ebdf0bd50e134a7b1bf6362b859b7069a9e4ebd86cd7e733d51f3c21a16779a18aa0d0dfab1f7a3df070d4f7e39e0840339078c4e9cb58bc SHA512 1bbac81c6811cffc8969a46494e6daa6b8447802f47ff6fa3e4dc9ac244cf6e5f629834c9b6a60770d06bff6c9932ad4059f10d2fdf93fd9e26fd5d21c0e3732
|
DIST pinentry-1.3.0.tar.bz2 610363 BLAKE2B a55b80754ef37d18ebdf0bd50e134a7b1bf6362b859b7069a9e4ebd86cd7e733d51f3c21a16779a18aa0d0dfab1f7a3df070d4f7e39e0840339078c4e9cb58bc SHA512 1bbac81c6811cffc8969a46494e6daa6b8447802f47ff6fa3e4dc9ac244cf6e5f629834c9b6a60770d06bff6c9932ad4059f10d2fdf93fd9e26fd5d21c0e3732
|
||||||
DIST pinentry-1.3.0.tar.bz2.sig 119 BLAKE2B 0f11126761b2a06f8b08cf971f5d610cacbde1a5ee419523a6e704ac21fef4cce26495a160a51bee5ed5f68eca7d6864dfa03efa48030ba2cf783e767b925e1c SHA512 77a61877adf241d67caeea3af4c12a2c7c13ddc423ac001fab79bcec463a5853d8806052d61504fae0c67e0a9d1edf6a12d24b560ff7b4083eea5e86f9b54a90
|
DIST pinentry-1.3.0.tar.bz2.sig 119 BLAKE2B 0f11126761b2a06f8b08cf971f5d610cacbde1a5ee419523a6e704ac21fef4cce26495a160a51bee5ed5f68eca7d6864dfa03efa48030ba2cf783e767b925e1c SHA512 77a61877adf241d67caeea3af4c12a2c7c13ddc423ac001fab79bcec463a5853d8806052d61504fae0c67e0a9d1edf6a12d24b560ff7b4083eea5e86f9b54a90
|
||||||
|
DIST pinentry-1.3.1.tar.bz2 611233 BLAKE2B 47a510b3746fc8cdd83b56302132f4f4d9c61324fc857ce0867387f70f79490dad375bca4dc72e5d1cdca707bf89a16e1c9a20bf1aa0e857d69e59dc59403afd SHA512 3b72034dc1792b1475acb6d605ff7c1bd7647a0f02d1b6bdcd475acdef24bc802f49e275055436c3271261c4b7a64168477a698aab812a145962146b2f67a0e2
|
||||||
|
DIST pinentry-1.3.1.tar.bz2.sig 119 BLAKE2B ca562d2903c88c4297e641ddc39f6cd99db3e3fd40cf5d69e7b4335f006c7717c874fa4b5e47920af3ec97385a96c0c96aafb849cf399d11a7f9f1a6b693f479 SHA512 22bd94f74486300eb84c1c9c371a43b05fb6179118518004fba0d42b6d3e6731f94d79b37c2a3a6b0c5886578c4575f75d2460accd36cd4874342e7239521be9
|
||||||
|
143
sdk_container/src/third_party/portage-stable/app-crypt/pinentry/pinentry-1.3.1.ebuild
vendored
Normal file
143
sdk_container/src/third_party/portage-stable/app-crypt/pinentry/pinentry-1.3.1.ebuild
vendored
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
|
||||||
|
inherit autotools qmake-utils verify-sig
|
||||||
|
|
||||||
|
DESCRIPTION="Simple passphrase entry dialogs which utilize the Assuan protocol"
|
||||||
|
HOMEPAGE="https://gnupg.org/related_software/pinentry/"
|
||||||
|
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
|
||||||
|
SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
IUSE="caps efl emacs gtk keyring ncurses qt5 qt6 wayland X"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-libs/libassuan-2.1:=
|
||||||
|
>=dev-libs/libgcrypt-1.6.3
|
||||||
|
>=dev-libs/libgpg-error-1.17
|
||||||
|
efl? ( dev-libs/efl[X] )
|
||||||
|
keyring? ( app-crypt/libsecret )
|
||||||
|
ncurses? ( sys-libs/ncurses:= )
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
wayland? ( kde-plasma/kwayland:5 )
|
||||||
|
X? (
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
)
|
||||||
|
qt6? (
|
||||||
|
dev-qt/qtbase:6[gui,widgets]
|
||||||
|
wayland? (
|
||||||
|
kde-frameworks/kguiaddons:6
|
||||||
|
kde-frameworks/kwindowsystem:6
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
gtk? ( app-crypt/gcr:4[gtk] )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-gnupg )
|
||||||
|
"
|
||||||
|
PDEPEND="emacs? ( app-emacs/pinentry )"
|
||||||
|
IDEPEND=">=app-eselect/eselect-pinentry-0.7.4"
|
||||||
|
|
||||||
|
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-1.0.0-AR.patch"
|
||||||
|
"${FILESDIR}/${PN}-1.3.0-automagic.patch" # bug #819939, bug #837719
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
unset FLTK_CONFIG
|
||||||
|
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable efl pinentry-efl)
|
||||||
|
$(use_enable emacs pinentry-emacs)
|
||||||
|
$(use_enable keyring libsecret)
|
||||||
|
$(use_enable gtk pinentry-gnome3)
|
||||||
|
$(use_enable ncurses fallback-curses)
|
||||||
|
$(use_enable ncurses pinentry-curses)
|
||||||
|
$(use_enable qt5 pinentry-qt5)
|
||||||
|
$(use_enable qt6 pinentry-qt)
|
||||||
|
# TODO: could split this up into qt5/qt6?
|
||||||
|
$(use_enable X qtx11extras)
|
||||||
|
$(use_with X x)
|
||||||
|
|
||||||
|
--enable-pinentry-tty
|
||||||
|
--disable-pinentry-fltk
|
||||||
|
--disable-pinentry-gtk2
|
||||||
|
|
||||||
|
ac_cv_path_GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"
|
||||||
|
|
||||||
|
$("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
|
||||||
|
)
|
||||||
|
|
||||||
|
if use qt5 ; then
|
||||||
|
export PATH="$(qt5_get_bindir):${PATH}"
|
||||||
|
export QTLIB="$(qt5_get_libdir):${QTLIB}"
|
||||||
|
export MOC5="$(qt5_get_bindir)"/moc
|
||||||
|
|
||||||
|
myeconfargs+=(
|
||||||
|
$(use_enable wayland kf5-wayland)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
myeconfargs+=(
|
||||||
|
--disable-kf5-wayland
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qt6 ; then
|
||||||
|
export PATH="$(qt6_get_bindir):${PATH}"
|
||||||
|
export QTLIB="$(qt6_get_libdir):${QTLIB}"
|
||||||
|
export MOC="$(qt6_get_libdir)/qt6/libexec/moc"
|
||||||
|
|
||||||
|
myeconfargs+=(
|
||||||
|
$(use_enable wayland kf6-wayland)
|
||||||
|
)
|
||||||
|
else
|
||||||
|
myeconfargs+=(
|
||||||
|
--disable-kf6-wayland
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/pinentry || die
|
||||||
|
|
||||||
|
# The preferred Qt implementation upstream gets installed as just 'qt'.
|
||||||
|
# Make a symlink for eselect-pinentry and friends.
|
||||||
|
if use qt6 ; then
|
||||||
|
dosym pinentry-qt /usr/bin/pinentry-qt6
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect pinentry update ifunset
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect pinentry update ifunset
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user