From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AAFB31392A9 for ; Wed, 26 Oct 2016 15:23:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD8A6E0B24; Wed, 26 Oct 2016 15:23:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4E78E0B24 for ; Wed, 26 Oct 2016 15:23:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 529A5341421 for ; Wed, 26 Oct 2016 15:23:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E5387D9 for ; Wed, 26 Oct 2016 15:22:59 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1477495358.e4371eaa0c6350996e13c40756cd79ee3ebde89b.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/suhosin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/suhosin/suhosin-0.9.38-r1.ebuild X-VCS-Directories: dev-php/suhosin/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: e4371eaa0c6350996e13c40756cd79ee3ebde89b X-VCS-Branch: master Date: Wed, 26 Oct 2016 15:22:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 73575907-2f99-446f-b81b-51665a75a8de X-Archives-Hash: 34288c90feb0a4f9ef6734a5354ed88a commit: e4371eaa0c6350996e13c40756cd79ee3ebde89b Author: Brian Evans gentoo org> AuthorDate: Wed Oct 26 15:22:38 2016 +0000 Commit: Brian Evans gentoo org> CommitDate: Wed Oct 26 15:22:38 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4371eaa dev-php/suhosin: Revbump to drop php 5.4 and 5.5 and EAPI6 Package-Manager: portage-2.3.2 dev-php/suhosin/suhosin-0.9.38-r1.ebuild | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/dev-php/suhosin/suhosin-0.9.38-r1.ebuild b/dev-php/suhosin/suhosin-0.9.38-r1.ebuild new file mode 100644 index 00000000..a459bc7 --- /dev/null +++ b/dev-php/suhosin/suhosin-0.9.38-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +PHP_EXT_NAME="suhosin" +PHP_EXT_INI="no" +PHP_EXT_ZENDEXT="no" +USE_PHP="php5-6" + +inherit php-ext-source-r3 + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +DESCRIPTION="Suhosin is an advanced protection system for PHP installations" +HOMEPAGE="http://www.suhosin.org/" +SRC_URI="http://download.suhosin.org/${P}.tar.gz" +LICENSE="PHP-3.01" +SLOT="0" +IUSE="" + +for target in ${USE_PHP}; do + slot=${target/php} + slot=${slot/-/.} + PHPUSEDEPEND="${PHPUSEDEPEND} + php_targets_${target}? ( dev-lang/php:${slot}[unicode] )" +done + +DEPEND="${PHPUSEDEPEND}" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-libcrypt.patch ) +DOCS=( CREDITS ) + +src_install() { + php-ext-source-r3_src_install + + local slot inifile + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + for inifile in $(php_slot_ini_files "${slot}") ; do + insinto "${inifile/${PHP_EXT_NAME}.ini/}" + insopts -m644 + doins "suhosin.ini" + done + done +} + +src_test() { + # Makefile passes a hard-coded -d extension_dir=./modules, we move the lib + # away from there in src_compile + for slot in `php_get_slots`; do + php_init_slot_env ${slot} + NO_INTERACTION="yes" emake test || die "emake test failed for slot ${slot}" + done +}