# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
PHP_EXT_NAME="phalcon"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"

USE_PHP="php7-2 php7-3 php7-4"

MY_PN="phalcon"
# There are two identical directories (32bits and 64bits) in ${WORKDIR}/${PN}-${MY_P}/build. One was chosen
S="${WORKDIR}/${PN}-${PV}/build/php7/64bits"

inherit php-ext-source-r3

DESCRIPTION="A full-stack PHP framework delivered as a C-extension"
HOMEPAGE="https://phalconphp.com"
SRC_URI="https://github.com/${MY_PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"