forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/PEAR-Crypt_GPG: Version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
- Loading branch information
Brian Evans
committed
Feb 27, 2017
1 parent
ae7f620
commit b999e15
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST Crypt_GPG-1.3.2.tgz 339001 SHA256 67f77bfb9b21dd428587f5bd336e4b9b2e200a1b62160e7ae0d0dfffd1357899 SHA512 c045942798f2974d1d200413864708b4476b53d1999b721f1b51fd6cfafb23c05479a391ebc7ebe513f5a88641d63d991e7ba59b7edcbd8397efde365528f999 WHIRLPOOL 27124bb96e28d7206f56e0d0fcbee603b3f1516a4d61a98e4a72139cae7e76b357f025bde04baec83530ff4ad6ec2a7d35d92a114ad9269ff198c06c94d63aef | ||
DIST Crypt_GPG-1.4.2.tgz 345962 SHA256 8e1cf98b5bf37fead50745327261c021efac8c1ee2bddd57c38be57e8f1bc969 SHA512 c0384f0b4a35f8e7d7189b0b08c277c2629e7fa84e13f2c8c92aaafbeace7a60b6e18f2347571e7bcdf4bc504fd9463f080d9c2938063fdfcabc8f44dd7f4950 WHIRLPOOL ea6e2d0dfbfc56cf4bec5bcdfa312a5f43109c305b699b501e102e81908ad1ba350a97525b5d9ada45d6713ef64512744b6e04f208b5dc2f029ad01fedbffb4e | ||
DIST Crypt_GPG-1.6.0.tgz 345474 SHA256 efbe714d553d9e478f39bd181acf684a68180353971c05e764d8d70bc59f68ed SHA512 b5119204114218a8100d978ea265f1b4f7883b0155c6c984e493737ec7185a9a37c2eb3255b3dd30ccc8821363dbd5c86f8861b8da206c0a0efff89086ac6ae0 WHIRLPOOL d6098e37966ff9aea5467f6f98e5ae9ff3c2605c719c9fad3ff914b75a622e1cc29075507703dc3f6905df957dac77b7b83aae3513b04cf5af77eeb8babdedd1 | ||
DIST Crypt_GPG-1.6.0b3.tgz 345445 SHA256 fc3757b33a1ea39f9816521aca50dee4bf6c07cc9c7be60600db32066cf89d29 SHA512 0a3cb665fac8e84a0699600155cb74e2394e4759fe0b111d971d253ca511a371d06d826e54abadfbb3f707833cd3d6b369f52d04541b3e04f217056ec8439f4c WHIRLPOOL 0df9a3b21bbfc0d2f8e3cd8efaf8e19a58981520976faf1c4b501a363bbb05c2e4299de22e3c987f8f5ead36e98b5401c813d07947e4e84c6c664c2d46c4e3fa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
MY_PN="${PN/PEAR-/}" | ||
MY_PV="${PV/_/}" | ||
MY_PV="${MY_PV/beta/b}" | ||
MY_P="${MY_PN}-${MY_PV}" | ||
|
||
DESCRIPTION="PHP interface to the GNU Privacy Guard (GnuPG)" | ||
HOMEPAGE="http://pear.php.net/package/${MY_PN}" | ||
SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" | ||
LICENSE="LGPL-2.1" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~x86" | ||
IUSE="test" | ||
|
||
# Really only needs PEAR_Exception, not PEAR-PEAR. | ||
RDEPEND="app-crypt/gnupg | ||
dev-lang/php:*[posix,unicode] | ||
dev-php/PEAR-Console_CommandLine | ||
dev-php/PEAR-PEAR" | ||
DEPEND="test? ( ${RDEPEND} dev-php/phpunit )" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
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" | ||
} |