tkurbad-overlay/dev-php/fig-http-message-util/fig-http-message-util-1.1.5.ebuild

39 lines
765 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Utility classes and constants for use with PSR-7 (psr/http-message)"
HOMEPAGE="https://github.com/php-fig/http-message-util"
SRC_URI="https://github.com/php-fig/http-message-util/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/http-message-util-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
BDEPEND="dev-php/theseer-Autoload"
RDEPEND="
>=dev-lang/php-7.4:*
dev-php/fedora-autoloader
"
src_prepare() {
default
phpab \
--quiet \
--output autoload.php \
--template fedora2 \
--basedir . \
. \
|| die
}
src_install() {
insinto "/usr/share/php/Fig/Http/Message"
doins -r *.php LICENSE src src/*
}