37 lines
809 B
Bash
37 lines
809 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="A polyfill for getallheaders."
|
|
HOMEPAGE="https://github.com/ralouphie/getallheaders"
|
|
SRC_URI="https://github.com/ralouphie/getallheaders/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/getallheaders-${PV}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
|
|
|
BDEPEND="dev-php/theseer-Autoload"
|
|
|
|
RDEPEND="
|
|
>=dev-lang/php-5.6:*
|
|
dev-php/fedora-autoloader
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
echo "<?php" > autoload.php
|
|
echo "require_once \"${EPREFIX}/usr/share/php/Fedora/Autoloader/autoload.php\";" >> autoload.php
|
|
|
|
echo "require_once __DIR__ . \"/src/getallheaders.php\";" >> autoload.php
|
|
|
|
}
|
|
|
|
src_install() {
|
|
insinto "/usr/share/php/Ralouphie"
|
|
doins -r *.php LICENSE src
|
|
}
|