diff options
Diffstat (limited to 'dev-php/PEAR-Crypt_GPG')
-rw-r--r-- | dev-php/PEAR-Crypt_GPG/Manifest | 3 | ||||
-rw-r--r-- | dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.2.ebuild | 49 | ||||
-rw-r--r-- | dev-php/PEAR-Crypt_GPG/files/fix-unit-tests-with-new-gpg.patch | 55 |
3 files changed, 0 insertions, 107 deletions
diff --git a/dev-php/PEAR-Crypt_GPG/Manifest b/dev-php/PEAR-Crypt_GPG/Manifest index 31ac730bfc74..d7e30793365b 100644 --- a/dev-php/PEAR-Crypt_GPG/Manifest +++ b/dev-php/PEAR-Crypt_GPG/Manifest @@ -1,6 +1,3 @@ -AUX fix-unit-tests-with-new-gpg.patch 2090 BLAKE2B 7cc3b79bfd29244eec6e0152130d33d64ff99ddb4da9508affa9a06274d8b888d4e7ea38c2a8e090953b40533b19a5224f803d71199ece8dde70444959fba9eb SHA512 3b6b301d19cde1eebd411caf409dd11add712717a638f2b4d8567114cc065efdc899cb8244412da7b3438850a9bedfafe95e370705fd7439b312f4cb318f4124 -DIST Crypt_GPG-1.6.2.tgz 346709 BLAKE2B abced2fe8c909f06690c38884506ce03df4c5ef3ef460aafce65ea9405c6974f8af320fd5a07a7967b45421a9a67aa27026c28ef7eb1402ffefba527007a33ae SHA512 9d954d96b4e461c75f79ce9bc701d062e3f19671690228e6e0ce5265733ac1de9c06520f9f750348f3c37f01ccb79720574b2d2f371e69c8a25ae6e1bc18aabd DIST Crypt_GPG-1.6.7.tgz 343957 BLAKE2B c95346005fdd36bd97e2a0e6cd42c5a2898fb59f0a4a3d3b09bd99a409bd9c998b267ffd84ab28148e17c3f7e78e094393c3b077998b05dc2d7ddcb0ab81394b SHA512 dd629271ebbcb98df5d31313c1a6911b62964046c758e00b55377170653e9880d2edc7d0b953fd6ae441d74238c4a8e1008bf6a9195a19ff463bcc82665f14e8 -EBUILD PEAR-Crypt_GPG-1.6.2.ebuild 1174 BLAKE2B 763b350b56b5dbd7b114e36f28ea69f3f4290cf8a8278dc12d6276460ceb2ca63a19260e6a4db351928ba03352f80f43915e8aed6a84deca1d7677f37e21856c SHA512 60caa2cd7c97087a7ad80d995d1ab113913968652e1990d7df0113b97d7e0085b2a721c58c5bff581ae0291d4e7f3a5734bc7365b69edaa3a3f12b1edf0f6f85 EBUILD PEAR-Crypt_GPG-1.6.7.ebuild 1180 BLAKE2B cc877ddd08d04606f4bfab46a8a049a91a20f67762fc33ec2d586a919103821c26197587168de73c9dbe956aa548f07d5bc38da5acf44ff1d88c332b63edf8d8 SHA512 654cc71fe69592b3f3b97b72a290fa14a53b93f94c9696c292614039ccbf317203bdf3c628c78286a61e159865cf12a58f4638d2a278a8ca5aca37361358aee3 MISC metadata.xml 516 BLAKE2B 81fe21dff1eabdcc17fd25f7dc6445b1047fd92f150a075e193fc8f399e5af35c813752a6c5165805d0443e0e3862dceced142ad34e4dd0b5ba0f72a3617beef SHA512 10d8240e396c947c147ae289faedf0281e721f3ddc9603b4e7fdcc3e930302b539cb04ab532ad230ca7f573ed1bfcfe6e12d14fe6a737aa554aecc0a85e8ebaa diff --git a/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.2.ebuild b/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.2.ebuild deleted file mode 100644 index e0f4c627a409..000000000000 --- a/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.2.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MY_PN="${PN/PEAR-/}" -MY_PV="${PV/_/}" -MY_P="${MY_PN}-${MY_PV}" - -DESCRIPTION="PHP interface to the GNU Privacy Guard (GnuPG)" -HOMEPAGE="https://pear.php.net/package/Crypt_GPG" -SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 arm ~hppa ~ia64 ppc ppc64 sparc x86" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="app-crypt/gnupg - dev-lang/php:*[posix,unicode] - dev-php/PEAR-Console_CommandLine - dev-php/PEAR-Exception" -DEPEND="test? ( ${RDEPEND} <dev-php/phpunit-6 )" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( "${FILESDIR}/fix-unit-tests-with-new-gpg.patch" ) - -src_prepare() { - default - sed -i "s|@bin-dir@|${EPREFIX}/usr/bin|" Crypt/GPG/Engine.php || die - sed -i "s|@package-name@|${MY_PN}|" Crypt/GPG/PinEntry.php || die - sed -i "s|@data-dir@|${EPREFIX}/usr/share|" Crypt/GPG/PinEntry.php || die -} - -src_install() { - dodoc README.md - dobin scripts/crypt-gpg-pinentry - - insinto "/usr/share/${MY_PN}" - doins -r data - - insinto /usr/share/php - doins -r Crypt -} - -src_test() { - phpunit tests/ || die "test suite failed" -} diff --git a/dev-php/PEAR-Crypt_GPG/files/fix-unit-tests-with-new-gpg.patch b/dev-php/PEAR-Crypt_GPG/files/fix-unit-tests-with-new-gpg.patch deleted file mode 100644 index 8e49a2f263fb..000000000000 --- a/dev-php/PEAR-Crypt_GPG/files/fix-unit-tests-with-new-gpg.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 14a884dd5127141929ef7a58185c298e92602c40 Mon Sep 17 00:00:00 2001 -From: Aleksander Machniak <machniak@kolabsys.com> -Date: Sat, 16 Sep 2017 13:05:37 +0200 -Subject: [PATCH] Fix Bug #21242: PHPUnit tests fail sometimes while deleting - S.gpg-agent.extra - ---- - tests/TestCase.php | 20 ++++++++++++++------ - 1 file changed, 14 insertions(+), 6 deletions(-) - -diff --git a/tests/TestCase.php b/tests/TestCase.php -index b91ea7d..1ad8028 100644 ---- a/tests/TestCase.php -+++ b/tests/TestCase.php -@@ -583,7 +583,10 @@ private function _tearDownKeyring() - $iterator = new DirectoryIterator($dirname); - foreach ($iterator as $file) { - if (!$file->isDot()) { -- unlink($dirname . '/' . $file->getFilename()); -+ $filename = $dirname . '/' . $file->getFilename(); -+ if (file_exists($filename)) { -+ unlink($filename); -+ } - } - } - rmdir($dirname); -@@ -595,7 +598,10 @@ private function _tearDownKeyring() - - foreach ($iterator as $file) { - if (!$file->isDot()) { -- unlink($homedir . '/' . $file->getFilename()); -+ $filename = $homedir . '/' . $file->getFilename(); -+ if (file_exists($filename)) { -+ unlink($filename); -+ } - } - } - -@@ -614,10 +620,12 @@ private function _tearDownTempdir() - foreach ($iterator as $file) { - if (!$file->isDot()) { - $filename = $this->getTempFilename($file->getFilename()); -- if (is_dir($filename)) { -- rmdir($filename); -- } else { -- unlink($filename); -+ if (file_exists($filename)) { -+ if (is_dir($filename)) { -+ rmdir($filename); -+ } else { -+ unlink($filename); -+ } - } - } - } |