35 lines
626 B
Bash
35 lines
626 B
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="7"
|
|
|
|
PHP_EXT_NAME="ast"
|
|
PHP_EXT_INI="yes"
|
|
PHP_EXT_ZENDEXT="no"
|
|
DOCS="README.md"
|
|
|
|
USE_PHP="php7-0 php7-1 php7-2 php7-3 php7-4"
|
|
|
|
EGIT_CLONE_TYPE="shallow"
|
|
EGIT_REPO_URI="https://github.com/nikic/php-ast.git"
|
|
|
|
inherit php-ext-source-r3 git-r3
|
|
|
|
KEYWORDS=""
|
|
|
|
DESCRIPTION="PHP7 abstract syntax tree extension"
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
DEPEND="virtual/libc"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_unpack() {
|
|
git-r3_src_unpack
|
|
for slot in $(php_get_slots); do
|
|
cp -r "${S}" "${WORKDIR}/${slot}"
|
|
done
|
|
}
|