summaryrefslogtreecommitdiff
blob: 7fb7e5570496d974f384b97491eb22ae84111be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Crypt_HMAC2/PEAR-Crypt_HMAC2-0.2.1.ebuild,v 1.2 2007/12/05 23:52:09 jokey Exp $

inherit php-pear-r1 depend.php

DESCRIPTION="Implementation of Hashed Message Authentication Code for PHP5"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

need_php5

pkg_postinst() {
	has_php
	local flags="hash mhash"
	if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} ; then
		elog "${PN} can use the hash or mhash extensions when enabled to extend the range"
		elog "of cryptographic hash functions beyond the natively implemented MD5 and SHA1."
		elog "Recompile ${PHP_PKG} with ${flags} USE flags enabled if you want these features."
	fi
}