diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-php | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-php')
374 files changed, 8345 insertions, 0 deletions
diff --git a/dev-php/File_Iterator/File_Iterator-3.0.6.ebuild b/dev-php/File_Iterator/File_Iterator-3.0.6.ebuild new file mode 100644 index 000000000000..6416cc6443f6 --- /dev/null +++ b/dev-php/File_Iterator/File_Iterator-3.0.6.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="php-file-iterator" + +DESCRIPTION="FilterIterator implementation that filters files based on criteria" +HOMEPAGE="https://github.com/sebastianbergmann/php-file-iterator + https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/File/Iterator + doins -r src/* + newins "${FILESDIR}/autoload-2.0.2.php" autoload.php +} + +pkg_postinst() { + ewarn "This library now loads via /usr/share/php/File/Iterator/autoload.php" + ewarn "Please update any scripts to require the autoloader" +} diff --git a/dev-php/File_Iterator/Manifest b/dev-php/File_Iterator/Manifest new file mode 100644 index 000000000000..2023ea1fd9bb --- /dev/null +++ b/dev-php/File_Iterator/Manifest @@ -0,0 +1 @@ +DIST File_Iterator-3.0.6.tar.gz 5204 BLAKE2B 61123678e440f8aa68b2821e976bf615ea0e70157fc596fc566b7f28daae9419be8f75df13ec8e218200cdfecea146285995e6f1d3936a58593d6f64f38c0bdc SHA512 cc0faf12e443c9b9b6577dcc5b5f51184f0fecde010aadbcf47ce638d1d1135a5ba731221e8637791e94018458baed315112cd20fc86ded6485b59a7801f6d7d diff --git a/dev-php/File_Iterator/files/autoload-2.0.2.php b/dev-php/File_Iterator/files/autoload-2.0.2.php new file mode 100644 index 000000000000..746fefa88809 --- /dev/null +++ b/dev-php/File_Iterator/files/autoload-2.0.2.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for dev-php/File_Iterator */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\\fileiterator\\facade' => '/Facade.php', + 'sebastianbergmann\\fileiterator\\factory' => '/Factory.php', + 'sebastianbergmann\\fileiterator\\iterator' => '/Iterator.php', + ], + __DIR__ +); diff --git a/dev-php/File_Iterator/metadata.xml b/dev-php/File_Iterator/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/File_Iterator/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Archive_Tar/Manifest b/dev-php/PEAR-Archive_Tar/Manifest new file mode 100644 index 000000000000..efa2e4a5dc0d --- /dev/null +++ b/dev-php/PEAR-Archive_Tar/Manifest @@ -0,0 +1,2 @@ +DIST Archive_Tar-1.5.0.tgz 22302 BLAKE2B 0c36fa628f4dbc370ad7b2b1b3eec0e40c8592c5732fcd1089b20647c90a6862edaab01e05eca74ba3368b4425c504b46868180b8447b67fa55afd50f95f0c10 SHA512 2e586320ee53e05b94d0fd26185362ddd5f4bab5b8adcecc46388c6a10b98bbf187d5ce9156e2677320c319827273d537e33698c3cc27107b8d42f627c4f2880 +DIST Archive_Tar-1.6.0.tgz 22303 BLAKE2B ffa4715d5c329d72c9ad57f0744ec8bde864bea1ba4141a443ae56c2fc087dad42c2fe6800cdabed34f259c77a596e89eb847a9a04a9fae570a7b24c680c843d SHA512 dda045cf0831e366705d1c6a4e8d112493adb4cc697fe54c14442bf37d850098510eb44c1079db0cf798ef884a2ff906d2f6f2915a2b7ecd5dc44494cedcf41c diff --git a/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.5.0.ebuild b/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.5.0.ebuild new file mode 100644 index 000000000000..9ab24d1714ed --- /dev/null +++ b/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.5.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tar file management class" +HOMEPAGE="https://pear.php.net/package/Archive_Tar" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~s390 ~sparc x86" + +# bzip2 and zlib are needed for compressed tarballs, and there's one +# call to preg_match to test paths against a pattern of files and +# directories that will be ignored. +RDEPEND="dev-lang/php:*[bzip2,pcre(+),zlib]" +PDEPEND="dev-php/PEAR-PEAR" + +src_install() { + insinto /usr/share/php + doins -r Archive + + dodoc docs/* + + insinto /usr/share/php/.packagexml + newins "${WORKDIR}/package.xml" "${MY_P}.xml" +} + +pkg_postinst() { + # It is not critical to complete so only warn on failure + if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" && \ + -x "${EROOT}/usr/bin/peardev" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_postrm() { + if [[ -x "${EROOT}/usr/bin/peardev" ]]; then + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}" + fi +} diff --git a/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.6.0.ebuild b/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.6.0.ebuild new file mode 100644 index 000000000000..c27492dda883 --- /dev/null +++ b/dev-php/PEAR-Archive_Tar/PEAR-Archive_Tar-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tar file management class" +HOMEPAGE="https://pear.php.net/package/Archive_Tar" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +# bzip2 and zlib are needed for compressed tarballs, and there's one +# call to preg_match to test paths against a pattern of files and +# directories that will be ignored. +RDEPEND="dev-lang/php:*[bzip2,pcre(+),zlib]" +PDEPEND="dev-php/PEAR-PEAR" + +src_install() { + insinto /usr/share/php + doins -r Archive + + dodoc docs/* + + insinto /usr/share/php/.packagexml + newins "${WORKDIR}/package.xml" "${MY_P}.xml" +} + +pkg_postinst() { + # It is not critical to complete so only warn on failure + if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" && \ + -x "${EROOT}/usr/bin/peardev" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_postrm() { + if [[ -x "${EROOT}/usr/bin/peardev" ]]; then + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}" + fi +} diff --git a/dev-php/PEAR-Archive_Tar/metadata.xml b/dev-php/PEAR-Archive_Tar/metadata.xml new file mode 100644 index 000000000000..ff9c022b2a98 --- /dev/null +++ b/dev-php/PEAR-Archive_Tar/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:php:archive_tar</remote-id> + </upstream> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Auth_SASL/Manifest b/dev-php/PEAR-Auth_SASL/Manifest new file mode 100644 index 000000000000..a078384243fb --- /dev/null +++ b/dev-php/PEAR-Auth_SASL/Manifest @@ -0,0 +1 @@ +DIST Auth_SASL-1.2.0.tgz 9524 BLAKE2B e7e0ad21f486ad4568e062d755eb30115d84355b04dc6313415a2b3a335ad56089221d0f69872ce83cb963daabfd636b5492f52d5d15b9fb4da0e5a85f39803a SHA512 47f74d43a1081260771ebb32cebd4ce1b2b87d4fe09d3b84d16e60c2bde9be97b1f0d1962e10528c39d58ec5b88dcbef62bedcc22ca73d960a89f64b15d3c31d diff --git a/dev-php/PEAR-Auth_SASL/PEAR-Auth_SASL-1.2.0.ebuild b/dev-php/PEAR-Auth_SASL/PEAR-Auth_SASL-1.2.0.ebuild new file mode 100644 index 000000000000..9c34ab3dea98 --- /dev/null +++ b/dev-php/PEAR-Auth_SASL/PEAR-Auth_SASL-1.2.0.ebuild @@ -0,0 +1,13 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="Abstraction of various SASL mechanism responses" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" +RDEPEND="dev-php/PEAR-PEAR" diff --git a/dev-php/PEAR-Auth_SASL/metadata.xml b/dev-php/PEAR-Auth_SASL/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PEAR-Auth_SASL/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Console_CommandLine/Manifest b/dev-php/PEAR-Console_CommandLine/Manifest new file mode 100644 index 000000000000..055772d25b61 --- /dev/null +++ b/dev-php/PEAR-Console_CommandLine/Manifest @@ -0,0 +1 @@ +DIST Console_CommandLine-1.2.6.tgz 36389 BLAKE2B a2ad049324653d9e2dc5b438619dec5caed3cba1703395da0838ec521c08b37bdc693aa79ed87e2cc4e3e2382c7ebcaa340da34716eeb3700c4242cf5c05afdd SHA512 bd3a04915b6cc1dc07d2aad4c5714d7b3ed373c938bc945f0bd71d1686788d2be9cb9a3cdf5021f34a200b361d76a664921334d4e462e011502e37d0a8fbd891 diff --git a/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild b/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild new file mode 100644 index 000000000000..4fd6c4253bee --- /dev/null +++ b/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A full-featured command-line options and arguments parser" +HOMEPAGE="https://pear.php.net/package/Console_CommandLine" +SRC_URI="https://github.com/pear/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~sparc x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php:* + dev-php/PEAR-Exception" + +# Beware, the test suite really needs PEAR-PEAR. +BDEPEND="test? ( ${RDEPEND} dev-php/PEAR-PEAR )" + +src_prepare() { + # There's one occurrence of @data_dir@ that needs to be replaced + # This location just has to agree with where we put the "data" + # directory during src_install(). + default + sed -i "s|@data_dir@|${EPREFIX}/usr/share|" \ + Console/CommandLine/XmlParser.php || die + + # These two fail, but only due to the ordering of the associative + # arrays in the expected output. Github issue tracking is disabled + # but the current maintainer of the repo has been emailed about it. + rm tests/console_commandline_{addargument,addoption}.phpt || die +} + +src_install() { + use examples && dodoc -r docs/examples + + insinto "/usr/share/${MY_PN}" + doins -r data + + insinto /usr/share/php + doins -r Console +} + +src_test() { + # Requires the "pear" executable from dev-php/PEAR-PEAR. + pear run-tests tests || die + + # The command succeeds regardless of whether or not the test suite + # passed, but this file is only written when there was a failure. + [[ -f run-tests.log ]] && die "test suite failed" +} diff --git a/dev-php/PEAR-Console_CommandLine/metadata.xml b/dev-php/PEAR-Console_CommandLine/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PEAR-Console_CommandLine/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Console_Getopt/Manifest b/dev-php/PEAR-Console_Getopt/Manifest new file mode 100644 index 000000000000..95d44b75733b --- /dev/null +++ b/dev-php/PEAR-Console_Getopt/Manifest @@ -0,0 +1 @@ +DIST Console_Getopt-1.4.3.tgz 5789 BLAKE2B 641432105696e93160fd6a3ade4ee8c1bd7780cc502668266485d8c747fc8ceb97ce70ebdab8f61a739a4bf8267bfc936f0c9fd51b408add680a2288d49e0412 SHA512 7803e063576e9dac6833064b5a1479d22ca31c2a8ef8036ae530271e4e824fedb94e54d63266be8929f90f8df745b3ada7185dc98319b331f8dc5e9cac5445a0 diff --git a/dev-php/PEAR-Console_Getopt/PEAR-Console_Getopt-1.4.3.ebuild b/dev-php/PEAR-Console_Getopt/PEAR-Console_Getopt-1.4.3.ebuild new file mode 100644 index 000000000000..c85b97ab463b --- /dev/null +++ b/dev-php/PEAR-Console_Getopt/PEAR-Console_Getopt-1.4.3.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Command-line option parser" +HOMEPAGE="https://pear.php.net/package/Console_Getopt" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*" +PDEPEND="dev-php/PEAR-PEAR" + +src_install() { + insinto /usr/share/php + doins -r Console +} diff --git a/dev-php/PEAR-Console_Getopt/metadata.xml b/dev-php/PEAR-Console_Getopt/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/PEAR-Console_Getopt/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Console_Table/Manifest b/dev-php/PEAR-Console_Table/Manifest new file mode 100644 index 000000000000..a7a8a24e306c --- /dev/null +++ b/dev-php/PEAR-Console_Table/Manifest @@ -0,0 +1 @@ +DIST Console_Table-1.3.1.tgz 11492 BLAKE2B bff94b2ae1b6d23eaf9a60deee4e78ee3467eff9d53c1d6ac8330347647b54700d4b3cf30be84c071afc34a4517b3135f6b18011418ea5dfc0e2841da1a30874 SHA512 abac68c20bb670b29f405625edff0330ce5af51763a50ee7482c3ab9d39c7335134d77c0f1a94ce4914c2f454d493a685841e07628eb2aa58cc66617521b6a65 diff --git a/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild b/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild new file mode 100644 index 000000000000..e8f7eb63335a --- /dev/null +++ b/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="Class that makes it easy to build console style tables" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc64 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" +BDEPEND="test? ( dev-php/pear )" + +PATCHES=( "${FILESDIR}/fromArray-is-static.patch" ) + +src_install() { + insinto /usr/share/php/Console + doins Table.php + php-pear-r2_install_packagexml +} + +src_test() { + pear run-tests tests || die "Tests failed" +} diff --git a/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch b/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch new file mode 100644 index 000000000000..8b068d8f2668 --- /dev/null +++ b/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch @@ -0,0 +1,22 @@ +From 4eea320592cc1766b8f679df22c3431a93a74d7e Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 1 Apr 2021 10:37:33 +0200 +Subject: [PATCH] fromArray is static + +--- + Table.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Table.php b/Table.php +index dbfec73..139433b 100755 +--- a/Table.php ++++ b/Table.php +@@ -223,7 +223,7 @@ function __construct($align = CONSOLE_TABLE_ALIGN_LEFT, + * @return Console_Table|string A Console_Table object or the generated + * table. + */ +- function fromArray($headers, $data, $returnObject = false) ++ static function fromArray($headers, $data, $returnObject = false) + { + if (!is_array($headers) || !is_array($data)) { + return false; diff --git a/dev-php/PEAR-Console_Table/metadata.xml b/dev-php/PEAR-Console_Table/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PEAR-Console_Table/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Crypt_GPG/Manifest b/dev-php/PEAR-Crypt_GPG/Manifest new file mode 100644 index 000000000000..78ccfb856404 --- /dev/null +++ b/dev-php/PEAR-Crypt_GPG/Manifest @@ -0,0 +1,2 @@ +DIST Crypt_GPG-1.6.11.tgz 348288 BLAKE2B 39e6c63f55314cf14513d4fee7e1e2ce10e09509cd24430dbe5cfa5ae1c3bac79bbd7929fc55dbb674fe20748a4a04974db114212f943ec927b9f14043b684e9 SHA512 4b2ee457f55cc7422260bd91df5e9603e220c32a31af8b7a8a1e921b7aad34f3a68a48e6150045cc2c9dedb95ca2b2d340bb3266ddc4948eac00e3083198fb1e +DIST Crypt_GPG-1.6.9.tgz 344282 BLAKE2B d8546a34a70e8379b8003824636b26ad289f8c906bfbbf5c90cc5655f1bda243c57ec077a497e2a69c09bd5febd65a3f2cd39b426aadbf4f13e5ba10f6ed2380 SHA512 e3493406f27f73539522fa16cdd01aa940faacc6b180228b718596c6803c6c6a6cbb68c244749da965a62d19abc50bff83210d798f9394fde8980c5d8c8cdb2d diff --git a/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.11.ebuild b/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.11.ebuild new file mode 100644 index 000000000000..b52724dbc652 --- /dev/null +++ b/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.11.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_PV="${PV/_/}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="PHP interface to the GNU Privacy Guard (GnuPG)" +HOMEPAGE="https://pear.php.net/package/Crypt_GPG" +SRC_URI="https://download.pear.php.net/package/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~sparc x86" + +RDEPEND="app-alternatives/gpg + dev-lang/php:*[posix(-),unicode(-)] + dev-php/PEAR-Console_CommandLine + dev-php/PEAR-Exception" + +src_prepare() { + default + + sed -i "s|@bin-dir@|${EPREFIX}/usr/bin|" Crypt/GPG/Engine.php || die + sed -i "s|@package-name@|${MY_PN}|" Crypt/GPG/PinEntry.php || die + sed -i "s|@data-dir@|${EPREFIX}/usr/share|" Crypt/GPG/PinEntry.php || die +} + +src_install() { + dodoc README.md + dobin scripts/crypt-gpg-pinentry + + insinto "/usr/share/${MY_PN}" + doins -r data + + insinto /usr/share/php + doins -r Crypt +} diff --git a/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.9.ebuild b/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.9.ebuild new file mode 100644 index 000000000000..92da0309a333 --- /dev/null +++ b/dev-php/PEAR-Crypt_GPG/PEAR-Crypt_GPG-1.6.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_PV="${PV/_/}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="PHP interface to the GNU Privacy Guard (GnuPG)" +HOMEPAGE="https://pear.php.net/package/Crypt_GPG" +SRC_URI="https://download.pear.php.net/package/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~sparc x86" + +RDEPEND="app-crypt/gnupg + dev-lang/php:*[posix(-),unicode(-)] + dev-php/PEAR-Console_CommandLine + dev-php/PEAR-Exception" + +src_prepare() { + default + + sed -i "s|@bin-dir@|${EPREFIX}/usr/bin|" Crypt/GPG/Engine.php || die + sed -i "s|@package-name@|${MY_PN}|" Crypt/GPG/PinEntry.php || die + sed -i "s|@data-dir@|${EPREFIX}/usr/share|" Crypt/GPG/PinEntry.php || die +} + +src_install() { + dodoc README.md + dobin scripts/crypt-gpg-pinentry + + insinto "/usr/share/${MY_PN}" + doins -r data + + insinto /usr/share/php + doins -r Crypt +} diff --git a/dev-php/PEAR-Crypt_GPG/metadata.xml b/dev-php/PEAR-Crypt_GPG/metadata.xml new file mode 100644 index 000000000000..1fef119c78a5 --- /dev/null +++ b/dev-php/PEAR-Crypt_GPG/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Exception/Manifest b/dev-php/PEAR-Exception/Manifest new file mode 100644 index 000000000000..8700aff21566 --- /dev/null +++ b/dev-php/PEAR-Exception/Manifest @@ -0,0 +1 @@ +DIST PEAR_Exception-1.0.2.tgz 5458 BLAKE2B f6e7bc452729ec4419650a0fbd6ef091dd5ec1b91804e1b59c598e44d3c04bf043084e385daa56fd1f6c012090010490922627a465061fe57ef9d74a49960e91 SHA512 80022c03bb665307a9feea88312301c86c903c5b8737559f59fc0028a08976976dd21e19a7dc805c27ec41f90ebd310012cd56ba2c2c006cf0df7cea69323a91 diff --git a/dev-php/PEAR-Exception/PEAR-Exception-1.0.2.ebuild b/dev-php/PEAR-Exception/PEAR-Exception-1.0.2.ebuild new file mode 100644 index 000000000000..eb63dd673bb6 --- /dev/null +++ b/dev-php/PEAR-Exception/PEAR-Exception-1.0.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/-/_}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="The PEAR Exception base class" +HOMEPAGE="https://pear.php.net/package/PEAR_Exception" +SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" +RDEPEND="dev-lang/php:* + !<=dev-php/PEAR-PEAR-1.10.3-r1" +DEPEND="test? ( ${RDEPEND} dev-php/phpunit )" + +src_install() { + insinto /usr/share/php + doins -r PEAR +} + +src_test() { + phpunit --do-not-cache-result tests || die "test suite failed" +} diff --git a/dev-php/PEAR-Exception/metadata.xml b/dev-php/PEAR-Exception/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/PEAR-Exception/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Mail_Mime/Manifest b/dev-php/PEAR-Mail_Mime/Manifest new file mode 100644 index 000000000000..a5ae34821249 --- /dev/null +++ b/dev-php/PEAR-Mail_Mime/Manifest @@ -0,0 +1 @@ +DIST Mail_Mime-1.10.12.tgz 41003 BLAKE2B c5b9ebe167d8698794a32a8995f82ab535e99666056aa5240f3628b5311966178b70bd2587e1bd5fbcb68a7841b4653617a2d0a25d5f62d4f23b24871dff2a70 SHA512 ce25f788ee9b8f0ce3879a5697f6b7e2e117bf30c6aaf8cf4cfa05723021c8a85152f7142dd5b30c8cf1658d1bc3d6284ea5ce1984b8fae27164661ad6b47b96 diff --git a/dev-php/PEAR-Mail_Mime/PEAR-Mail_Mime-1.10.12.ebuild b/dev-php/PEAR-Mail_Mime/PEAR-Mail_Mime-1.10.12.ebuild new file mode 100644 index 000000000000..61aee781f1f4 --- /dev/null +++ b/dev-php/PEAR-Mail_Mime/PEAR-Mail_Mime-1.10.12.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="Create and manipulate mime messages with PHP" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-php/PEAR-PEAR )" + +src_test() { + # Requires the "pear" executable from dev-php/PEAR-PEAR. + pear run-tests tests || die + + # The command succeeds regardless of whether or not the test suite + # passed, but this file is only written when there was a failure. + [[ -f run-tests.log ]] && die "test suite failed" +} diff --git a/dev-php/PEAR-Mail_Mime/metadata.xml b/dev-php/PEAR-Mail_Mime/metadata.xml new file mode 100644 index 000000000000..1fef119c78a5 --- /dev/null +++ b/dev-php/PEAR-Mail_Mime/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Net_IMAP/Manifest b/dev-php/PEAR-Net_IMAP/Manifest new file mode 100644 index 000000000000..1fd38cac978c --- /dev/null +++ b/dev-php/PEAR-Net_IMAP/Manifest @@ -0,0 +1 @@ +DIST Net_IMAP-1.1.4.tgz 40723 BLAKE2B 0e6b7bc01301f26464afdee148318549e239c6bb8fc5646f13fc728b0e581ae8c9bc9961e83065138f31df0a81e4ed79794420be4d3a7c43b6bacc619ed672ad SHA512 2747cdb3d7f11dc4e9bc5c531c4c49cbd1b65b0ff71b30f46f06a4ad10aae341c1323a7c4a9ffb4fa3b8694a75cf60fdcb9cf433c765f29e17bd1e86c5fa929d diff --git a/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild b/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild new file mode 100644 index 000000000000..cbf825168779 --- /dev/null +++ b/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Provides an implementation of the IMAP protocol" +HOMEPAGE="https://pear.php.net/package/Net_IMAP + https://github.com/pear/Net_IMAP" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc64 ~sparc x86" +IUSE="sasl" +RDEPEND="dev-lang/php:* + dev-php/PEAR-Net_Socket + dev-php/PEAR-PEAR + sasl? ( dev-php/PEAR-Auth_SASL )" + +src_install() { + insinto /usr/share/php + doins -r Net + dodoc docs/* + insinto /usr/share/php/.packagexml + newins "${WORKDIR}/package.xml" "${MY_P}.xml" +} + +pkg_postinst() { + # It is not critical to complete so only warn on failure + if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" && \ + -x "${EROOT}/usr/bin/peardev" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_postrm() { + if [[ -x "${EROOT}/usr/bin/peardev" ]]; then + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}" + fi +} diff --git a/dev-php/PEAR-Net_IMAP/metadata.xml b/dev-php/PEAR-Net_IMAP/metadata.xml new file mode 100644 index 000000000000..646af0ae86a3 --- /dev/null +++ b/dev-php/PEAR-Net_IMAP/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Net_SMTP/Manifest b/dev-php/PEAR-Net_SMTP/Manifest new file mode 100644 index 000000000000..72d293721a06 --- /dev/null +++ b/dev-php/PEAR-Net_SMTP/Manifest @@ -0,0 +1,2 @@ +DIST Net_SMTP-1.12.1.tgz 17679 BLAKE2B 93b5ee1bec4deeaac1736e0230814c4c9a51d6594436d54187fefb3c14923ec6b2f8c70be1279dfd4ae300baecb87c4038da000e8bd7a13d8b96d5abe0ed4240 SHA512 5c2ed90157aac3ed140ebaa6ded8781e32d738de60ea6061f1e961effd133bedb4e9887cc3bf06bc78b133c6f9cd95c97a85a18a08a860ddeb28cfbfc62862c6 +DIST Net_SMTP-1.12.2.tgz 17784 BLAKE2B a585051c13ab94c742ea955ac07bc7f2569638549c4b7bdf6c922560cf187d9c6e866ee2acdae219c173a2eccd521d73c848c309e619dac114afc071e3d4232c SHA512 af638b603831e038ee3e6b7dcf76f6aa7fdffe489db02a7e8585d71249099b2045060975df69b6487538ea7f335e2421d143d9f73661586ea40a338885d1a2f5 diff --git a/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.1.ebuild b/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.1.ebuild new file mode 100644 index 000000000000..e931db5c0b9a --- /dev/null +++ b/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A PHP implementation of the SMTP protocol" +HOMEPAGE="https://pear.php.net/package/Net_SMTP" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD-2" +SLOT="0" + +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="examples sasl test" +RDEPEND="dev-lang/php:* + dev-php/PEAR-Net_Socket + dev-php/PEAR-PEAR + sasl? ( dev-php/PEAR-Auth_SASL )" +BDEPEND="test? ( ${RDEPEND} )" +RESTRICT="!test? ( test )" + +src_install() { + use examples && HTML_DOCS=( examples ) + php-pear-r2_src_install +} + +src_test() { + pear run-tests tests || die +} diff --git a/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.2.ebuild b/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.2.ebuild new file mode 100644 index 000000000000..7b9d59533d52 --- /dev/null +++ b/dev-php/PEAR-Net_SMTP/PEAR-Net_SMTP-1.12.2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A PHP implementation of the SMTP protocol" +HOMEPAGE="https://pear.php.net/package/Net_SMTP" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD-2" +SLOT="0" + +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples sasl test" +RDEPEND="dev-lang/php:* + dev-php/PEAR-Net_Socket + dev-php/PEAR-PEAR + sasl? ( dev-php/PEAR-Auth_SASL )" +BDEPEND="test? ( ${RDEPEND} )" +RESTRICT="!test? ( test )" + +src_install() { + use examples && HTML_DOCS=( examples ) + php-pear-r2_src_install +} + +src_test() { + pear run-tests tests || die +} diff --git a/dev-php/PEAR-Net_SMTP/metadata.xml b/dev-php/PEAR-Net_SMTP/metadata.xml new file mode 100644 index 000000000000..1fef119c78a5 --- /dev/null +++ b/dev-php/PEAR-Net_SMTP/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Net_Sieve/Manifest b/dev-php/PEAR-Net_Sieve/Manifest new file mode 100644 index 000000000000..e66492dc4c4d --- /dev/null +++ b/dev-php/PEAR-Net_Sieve/Manifest @@ -0,0 +1 @@ +DIST Net_Sieve-1.4.7.tgz 16883 BLAKE2B d8474bea77dc9a3a047afddb0787f9cf6ccad034db9aa13422991cadba892052e6e07f8ae2e2f5718722da9fca4cd25eb7233d191da428e59eb73f5c057b72ac SHA512 97b569527ab3919d6de9d6c86b3c0cf3adca57af1775a9e7af489f11fb96bbdce0bf52a8a260fc0708d80e0d231239d00807a60ad2e738975edfe29d9a825e85 diff --git a/dev-php/PEAR-Net_Sieve/PEAR-Net_Sieve-1.4.7.ebuild b/dev-php/PEAR-Net_Sieve/PEAR-Net_Sieve-1.4.7.ebuild new file mode 100644 index 000000000000..d5d3655f2d09 --- /dev/null +++ b/dev-php/PEAR-Net_Sieve/PEAR-Net_Sieve-1.4.7.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="An API for talking to sieve (RFC 3028) servers" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="sasl" + +RDEPEND="dev-php/PEAR-Net_Socket + sasl? ( dev-php/PEAR-Auth_SASL )" + +src_install() { + insinto /usr/share/php/Net + doins Sieve.php + php-pear-r2_install_packagexml +} diff --git a/dev-php/PEAR-Net_Sieve/metadata.xml b/dev-php/PEAR-Net_Sieve/metadata.xml new file mode 100644 index 000000000000..1fef119c78a5 --- /dev/null +++ b/dev-php/PEAR-Net_Sieve/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Net_Socket/Manifest b/dev-php/PEAR-Net_Socket/Manifest new file mode 100644 index 000000000000..5399434e4655 --- /dev/null +++ b/dev-php/PEAR-Net_Socket/Manifest @@ -0,0 +1 @@ +DIST Net_Socket-1.2.2.tgz 6903 BLAKE2B a0ee530ebb2962de8560d5cb2147ee831d62c5deac056a7f4944b451853b3ab65f1f46332700d4e18a1ff6e1cce138bf46f5053586bc7f8073143c6aa101e9c6 SHA512 fd415fbd4a6801b63cda3168ff275fdeae233a3cc4c62f9bfe561f83f24f89795a7e7ad862641a73bb6d6e3c0da8b56cd00e7e7a1db616de040ea7883d84caa5 diff --git a/dev-php/PEAR-Net_Socket/PEAR-Net_Socket-1.2.2-r1.ebuild b/dev-php/PEAR-Net_Socket/PEAR-Net_Socket-1.2.2-r1.ebuild new file mode 100644 index 000000000000..0526a2229eba --- /dev/null +++ b/dev-php/PEAR-Net_Socket/PEAR-Net_Socket-1.2.2-r1.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="PHP class interface to TCP sockets" +LICENSE="BSD-2" + +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +RDEPEND=">=dev-php/PEAR-PEAR-1.10.1" diff --git a/dev-php/PEAR-Net_Socket/metadata.xml b/dev-php/PEAR-Net_Socket/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PEAR-Net_Socket/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-PEAR/Manifest b/dev-php/PEAR-PEAR/Manifest new file mode 100644 index 000000000000..4c5d2a6b24f1 --- /dev/null +++ b/dev-php/PEAR-PEAR/Manifest @@ -0,0 +1,2 @@ +DIST PEAR-1.10.16.tgz 293781 BLAKE2B 0525e5ac748c5f2690e04b009618fdf3b65d37822844c553f87e50a7356833121b43d95d4ccae394a0ebd388ca078e17e344b9f7ddebc385715e091eb2f3cd9c SHA512 274e642a1c606e0caa9f4c9e4c5fcca69b92b8bcc952dfcb7b8bc1e249eaf04eed2d2caddafe3f722760a723fc1a7d851a404d32115a95f3c3157c91300f0b7b +DIST PEAR-1.10.18.tgz 294251 BLAKE2B 9a651afbb311b93cc4e86641775287d84cac974bc688e5ca07489b5396b67eb9e4e7161f3e9cc8f71ef3725a6b9597aa2cc10a88258820a5c2692fb525a073bb SHA512 869ca2caa158d6044625c3f4a1edd0acd6bc4096506617d3e1b2b54618c6465120a8197604271e7d4745ea7060658b81b25d5fdc91e07d055909977c7c831ce9 diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.16.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.16.ebuild new file mode 100644 index 000000000000..4d9cb6e7e16c --- /dev/null +++ b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.16.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="PEAR Base System" +HOMEPAGE="https://pear.php.net/package/PEAR" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*[cli(-),xml(-),zlib(-)] + dev-php/PEAR-Archive_Tar + dev-php/PEAR-Console_Getopt + dev-php/PEAR-Exception + dev-php/PEAR-Structures_Graph + dev-php/PEAR-XML_Util" + +PATCHES=( "${FILESDIR}/gentoo-libtool-mismatch-fix-v2.patch" ) + +pkg_setup() { + [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear" + [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear" + [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp" + + elog + elog "cache_dir is set to: ${PEAR_CACHEDIR}" + elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" + elog "temp_dir is set to: ${PEAR_TEMPDIR}" + elog + elog "If you want to change the above values, you need to set" + elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" + elog "accordingly in /etc/portage/make.conf and re-emerge ${PN}." + elog +} + +src_prepare() { + default + # Exception.php is part of dev-php/PEAR-Exception. + rm PEAR/Exception.php || die "failed to remove PEAR/Exception.php" +} + +src_install() { + insinto /usr/share/php + doins -r PEAR/ + doins -r OS/ + doins PEAR.php System.php + doins scripts/pearcmd.php + doins scripts/peclcmd.php + + newbin scripts/pear.sh pear + newbin scripts/peardev.sh peardev + newbin scripts/pecl.sh pecl + + # adjust some scripts for current version + [[ -z "${PEAR}" ]] && PEAR="${PV}" + for i in pearcmd.php peclcmd.php ; do + sed "s:@pear_version@:${PEAR}:g" -i "${D}/usr/share/php/${i}" \ + || die "failed to sed pear_version" + done + + for i in pear peardev pecl ; do + sed "s:@bin_dir@:${EPREFIX}/usr/bin:g" -i "${D}/usr/bin/${i}" \ + || die "failed to sed @bin_dir@ in ${i}" + sed "s:@php_dir@:${EPREFIX}/usr/share/php:g" -i "${D}/usr/bin/${i}" \ + || die "failed to sed @php_dir@ in ${i}" + done + + sed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" \ + -i "${D}/usr/bin/pear" \ + || die "failed to set PHP ini values in pear executable" + + sed "s:@package_version@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/Command/Package.php" \ + || die "failed to sed @package_version@" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/Dependency2.php" \ + || die "failed to sed @PEAR-VER@ in Dependency2.php" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v1.php" \ + || die "failed to sed @PEAR-VER@ in v1.php" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v2.php" \ + || die "failed to sed @PEAR-VER@ in v2.php" + + # finalize install + insinto /etc + newins "${FILESDIR}"/pear.conf-r2 pear.conf + + sed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed PHPCLILEN in pear.conf" + + sed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed CACHEDIRLEN in pear.conf" + + sed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed DOWNLOADDIRLEN in pear.conf" + + sed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed TEMPDIRLEN in pear.conf" + + # Change the paths for eprefix! + sed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the docs path (prefix) in pear.conf" + + sed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the data path (prefix) in pear.conf" + + sed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the tests path (prefix) in pear.conf" + + sed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the PHP include path (prefix) in pear.conf" + + sed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the bin path (prefix) in pear.conf" + + [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#"${EPREFIX}"}" + keepdir "${PEAR_CACHEDIR#"${EPREFIX}"}" + diropts -m1777 + keepdir "${PEAR_DOWNLOADDIR#"${EPREFIX}"}" + + insinto /usr/share/php/.packagexml + newins "${WORKDIR}/package.xml" "${MY_P}.xml" +} + +pkg_config() { + # Update PEAR/PECL channels as needed, add new ones to the list if needed + elog "Updating PEAR/PECL channels" + local pearchans="pear.php.net pecl.php.net pear.symfony-project.com" + + for chan in ${pearchans} ; do + # The first command may fail if, for example, the channels have + # already been initialized. + pear channel-discover ${chan} + pear channel-update ${chan} || die "failed to update channels: ${chan}" + done +} + +pkg_postinst() { + pear clear-cache || die "failed to clear PEAR cache" + + elog "Run 'emerge --config =${PF}' to automatically update the PEAR/PECL channels while online." + + # Register the package from the package.xml file + # It is not critical to complete so only warn on failure + if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_prerm() { + # Uninstall known dependency + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/PEAR" +} diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.18.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.18.ebuild new file mode 100644 index 000000000000..ce8ef66bdbda --- /dev/null +++ b/dev-php/PEAR-PEAR/PEAR-PEAR-1.10.18.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="PEAR Base System" +HOMEPAGE="https://pear.php.net/package/PEAR" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND="dev-lang/php:*[cli(-),xml(-),zlib(-)] + dev-php/PEAR-Archive_Tar + dev-php/PEAR-Console_Getopt + dev-php/PEAR-Exception + dev-php/PEAR-Structures_Graph + dev-php/PEAR-XML_Util" + +PATCHES=( "${FILESDIR}/gentoo-libtool-mismatch-fix-v2.patch" ) + +pkg_setup() { + [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear" + [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear" + [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp" + + elog + elog "cache_dir is set to: ${PEAR_CACHEDIR}" + elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" + elog "temp_dir is set to: ${PEAR_TEMPDIR}" + elog + elog "If you want to change the above values, you need to set" + elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" + elog "accordingly in /etc/portage/make.conf and re-emerge ${PN}." + elog +} + +src_prepare() { + default + # Exception.php is part of dev-php/PEAR-Exception. + rm PEAR/Exception.php || die "failed to remove PEAR/Exception.php" +} + +src_install() { + insinto /usr/share/php + doins -r PEAR/ + doins -r OS/ + doins PEAR.php System.php + doins scripts/pearcmd.php + doins scripts/peclcmd.php + + newbin scripts/pear.sh pear + newbin scripts/peardev.sh peardev + newbin scripts/pecl.sh pecl + + # adjust some scripts for current version + [[ -z "${PEAR}" ]] && PEAR="${PV}" + for i in pearcmd.php peclcmd.php ; do + sed "s:@pear_version@:${PEAR}:g" -i "${D}/usr/share/php/${i}" \ + || die "failed to sed pear_version" + done + + for i in pear peardev pecl ; do + sed "s:@bin_dir@:${EPREFIX}/usr/bin:g" -i "${D}/usr/bin/${i}" \ + || die "failed to sed @bin_dir@ in ${i}" + sed "s:@php_dir@:${EPREFIX}/usr/share/php:g" -i "${D}/usr/bin/${i}" \ + || die "failed to sed @php_dir@ in ${i}" + done + + sed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" \ + -i "${D}/usr/bin/pear" \ + || die "failed to set PHP ini values in pear executable" + + sed "s:@package_version@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/Command/Package.php" \ + || die "failed to sed @package_version@" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/Dependency2.php" \ + || die "failed to sed @PEAR-VER@ in Dependency2.php" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v1.php" \ + || die "failed to sed @PEAR-VER@ in v1.php" + + sed "s:@PEAR-VER@:${PEAR}:g" \ + -i "${D}/usr/share/php/PEAR/PackageFile/Parser/v2.php" \ + || die "failed to sed @PEAR-VER@ in v2.php" + + # finalize install + insinto /etc + newins "${FILESDIR}"/pear.conf-r2 pear.conf + + sed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed PHPCLILEN in pear.conf" + + sed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed CACHEDIRLEN in pear.conf" + + sed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed DOWNLOADDIRLEN in pear.conf" + + sed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed TEMPDIRLEN in pear.conf" + + # Change the paths for eprefix! + sed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the docs path (prefix) in pear.conf" + + sed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the data path (prefix) in pear.conf" + + sed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the tests path (prefix) in pear.conf" + + sed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the PHP include path (prefix) in pear.conf" + + sed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" \ + -i "${D}/etc/pear.conf" \ + || die "failed to sed the bin path (prefix) in pear.conf" + + [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#"${EPREFIX}"}" + keepdir "${PEAR_CACHEDIR#"${EPREFIX}"}" + diropts -m1777 + keepdir "${PEAR_DOWNLOADDIR#"${EPREFIX}"}" + + insinto /usr/share/php/.packagexml + newins "${WORKDIR}/package.xml" "${MY_P}.xml" +} + +pkg_config() { + # Update PEAR/PECL channels as needed, add new ones to the list if needed + elog "Updating PEAR/PECL channels" + local pearchans="pear.php.net pecl.php.net pear.symfony-project.com" + + for chan in ${pearchans} ; do + # The first command may fail if, for example, the channels have + # already been initialized. + pear channel-discover ${chan} + pear channel-update ${chan} || die "failed to update channels: ${chan}" + done +} + +pkg_postinst() { + pear clear-cache || die "failed to clear PEAR cache" + + elog "Run 'emerge --config =${PF}' to automatically update the PEAR/PECL channels while online." + + # Register the package from the package.xml file + # It is not critical to complete so only warn on failure + if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_prerm() { + # Uninstall known dependency + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/PEAR" +} diff --git a/dev-php/PEAR-PEAR/files/gentoo-libtool-mismatch-fix-v2.patch b/dev-php/PEAR-PEAR/files/gentoo-libtool-mismatch-fix-v2.patch new file mode 100644 index 000000000000..f9a894100c8b --- /dev/null +++ b/dev-php/PEAR-PEAR/files/gentoo-libtool-mismatch-fix-v2.patch @@ -0,0 +1,15 @@ +diff -aruN PEAR.orig/Builder.php PEAR/Builder.php +--- a/PEAR/Builder.php 2014-07-12 08:25:32.000000000 -0400 ++++ b/PEAR/Builder.php 2015-01-16 13:43:14.927894013 -0500 +@@ -340,6 +340,11 @@ + } + // }}} end of interactive part + ++ if (file_exists('aclocal.m4')) { ++ $this->_runCommand('rm aclocal.m4'); ++ $this->_runCommand('autoreconf'); ++ } ++ + // FIXME make configurable + if (!$user=getenv('USER')) { + $user='defaultuser'; diff --git a/dev-php/PEAR-PEAR/files/pear.conf-r2 b/dev-php/PEAR-PEAR/files/pear.conf-r2 new file mode 100644 index 000000000000..277227b4a47b --- /dev/null +++ b/dev-php/PEAR-PEAR/files/pear.conf-r2 @@ -0,0 +1,2 @@ +#PEAR_Config 0.9 +a:9:{s:7:"doc_dir";s:19:"/usr/share/php/docs";s:8:"data_dir";s:19:"/usr/share/php/data";s:8:"test_dir";s:20:"/usr/share/php/tests";s:7:"php_dir";s:14:"/usr/share/php";s:7:"bin_dir";s:8:"/usr/bin";s:7:"php_bin";s:12:"/usr/bin/php";s:9:"cache_dir";s:CACHEDIRLEN:"CACHEDIR";s:12:"download_dir";s:DOWNLOADDIRLEN:"DOWNLOADDIR";s:8:"temp_dir";s:TEMPDIRLEN:"TEMPDIR";} diff --git a/dev-php/PEAR-PEAR/metadata.xml b/dev-php/PEAR-PEAR/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/PEAR-PEAR/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-Structures_Graph/Manifest b/dev-php/PEAR-Structures_Graph/Manifest new file mode 100644 index 000000000000..6fe4b20376f8 --- /dev/null +++ b/dev-php/PEAR-Structures_Graph/Manifest @@ -0,0 +1 @@ +DIST Structures_Graph-1.2.0.tgz 12507 BLAKE2B 2dca23da6d9b42aefee9c10f0ff3cbd0946186b332d0f56da65d068e02b9858c9113568b9850c4b1aae0ed4dd15b2c463765f2ed3d232083d5d6ef130443b14f SHA512 a256e6be4ac2011678942d97e39975973aed8b8dbab535325810ae97fb322a4aaac8daf1302f34f239a2b38649ddb39c1ae0a8c325aa1c6cbd90208adf9973dc diff --git a/dev-php/PEAR-Structures_Graph/PEAR-Structures_Graph-1.2.0.ebuild b/dev-php/PEAR-Structures_Graph/PEAR-Structures_Graph-1.2.0.ebuild new file mode 100644 index 000000000000..d06c684218c2 --- /dev/null +++ b/dev-php/PEAR-Structures_Graph/PEAR-Structures_Graph-1.2.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Graph datastructure manipulation library" +HOMEPAGE="https://pear.php.net/package/Structures_Graph" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*" +PDEPEND="dev-php/PEAR-PEAR" + +src_install() { + insinto /usr/share/php + doins -r Structures +} diff --git a/dev-php/PEAR-Structures_Graph/metadata.xml b/dev-php/PEAR-Structures_Graph/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PEAR-Structures_Graph/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PEAR-XML_Util/Manifest b/dev-php/PEAR-XML_Util/Manifest new file mode 100644 index 000000000000..ddf350acf068 --- /dev/null +++ b/dev-php/PEAR-XML_Util/Manifest @@ -0,0 +1 @@ +DIST XML_Util-1.4.5.tgz 19191 BLAKE2B 2097e91bc6ed46e4af5713fe6e3f764b401f14ff1e06c0f96af68476db5e8cf2b463c0a9bed3eecd5e22c24108394fe1f622e4986888af131ee9a3c260f8c652 SHA512 dd373c15ea8057e1a31953a10d75a4821bb9ad63d55ec5ccdbe17c114895ac9b9a57871d50f9f83bca7e3920b461417aa09063cb06051834996d4a8aebfa84c9 diff --git a/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild b/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild new file mode 100644 index 000000000000..d828020644b6 --- /dev/null +++ b/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="XML utility class" +HOMEPAGE="https://pear.php.net/package/XML_Util" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" +IUSE="examples" + +# PCRE is needed for a few calls to preg_replace and preg_match. +RDEPEND="dev-lang/php:*[pcre(+)]" +PDEPEND="dev-php/PEAR-PEAR" + +src_install() { + insinto /usr/share/php + doins -r XML + + use examples && dodoc -r examples + insinto /usr/share/php/.packagexml + if [[ -f "${WORKDIR}/package.xml" ]] ; then + newins "${WORKDIR}/package.xml" "${MY_P}.xml" + fi +} + +pkg_postinst() { + # Register the package from the package{,2}.xml file + # It is not critical to complete so only warn on failure + # Can only be done on reinstall/upgrade as this is a PEAR dep + if [[ -n "${REPLACING_VERSIONS}" && -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_postrm() { + # Uninstall known dependency + [[ -n "${REPLACING_VERSIONS}" ]] && \ + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/XML_Util" +} diff --git a/dev-php/PEAR-XML_Util/metadata.xml b/dev-php/PEAR-XML_Util/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/PEAR-XML_Util/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest new file mode 100644 index 000000000000..f3163143f556 --- /dev/null +++ b/dev-php/PHPMailer/Manifest @@ -0,0 +1 @@ +DIST PHPMailer-6.9.1.tar.gz 109263 BLAKE2B 97820b1fb941e120839d89d928661b218555ebb58f2ccd25ed4236a656f4f48f518e7522ad5d2eb60a9d038e5e0ebdc9198597d6f1c82eb91de8953c71adeced SHA512 a02d95405ffbfdc26d214d091508c8cd61e07b7285f264cc1c7bdf6bb1427b6cdde759b627710fb20cb988ded9299bfec85e61e5749932c245e79262d6f21c06 diff --git a/dev-php/PHPMailer/PHPMailer-6.9.1.ebuild b/dev-php/PHPMailer/PHPMailer-6.9.1.ebuild new file mode 100644 index 000000000000..ebb698c6a0d5 --- /dev/null +++ b/dev-php/PHPMailer/PHPMailer-6.9.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Full-featured email creation and transfer class for PHP" +HOMEPAGE="https://github.com/PHPMailer/PHPMailer" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# To help out the Composer children, the tests and examples are missing +# from the release tarballs. +IUSE="idn ssl" + +# The ctype and filter extensions get used unconditionally, with no +# fallback and no "extension missing" exception. All of the other +# extensions are technically optional, depending on how you use +# PHPMailer and whether or not you're willing to settle for fallback +# implementations. +# +# The insane dependency string is to prevent the ctype and filter +# extensions from being provided by one version (i.e. slot) of PHP, +# while intl and unicode are provided by another. +RDEPEND=" + ssl? ( + idn? ( dev-lang/php:*[ctype,filter,intl,ssl,unicode] ) + !idn? ( dev-lang/php:*[ctype,filter,ssl] ) + ) + !ssl? ( + idn? ( dev-lang/php:*[ctype,filter,intl,unicode] ) + !idn? ( dev-lang/php:*[ctype,filter] ) + )" + +src_install() { + # The PHPMailer class loads its language files + # using a relative path, so we need to keep the "src" here. + insinto "/usr/share/php/${PN}" + doins -r language src + + dodoc README.md SECURITY.md +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${PN}/." + elog "Upstream no longer provides an autoloader, so you will need" + elog "to include each source file (for example: PHPMailer.php," + elog "Exception.php,...) that you need." +} diff --git a/dev-php/PHPMailer/metadata.xml b/dev-php/PHPMailer/metadata.xml new file mode 100644 index 000000000000..1e596d5ea36d --- /dev/null +++ b/dev-php/PHPMailer/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:phpmailer_project:phpmailer</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PHP_CodeSniffer/Manifest b/dev-php/PHP_CodeSniffer/Manifest new file mode 100644 index 000000000000..39841b3e66aa --- /dev/null +++ b/dev-php/PHP_CodeSniffer/Manifest @@ -0,0 +1 @@ +DIST PHP_CodeSniffer-3.6.1.tgz 773181 BLAKE2B a85a0008fe9788bb48723fdd6a62d646a70bb342099693299def9320ca12971c48d8bc698e001f3249e8bb94963735c57529fe2d3101d53ded5ffd0946e07d4f SHA512 4992a460494cf58e5731e10df216204842168465731c0d002b7913fbaa85370f01077f70c96b4390158fbcf52ee021650ab6f13609ea3133370b89f34c73343c diff --git a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.6.1.ebuild b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.6.1.ebuild new file mode 100644 index 000000000000..f15c9ff98ca6 --- /dev/null +++ b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.6.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Detect violations of PHP code standards" +HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer" + +# The test suite isn't part of the Github tarball at the moment. Keep an +# eye on https://github.com/squizlabs/PHP_CodeSniffer/issues/548 +SRC_URI="http://download.pear.php.net/package/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php:*[cli(-),tokenizer(-),xmlwriter(-)]" +DEPEND="test? ( + ${RDEPEND} + <dev-php/phpunit-6 + )" + +DOCS=( CONTRIBUTING.md README.md ) + +src_prepare() { + sed -i "s~@data_dir@~${EPREFIX}/usr/share/php/data~" src/Config.php || die + default +} + +src_test() { + # The test suite will fail if date.timezone isn't set in php.ini. + phpunit -d date.timezone=UTC tests/AllTests.php \ + || die "test suite failed" +} + +src_install() { + local MY_PN="PHP/CodeSniffer" script + # The PEAR eclass would install everything into the wrong location. + insinto "/usr/share/php/${MY_PN}" + doins -r src autoload.php + + insinto "/usr/share/php/data/${MY_PN}" + doins CodeSniffer.conf.dist + # These load code via relative paths, so they have to be symlinked + # and not dobin'd. + exeinto "/usr/share/php/${MY_PN}/bin" + for script in phpcbf phpcs; do + doexe "bin/${script}" + dosym "../share/php/${MY_PN}/bin/${script}" "/usr/bin/${script}" + done + + einstalldocs +} diff --git a/dev-php/PHP_CodeSniffer/metadata.xml b/dev-php/PHP_CodeSniffer/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/PHP_CodeSniffer/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/PHP_Timer/Manifest b/dev-php/PHP_Timer/Manifest new file mode 100644 index 000000000000..29415f02a66d --- /dev/null +++ b/dev-php/PHP_Timer/Manifest @@ -0,0 +1,2 @@ +DIST PHP_Timer-2.1.2.tar.gz 7090 BLAKE2B c99dd69433b3579e9ed81f06188cac280b6ac383bce12acd9c6a00b5a6d6017a94c427692b639ad1516c1faebec8e160b7cd5c7e5e96043dd3dcb6d283d2095b SHA512 199175e048560756867180cd99a3ca1766431d14091f1448cd8011df5f7824504a6c586ef15d9e53374bdb9dbd1731c05b44509e59d92d725908ec2c46d7d576 +DIST PHP_Timer-5.0.3.tar.gz 5363 BLAKE2B b63d438eab1dd5d872a1a632f1861d216dbdd7ab073a8fa36bad7f93134fd0c98ef7eb049189aeb6373b60eba592cc5add0044ac577d0b9728f3f78156dae914 SHA512 e1642cd0d247a49981f142b6975339c4abaf26cf4847783f309a0a15ba7a55520c7d1e11a87ea9b923337a9972f4dc95ee11121484a75c9c7a20882f664e8ba5 diff --git a/dev-php/PHP_Timer/PHP_Timer-2.1.2-r1.ebuild b/dev-php/PHP_Timer/PHP_Timer-2.1.2-r1.ebuild new file mode 100644 index 000000000000..0d9fbb38cce6 --- /dev/null +++ b/dev-php/PHP_Timer/PHP_Timer-2.1.2-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="php-timer" + +DESCRIPTION="Utility class for timing" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:*" + +src_install() { + insinto /usr/share/php/PHP/Timer + doins -r src/Timer.php src/{Runtime,}Exception.php + newins "${FILESDIR}/autoload-2.1.2.php" autoload.php +} + +pkg_postinst() { + ewarn "This library now loads via /usr/share/php/PHP/Timer/autoload.php" + ewarn "Please update any scripts to require the autoloader" +} diff --git a/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild b/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild new file mode 100644 index 000000000000..150cafa72d3e --- /dev/null +++ b/dev-php/PHP_Timer/PHP_Timer-5.0.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="php-timer" + +DESCRIPTION="Utility class for timing" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/PHP/Timer + doins -r src/* + newins "${FILESDIR}/autoload-5.0.3.php" autoload.php +} + +pkg_postinst() { + ewarn "This library now loads via /usr/share/php/PHP/Timer/autoload.php" + ewarn "Please update any scripts to require the autoloader" +} diff --git a/dev-php/PHP_Timer/files/autoload-2.1.2.php b/dev-php/PHP_Timer/files/autoload-2.1.2.php new file mode 100644 index 000000000000..65490d9ae6e4 --- /dev/null +++ b/dev-php/PHP_Timer/files/autoload-2.1.2.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for dev-php/PHP_Timer */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\timer\exception' => '/Exception.php', + 'sebastianbergmann\timer\runtimeexception' => '/RuntimeException.php', + 'sebastianbergmann\timer\timer' => '/Timer.php', + ], + __DIR__ +); diff --git a/dev-php/PHP_Timer/files/autoload-5.0.3.php b/dev-php/PHP_Timer/files/autoload-5.0.3.php new file mode 100644 index 000000000000..45b65b6045e8 --- /dev/null +++ b/dev-php/PHP_Timer/files/autoload-5.0.3.php @@ -0,0 +1,18 @@ +<?php +/* Autoloader for dev-php/PHP_Timer */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\timer\duration' => '/Duration.php', + 'sebastianbergmann\timer\exception' => '/exceptions/Exception.php', + 'sebastianbergmann\timer\noactivetimerexception' => '/exceptions/NoActiveTimerException.php', + 'sebastianbergmann\timer\resourceusageformatter' => '/ResourceUsageFormatter.php', + 'sebastianbergmann\timer\timer' => '/Timer.php', + 'sebastianbergmann\timer\timesincestartofrequestnotavailableexception' => '/exceptions/TimeSinceStartOfRequestNotAvailableException.php', + ], + __DIR__ +); diff --git a/dev-php/PHP_Timer/metadata.xml b/dev-php/PHP_Timer/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/PHP_Timer/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/SabreAMF/Manifest b/dev-php/SabreAMF/Manifest new file mode 100644 index 000000000000..aa0a98e487e4 --- /dev/null +++ b/dev-php/SabreAMF/Manifest @@ -0,0 +1 @@ +DIST SabreAMF-1.5.0.tar.gz 83408 BLAKE2B 2df210f9a42e00de0adfac94ff9b89ccc918796c79e7df5602ba71bf8cf44ebea7374557d1062e1f95c9578cc95451daf36986e98042f2bdcb17e43581096cfe SHA512 4c0eead7f3adb64001cb4f40f680ade4cd0259d8b24d57970081e19447a69269753c5c5adecef327ba3a9f0cb2c14ff05575c289694bee752007f03e14af4d0f diff --git a/dev-php/SabreAMF/SabreAMF-1.5.0.ebuild b/dev-php/SabreAMF/SabreAMF-1.5.0.ebuild new file mode 100644 index 000000000000..3ebc02a49c50 --- /dev/null +++ b/dev-php/SabreAMF/SabreAMF-1.5.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="SabreAMF is a Flash Remoting server and client for PHP" +HOMEPAGE="https://github.com/evert/SabreAMF" +SRC_URI="https://github.com/evert/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +IUSE="examples" + +RDEPEND="dev-php/fedora-autoloader" + +DOCS=( README.md ChangeLog ) + +src_install() { + insinto /usr/share/php/${PN} + doins -r lib/${PN}/* "${FILESDIR}/autoload.php" + einstalldocs + if use examples ; then + docinto examples + docompress -x /usr/share/doc/${P}/examples + dodoc examples/* + fi +} diff --git a/dev-php/SabreAMF/files/autoload.php b/dev-php/SabreAMF/files/autoload.php new file mode 100644 index 000000000000..55c3461e485f --- /dev/null +++ b/dev-php/SabreAMF/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/SabreAMF */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +Fedora\Autoloader\Autoload::addPsr0('SabreAMF_', __DIR__.'/..'); diff --git a/dev-php/SabreAMF/metadata.xml b/dev-php/SabreAMF/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/SabreAMF/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/Text_Template/Manifest b/dev-php/Text_Template/Manifest new file mode 100644 index 000000000000..8e8f0ba3af55 --- /dev/null +++ b/dev-php/Text_Template/Manifest @@ -0,0 +1 @@ +DIST Text_Template-2.0.4.tar.gz 3391 BLAKE2B 717547f81637272194cd93e881b51cf49f95aa4f9768cd836ad1867c5ede06991da91dc0915575c53eb0cf8a26f72cf9c2e77be4ffb755fd8d608df14e713820 SHA512 84a6b64f2ba8b89a461a44dd85b3706e210ca1bda90e7bb290ef9bd3c975378c114a44ab8442fc98994473df87d6d7e0d1a70f63878f815d3709224447a032d1 diff --git a/dev-php/Text_Template/Text_Template-2.0.4.ebuild b/dev-php/Text_Template/Text_Template-2.0.4.ebuild new file mode 100644 index 000000000000..735ba91064d0 --- /dev/null +++ b/dev-php/Text_Template/Text_Template-2.0.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="php-text-template" + +DESCRIPTION="A simple template engine" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/Text/Template + doins -r src/* + newins "${FILESDIR}/autoload-2.0.4.php" autoload.php +} + +pkg_postinst() { + ewarn "This library now loads via /usr/share/php/Text/Template/autoload.php" + ewarn "Please update any scripts to require the autoloader" +} diff --git a/dev-php/Text_Template/files/autoload-2.0.4.php b/dev-php/Text_Template/files/autoload-2.0.4.php new file mode 100644 index 000000000000..3ca8a33da12e --- /dev/null +++ b/dev-php/Text_Template/files/autoload-2.0.4.php @@ -0,0 +1,16 @@ +<?php +/* Autoloader for dev-php/Text_Template */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\\template' => '/Template.php', + 'sebastianbergmann\\template\\exception' => '/exceptions/Exception.php', + 'sebastianbergmann\\template\\invalidargumentexception' => '/exceptions/InvalidArgumentException.php', + 'sebastianbergmann\\template\\runtimeexception' => '/exceptions/RuntimeException.php', + ), + __DIR__ +); diff --git a/dev-php/Text_Template/files/autoload.php b/dev-php/Text_Template/files/autoload.php new file mode 100644 index 000000000000..d6658c6944d8 --- /dev/null +++ b/dev-php/Text_Template/files/autoload.php @@ -0,0 +1,13 @@ +<?php +/* Autoloader for dev-php/Text_Template */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'text_template' => '/Template.php', + ), + __DIR__ +); diff --git a/dev-php/Text_Template/metadata.xml b/dev-php/Text_Template/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/Text_Template/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/adodb/Manifest b/dev-php/adodb/Manifest new file mode 100644 index 000000000000..51262f31db99 --- /dev/null +++ b/dev-php/adodb/Manifest @@ -0,0 +1 @@ +DIST adodb-5.22.7.tar.gz 447580 BLAKE2B 1d8e6518155585f7e82f697e463832c4d798dce0bc59fb4a068aef7430945fe7cbfb7112b150f36fc91fb9555189276032da420bec68a71c6438c1d513dd3594 SHA512 731e5def40699bc445b9ef44585b7db6f890d977aaafaac58ea1fcfadd9d89d00871a279549f6e8ff683fe56f7061d78cdc2457e99ed0636a8497cae44bddc99 diff --git a/dev-php/adodb/adodb-5.22.7.ebuild b/dev-php/adodb/adodb-5.22.7.ebuild new file mode 100644 index 000000000000..1847830f6bd8 --- /dev/null +++ b/dev-php/adodb/adodb-5.22.7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="ADOdb" +DESCRIPTION="Database abstraction layer for PHP" +HOMEPAGE="https://adodb.org/ https://github.com/ADOdb/ADOdb" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="BSD LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~sparc x86" + +# If you want to be picky, we should require that PHP be built with at +# least one database driver enabled; otherwise adodb isn't going to be +# able to do anything. But, the database USE flags for dev-lang/php are +# a mess. What we would *like* to do is have a set of USE flags for +# adodb that then propagate to PHP itself... for example, adodb[mysql] +# could require php[mysql]. To do that would require that we duplicate +# the database USE flag mess for adodb -- not desirable. Instead we punt +# and let the user install adodb unconditionally. If he doesn't have +# database support in PHP, it just won't work. +RDEPEND="dev-lang/php:*" + +src_install() { + DOCS="README.md docs/changelog*.md xmlschema*.dtd session/*.sql" + DOCS+=" session/*.txt session/*.xml pear/auth_adodb_example.php" + DOCS+=" pear/readme.Auth.txt" + + dodoc ${DOCS} + rm -f ${DOCS} || die "failed to remove docs before installation" + + insinto "/usr/share/php/${PN}" + doins *.php + doins -r datadict drivers lang pear perf session xsl +} diff --git a/dev-php/adodb/metadata.xml b/dev-php/adodb/metadata.xml new file mode 100644 index 000000000000..96879d98928b --- /dev/null +++ b/dev-php/adodb/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/awl/Manifest b/dev-php/awl/Manifest new file mode 100644 index 000000000000..a41b68e4727a --- /dev/null +++ b/dev-php/awl/Manifest @@ -0,0 +1,2 @@ +DIST awl-0.64.tar.xz 127412 BLAKE2B f045c017a07ebdef629e3a373cf540f866d935fed493382c27c1413fd66f1d103ee715b48fa3111e13c06cd34e7a3fc5c9a845b80fc93ed8971a55fd8a011dcd SHA512 3738e422b78b1904eb3e5f6b47c5a3e9fc5c2bfef644c84285da0ff242c560ec12651c8231c8f2aa324108ef2450af955b938f44ce3d54f280da6936cfc9889e +DIST awl-0.65.tar.xz 134108 BLAKE2B 453ba309123719c68237a92b5f1b9590929f84e9ff4bd5c8499c17b3a11be778406d39ce6e5c9efa19c70017c0005952aac0c578204213a44dae8bbcaf30ffb7 SHA512 681e4de386af95d294c604e47a18d20b41f9b451cecafa4dfe6e668e2f6067df23215ef364789e038ad6070db832d98fef8f51c4a618eec5f2720767db302c35 diff --git a/dev-php/awl/awl-0.64.ebuild b/dev-php/awl/awl-0.64.ebuild new file mode 100644 index 000000000000..077adfd6d1e1 --- /dev/null +++ b/dev-php/awl/awl-0.64.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Andrew McMillan's Web Libraries" +HOMEPAGE="https://gitlab.com/davical-project/awl" +SRC_URI="https://www.davical.org/downloads/${PN}_${PV}.orig.tar.xz -> ${P}.tar.xz" +S="${WORKDIR}" +LICENSE="GPL-2 GPL-2+ GPL-3+ LGPL-2+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Requires PHPunit and we no longer have it. +RESTRICT=test + +RDEPEND="dev-lang/php:*[pdo,xml]" + +PATCHES=( "${FILESDIR}/${P}-php8.x-compat.patch" ) + +src_compile() { + : +} + +src_install() { + einstalldocs + insinto /usr/share/php/${PN} + doins -r dba inc +} diff --git a/dev-php/awl/awl-0.65.ebuild b/dev-php/awl/awl-0.65.ebuild new file mode 100644 index 000000000000..3f87c5fe0a51 --- /dev/null +++ b/dev-php/awl/awl-0.65.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Andrew McMillan's Web Libraries" +HOMEPAGE="https://gitlab.com/davical-project/awl" +SRC_URI="https://www.davical.org/downloads/${PN}_${PV}.orig.tar.xz -> ${P}.tar.xz" +S="${WORKDIR}" +LICENSE="GPL-2 GPL-2+ GPL-3+ LGPL-2+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Requires PHPunit and we no longer have it. +RESTRICT=test + +RDEPEND="dev-lang/php:*[pdo,xml]" + +src_compile() { + : +} + +src_install() { + einstalldocs + insinto /usr/share/php/${PN} + doins -r dba inc +} diff --git a/dev-php/awl/files/awl-0.64-php8.x-compat.patch b/dev-php/awl/files/awl-0.64-php8.x-compat.patch new file mode 100644 index 000000000000..dd64c7b0bf14 --- /dev/null +++ b/dev-php/awl/files/awl-0.64-php8.x-compat.patch @@ -0,0 +1,463 @@ +From d3759db21195b1e49e171f83f9685bd3b650569a Mon Sep 17 00:00:00 2001 +From: Florian Schlichting <fsfs@debian.org> +Date: Thu, 23 Mar 2023 22:19:06 +0100 +Subject: [PATCH 01/16] use array_merge instead of "+" to concatenate arrays + +I noticed this when looking for other occurrences of davical#288 + +It likely has no consequences as we're never calling GetElements() with +a second argument... +--- + inc/XMLElement.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/inc/XMLElement.php b/inc/XMLElement.php +index 08d6cbd..d36bf52 100644 +--- a/inc/XMLElement.php ++++ b/inc/XMLElement.php +@@ -157,7 +157,7 @@ class XMLElement { + $elements[] = $v; + } + if ( $recursive ) { +- $elements = $elements + $v->GetElements($tag,true); ++ $elements = array_merge( $elements, $v->GetElements($tag,true) ); + } + } + } +-- +2.43.2 + +From ff437d2ad1f3e947012a4deedaf79d4f39476fb7 Mon Sep 17 00:00:00 2001 +From: Matthew Hunt <matt@catalyst.net.nz> +Date: Fri, 9 Jun 2023 12:50:25 +1200 +Subject: [PATCH 02/16] Fix for some deprecations and warnings in PHP8.1 + +--- + inc/AuthPlugins.php | 2 +- + inc/AwlDBDialect.php | 10 ++++++---- + inc/AwlQuery.php | 2 +- + inc/PgQuery.php | 12 ++++++------ + 4 files changed, 14 insertions(+), 12 deletions(-) + +diff --git a/inc/AuthPlugins.php b/inc/AuthPlugins.php +index 1b05487..d9fa3dd 100644 +--- a/inc/AuthPlugins.php ++++ b/inc/AuthPlugins.php +@@ -37,7 +37,7 @@ require_once('DataUpdate.php'); + function auth_other_awl( $username, $password ) { + global $c; + +- $authconn = pg_Connect($c->authenticate_hook['config']['connection']); ++ $authconn = pg_connect($c->authenticate_hook['config']['connection']); + if ( ! $authconn ) { + echo <<<EOERRMSG + <html><head><title>Database Connection Failure</title></head><body> +diff --git a/inc/AwlDBDialect.php b/inc/AwlDBDialect.php +index fac5a23..f2c5b95 100644 +--- a/inc/AwlDBDialect.php ++++ b/inc/AwlDBDialect.php +@@ -82,7 +82,7 @@ class AwlDBDialect { + * + * The database will be opened. + * +- * @param string $connection_string The PDO connection string, in all it's glory ++ * @param string $connection_string The PDO connection string, in all its glory + * @param string $dbuser The database username to connect as + * @param string $dbpass The database password to connect with + * @param array $options An array of driver options +@@ -165,10 +165,12 @@ class AwlDBDialect { + + switch ( $this->dialect ) { + case 'pgsql': +- list( $schema, $table ) = explode('.', $tablename_string, 2); +- if ( empty($table) ) { ++ $schema = null; ++ $table = null; ++ if ( strpos($tablename_string, '.') ) { ++ list( $schema, $table ) = explode('.', $tablename_string, 2); ++ } else { + $table = $tablename_string; +- $schema = null; + } + + $sql = 'SELECT f.attname AS fieldname, t.typname AS typename, f.atttypmod AS precision FROM pg_attribute f'; +diff --git a/inc/AwlQuery.php b/inc/AwlQuery.php +index 1547cb7..586b389 100644 +--- a/inc/AwlQuery.php ++++ b/inc/AwlQuery.php +@@ -162,7 +162,7 @@ class AwlQuery + protected $rownum = null; + + /** +- * number of rows from pg_numrows - use accessor to get value ++ * number of rows from pg_num_rows - use accessor to get value + * @var int + */ + protected $rows; +diff --git a/inc/PgQuery.php b/inc/PgQuery.php +index 0d2f199..69454d3 100644 +--- a/inc/PgQuery.php ++++ b/inc/PgQuery.php +@@ -33,7 +33,7 @@ + */ + + +-if ( ! function_exists('pg_Connect') ) { ++if ( ! function_exists('pg_connect') ) { + echo <<<EOERRMSG + <html> + <head> +@@ -70,7 +70,7 @@ function connect_configured_database() { + if ( isset($c->pg_connect) && is_array($c->pg_connect) ) { + foreach( $c->pg_connect AS $k => $v ) { + if ( !$dbconn ) { +- if ( $dbconn = ((isset($c->use_persistent) && $c->use_persistent) ? pg_pConnect($v) : pg_Connect($v) ) ) break; ++ if ( $dbconn = ((isset($c->use_persistent) && $c->use_persistent) ? pg_pconnect($v) : pg_connect($v) ) ) break; + } + } + } +@@ -327,7 +327,7 @@ class PgQuery + * @access public + */ + /** +- * number of rows from pg_numrows - for fetching result ++ * number of rows from pg_num_rows - for fetching result + * should be read-only + * @var int + */ +@@ -492,7 +492,7 @@ class PgQuery + + $t1 = microtime(); // get start time + $this->result = @pg_exec( $this->connection, $this->querystring ); // execute the query +- $this->rows = ($this->result ? pg_numrows($this->result) : -1); // number of rows returned ++ $this->rows = ($this->result ? pg_num_rows($this->result) : -1); // number of rows returned + $t2 = microtime(); // get end time + $i_took = duration( $t1, $t2 ); // calculate difference + $c->total_query_time += $i_took; +@@ -500,7 +500,7 @@ class PgQuery + + if ( !$this->result ) { + // query simply failed +- $this->errorstring = @pg_errormessage(); // returns database error message ++ $this->errorstring = @pg_last_error(); // returns database error message + $this->_log_error( $this->location, 'QF', $this->querystring, $line, $file ); + $this->_log_error( $this->location, 'QF', $this->errorstring, $line, $file ); + } +@@ -637,7 +637,7 @@ class PgQuery + $display_value = $row[1]; + if ( isset($translate) ) $display_value = translate( $display_value ); + if ( isset($maxwidth) ) $display_value = substr( $display_value, 0, $maxwidth); +- $nextrow = "<option value=\"".htmlspecialchars($row[0])."\"$selected>".htmlspecialchars($display_value)."</option>"; ++ $nextrow = "<option value=\"".htmlspecialchars($row[0])."\"$selected>".htmlspecialchars($display_value ?? '')."</option>"; + $result .= $nextrow; + } + } +-- +2.43.2 + +From 44e2ee89e5aa4994878520fe5b0e5d1f30205f7c Mon Sep 17 00:00:00 2001 +From: Andrew Ruthven <andrew@etc.gen.nz> +Date: Sun, 25 Feb 2024 14:25:28 +1300 +Subject: [PATCH 08/16] Explicitly declare all class properties + +PHP 8.2.0 has deprecated dynamic creation of properties. + +This kind of warning message is displayed: + +Deprecated: Creation of dynamic property DAViCalSession::$login_failed is + deprecated in /usr/share/awl/inc/Session.php on line 153 +--- + inc/MenuSet.php | 6 ++++ + inc/Session.php | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 87 insertions(+) + +diff --git a/inc/MenuSet.php b/inc/MenuSet.php +index 2da1ced..2d26bff 100644 +--- a/inc/MenuSet.php ++++ b/inc/MenuSet.php +@@ -65,6 +65,12 @@ class MenuOption { + var $submenu_set; + /**#@-*/ + ++ /** ++ * MenuSet attributes ++ * @var array ++ */ ++ var $attributes; ++ + /** + * A reference to this menu option itself + * @var reference +diff --git a/inc/Session.php b/inc/Session.php +index 5d55f9d..29cfde9 100644 +--- a/inc/Session.php ++++ b/inc/Session.php +@@ -63,6 +63,12 @@ class Session + */ + var $roles; + var $cause = ''; ++ ++ /** ++ * Session start times for confirmation emails ++ * @var array ++ var $session_start; ++ + /**#@-*/ + + /**#@+ +@@ -113,6 +119,55 @@ class Session + */ + var $just_logged_in = false; + ++ /** ++ * The date and time that the user's email address was confirmed. ++ * @var string ++ */ ++ var $email_ok; ++ ++ /** ++ * The date and time that the user joined (account created). ++ * @var string ++ */ ++ var $joined; ++ ++ /** ++ * The date and time that the user's record was last updated. ++ * @var string ++ */ ++ var $updated; ++ ++ /** ++ * The date and time that the user was last used (not used?). ++ * @var string ++ */ ++ var $last_used; ++ ++ /** ++ * The user's password. ++ * @var string ++ */ ++ var $password; ++ ++ /** ++ * The user's config_data. I don't know what type this should be as I can't ++ * see any examples of it being used. ++ * @var string ++ */ ++ var $config_data; ++ ++ /** ++ * The user's data format type. ++ * @var string ++ */ ++ var $date_format_type; ++ ++ /** ++ * The user's locale. ++ * @var string ++ */ ++ var $locale; ++ + /** + * The date and time that the user logged on during their last session. + * @var string +@@ -125,6 +180,32 @@ class Session + * @var string + */ + var $last_session_end; ++ ++ /** ++ * The date and time that the users session start. ++ * @var string ++ */ ++ var $session_start; ++ ++ /** ++ * Session config. I don't know what type this should be as I can't see any ++ * examples of it being used. ++ * @var string ++ */ ++ var $session_config; ++ ++ /** ++ * The date and time that the users session ends. ++ * @var string ++ */ ++ var $session_end; ++ ++ /** ++ * Flag to indicate if login failed. ++ * @var boolean ++ */ ++ var $login_failed = false; ++ + /**#@-*/ + + /** +-- +2.43.2 + +From 45b796e24bc21ba83332aff9f6af7a0108d906b0 Mon Sep 17 00:00:00 2001 +From: Andrew Ruthven <andrew@etc.gen.nz> +Date: Sun, 25 Feb 2024 23:47:43 +1300 +Subject: [PATCH 10/16] Explicitly declare all class properties (more) + +--- + inc/Session.php | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/inc/Session.php b/inc/Session.php +index 29cfde9..a064209 100644 +--- a/inc/Session.php ++++ b/inc/Session.php +@@ -119,6 +119,12 @@ class Session + */ + var $just_logged_in = false; + ++ /** ++ * Is the user active (aka enabled)? ++ * @var boolean ++ */ ++ var $active; ++ + /** + * The date and time that the user's email address was confirmed. + * @var string +@@ -200,6 +206,12 @@ class Session + */ + var $session_end; + ++ /** ++ * Current session key ++ * @var string ++ */ ++ var $session_key; ++ + /** + * Flag to indicate if login failed. + * @var boolean +-- +2.43.2 + +From b879addd766ab2a54aa92d58c48c26a985c89690 Mon Sep 17 00:00:00 2001 +From: Andrew Ruthven <andrew@etc.gen.nz> +Date: Wed, 28 Feb 2024 00:57:59 +1300 +Subject: [PATCH 11/16] Ensure we pass a string to htmlspecialchars() + +PHP 8.1 deprecated passing null into many functions. This fixes these errors: + +Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of + type string is deprecated in /usr/share/awl/inc/classEditor.php on line 626 +--- + inc/classEditor.php | 29 ++++++++++++++++++++++++----- + 1 file changed, 24 insertions(+), 5 deletions(-) + +diff --git a/inc/classEditor.php b/inc/classEditor.php +index afdd534..36703cd 100644 +--- a/inc/classEditor.php ++++ b/inc/classEditor.php +@@ -621,28 +621,47 @@ class Editor + } + } + return $field->RenderLabel('<input type="hidden" value="off" name="'.$field_name.'"><input class="entry" type="checkbox" value="on" name="'.$field_name.'"'.$checked.$attributes.'>' ); ++ + case "input": + $size = (isset($part3) ? $part3 : 6); +- return "<input class=\"entry\" value=\"".htmlspecialchars($field_value)."\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ return "<input class=\"entry\" value=\"" ++ . (isset($field_value) ? htmlspecialchars($field_value) : '') ++ . "\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ + case "file": + $size = (isset($part3) ? $part3 : 30); +- return "<input type=\"file\" class=\"entry\" value=\"".htmlspecialchars($field_value)."\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ return "<input type=\"file\" class=\"entry\" value=\"" ++ . (isset($field_value) ? htmlspecialchars($field_value) : '') ++ . "\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ + case "money": + $size = (isset($part3) ? $part3 : 8); +- return "<input class=\"money\" value=\"".htmlspecialchars(sprintf("%0.2lf",$field_value))."\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ return "<input class=\"money\" value=\"" ++ . (isset($field_value) ? htmlspecialchars(sprintf("%0.2lf",$field_value)) : '') ++ . "\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ + case "date": + $size = (isset($part3) ? $part3 : 10); +- return "<input class=\"date\" value=\"".htmlspecialchars($field_value)."\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ return "<input class=\"date\" value=\"" ++ . (isset($field_value) ? htmlspecialchars($field_value) : '') ++ . "\" name=\"$field_name\" size=\"$size\"$attributes>"; ++ + case "textarea": + list( $cols, $rows ) = explode( 'x', $part3); +- return "<textarea class=\"entry\" name=\"$field_name\" rows=\"$rows\" cols=\"$cols\"$attributes>".htmlspecialchars($field_value)."</textarea>"; ++ return "<textarea class=\"entry\" name=\"$field_name\" rows=\"$rows\" cols=\"$cols\"$attributes>" ++ . (isset($field_value) ? htmlspecialchars($field_value) : '') ++ . "</textarea>"; ++ + case "hidden": + return sprintf( "<input type=\"hidden\" value=\"%s\" name=\"$field_name\">", htmlspecialchars($field_value) ); ++ + case "password": + return sprintf( "<input type=\"password\" value=\"%s\" name=\"$field_name\" size=\"10\">", htmlspecialchars($part3) ); ++ + case "encval": + case "enc": + return htmlspecialchars($field_value); ++ + case "submit": + $action = ( $this->RecordAvailable ? 'update' : 'insert' ); + return sprintf('<input type="hidden" name="_editor_action[%s]" value="%s"><input type="submit" class="submit" name="%s" value="%s">', +-- +2.43.2 + +From 27b37d1eba82c3f9abbc4505179d06abce0fa0d3 Mon Sep 17 00:00:00 2001 +From: Andrew Ruthven <andrew@etc.gen.nz> +Date: Wed, 28 Feb 2024 01:03:36 +1300 +Subject: [PATCH 12/16] Remove a PHP 7ism + +--- + inc/PgQuery.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/inc/PgQuery.php b/inc/PgQuery.php +index 69454d3..f2ba9c3 100644 +--- a/inc/PgQuery.php ++++ b/inc/PgQuery.php +@@ -637,7 +637,7 @@ class PgQuery + $display_value = $row[1]; + if ( isset($translate) ) $display_value = translate( $display_value ); + if ( isset($maxwidth) ) $display_value = substr( $display_value, 0, $maxwidth); +- $nextrow = "<option value=\"".htmlspecialchars($row[0])."\"$selected>".htmlspecialchars($display_value ?? '')."</option>"; ++ $nextrow = "<option value=\"".htmlspecialchars($row[0])."\"$selected>" . (isset($display_value) ? htmlspecialchars($display_value) : '') . "</option>"; + $result .= $nextrow; + } + } +-- +2.43.2 + +From 33678418692ab1d82ff4ab064e64d1d7064ec10a Mon Sep 17 00:00:00 2001 +From: Andrew Ruthven <andrew@etc.gen.nz> +Date: Wed, 28 Feb 2024 08:14:16 +1300 +Subject: [PATCH 13/16] Explicitly declare all class properties (more) + +--- + inc/classBrowser.php | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/inc/classBrowser.php b/inc/classBrowser.php +index f169c72..850006a 100644 +--- a/inc/classBrowser.php ++++ b/inc/classBrowser.php +@@ -209,6 +209,7 @@ class Browser + var $match_function; + var $DivOpen; + var $DivClose; ++ var $current_row; + + /** + * The Browser class constructor +-- +2.43.2 + diff --git a/dev-php/awl/metadata.xml b/dev-php/awl/metadata.xml new file mode 100644 index 000000000000..f9d36820f559 --- /dev/null +++ b/dev-php/awl/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>till2.schaefer@uni-dortmund.de</email> + <name>Till Schäfer</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:davical:andrew\\'s_web_libraries</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/ca-bundle/Manifest b/dev-php/ca-bundle/Manifest new file mode 100644 index 000000000000..fec14e1c087c --- /dev/null +++ b/dev-php/ca-bundle/Manifest @@ -0,0 +1 @@ +DIST ca-bundle-1.3.1.tar.gz 127597 BLAKE2B e3f19e3a9e8285b9dcbfe1b488566392424249f0a366696f895761edfcfb597ece06ef0c87380b44083dcf5f598000a83ed9fefec20b58336f47277a205e2467 SHA512 12a5a83f3783491086614e79517e945892a3cb1230705650e12a3f9863bbeec628b8bea228f5d12d23c790a3b912c88536182c059108acb6860e2ceabae8c7c6 diff --git a/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild new file mode 100644 index 000000000000..98588f2c8b4b --- /dev/null +++ b/dev-php/ca-bundle/ca-bundle-1.3.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit prefix + +DESCRIPTION="Find the system CA bundle or fall back to the Mozilla one" +HOMEPAGE="https://github.com/composer/ca-bundle" +SRC_URI="https://github.com/composer/ca-bundle/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" + +src_install() { + insinto /usr/share/php/Composer/CaBundle + doins src/CaBundle.php \ + "$(prefixify_ro "${FILESDIR}"/autoload.php)" + dodoc README.md +} diff --git a/dev-php/ca-bundle/files/autoload.php b/dev-php/ca-bundle/files/autoload.php new file mode 100644 index 000000000000..993360676f74 --- /dev/null +++ b/dev-php/ca-bundle/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for composer/ca-bundle and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Composer\\CaBundle\\', __DIR__); diff --git a/dev-php/ca-bundle/metadata.xml b/dev-php/ca-bundle/metadata.xml new file mode 100644 index 000000000000..0388c16cbed5 --- /dev/null +++ b/dev-php/ca-bundle/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + Small utility library that lets you find a path to the system CA + bundle, and includes a fallback to the Mozilla CA bundle. + Originally written as part of dev-php/composer, now extracted and + made available as a stand-alone library. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/cli-prompt/Manifest b/dev-php/cli-prompt/Manifest new file mode 100644 index 000000000000..d7c3596a6cb6 --- /dev/null +++ b/dev-php/cli-prompt/Manifest @@ -0,0 +1 @@ +DIST cli-prompt-1.0.4.tar.gz 8481 BLAKE2B 0ece875068c8731df28a5098f8de10ffb91849c293682f1098167a609a5c66a08310e8eb26b606cf9407a8d71738851e89dfc3854a8485e1ad1f28c29159a5c4 SHA512 b71c60f6d45c7eaa9c985bb20f6007fd48f5667510a54cc35286f6fd9cba277da4537052550501e1738e7e66e89341ba99cfc40ea7c0c82d8b3d63c03f855c4a diff --git a/dev-php/cli-prompt/cli-prompt-1.0.4.ebuild b/dev-php/cli-prompt/cli-prompt-1.0.4.ebuild new file mode 100644 index 000000000000..b8798f413e98 --- /dev/null +++ b/dev-php/cli-prompt/cli-prompt-1.0.4.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Allows you to prompt for user input on the command line" +HOMEPAGE="https://github.com/Seldaek/cli-prompt" +SRC_URI="https://github.com/Seldaek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" + +src_install() { + insinto "/usr/share/php/Seld/CliPrompt" + doins -r src/. "${FILESDIR}"/autoload.php + dodoc README.md +} diff --git a/dev-php/cli-prompt/files/autoload.php b/dev-php/cli-prompt/files/autoload.php new file mode 100644 index 000000000000..7a1acbd38c9f --- /dev/null +++ b/dev-php/cli-prompt/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-finder and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Seld\\CliPrompt\\', __DIR__); diff --git a/dev-php/cli-prompt/metadata.xml b/dev-php/cli-prompt/metadata.xml new file mode 100644 index 000000000000..fdb33c80646c --- /dev/null +++ b/dev-php/cli-prompt/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + Allows you to prompt for user input on the command line, + and optionally hide the characters they type. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/doctrine-instantiator/Manifest b/dev-php/doctrine-instantiator/Manifest new file mode 100644 index 000000000000..11ef90f21fab --- /dev/null +++ b/dev-php/doctrine-instantiator/Manifest @@ -0,0 +1 @@ +DIST doctrine-instantiator-1.4.0.tar.gz 7760 BLAKE2B 2e2f4822d0509dcfbe87036107643338eb7b740cd257150c3e6e5149aeb543e2283b3616ef261d048f2e5800c869a5be0db0192e135e944d5c03c2bea1422316 SHA512 f760d1717683bb3f3bacf2a8da31aa842bb623bc7fe2bcd9dcaab71389546da6f4f50a4e35e483857ac32f9a0d58493e74d0459d5bc49595a47f4523da086aca diff --git a/dev-php/doctrine-instantiator/doctrine-instantiator-1.4.0.ebuild b/dev-php/doctrine-instantiator/doctrine-instantiator-1.4.0.ebuild new file mode 100644 index 000000000000..0ed1b00b490a --- /dev/null +++ b/dev-php/doctrine-instantiator/doctrine-instantiator-1.4.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/doctrine-//}" + +DESCRIPTION="Utility to instantiate objects in PHP without invoking their constructors" +HOMEPAGE="https://github.com/doctrine/instantiator" +SRC_URI="https://github.com/doctrine/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + phpab \ + --output src/Doctrine/Instantiator/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto /usr/share/php/ + doins -r src/* + + einstalldocs +} diff --git a/dev-php/doctrine-instantiator/metadata.xml b/dev-php/doctrine-instantiator/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/doctrine-instantiator/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/doctrine/Manifest b/dev-php/doctrine/Manifest new file mode 100644 index 000000000000..d99d744b0833 --- /dev/null +++ b/dev-php/doctrine/Manifest @@ -0,0 +1 @@ +DIST doctrine-2.6.4.tar.gz 558995 BLAKE2B 789a9d3e5c53a19e9e9d6dc24680888e0703a51cf22df052604bdee0b5148edd5153a625528dc9cf7cea9e5b245c7c73153efc8a05e3f91150536c2d4bcc2243 SHA512 7f4ed67ff5a3921da5e630e51987ceb3f896824baa0db6065c1a17f0389c363c4ee149298335ce4eccce37dbb9e1572caa31196d0e67251a5ea72d449471eec6 diff --git a/dev-php/doctrine/doctrine-2.6.4.ebuild b/dev-php/doctrine/doctrine-2.6.4.ebuild new file mode 100644 index 000000000000..10bd6546bbf1 --- /dev/null +++ b/dev-php/doctrine/doctrine-2.6.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="orm-${PV}" +DESCRIPTION="An object relational mapper for PHP" +HOMEPAGE="https://www.doctrine-project.org/" +SRC_URI="https://github.com/${PN}/orm/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/php-7.1:*[cli,pdo]" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_install() { + insinto /usr/share/php + doins -r lib/Doctrine + insinto /usr/share/php/Doctrine + exeinto /usr/share/php/Doctrine + doins bin/doctrine.php + doexe bin/doctrine + dosym ../share/php/Doctrine/doctrine /usr/bin/doctrine +} diff --git a/dev-php/doctrine/metadata.xml b/dev-php/doctrine/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/doctrine/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/fedora-autoloader/Manifest b/dev-php/fedora-autoloader/Manifest new file mode 100644 index 000000000000..42d793a6aacb --- /dev/null +++ b/dev-php/fedora-autoloader/Manifest @@ -0,0 +1 @@ +DIST fedora-autoloader-1.0.1.tar.gz 8743 BLAKE2B 4ba6ed275812036f171138e05f5aa56611c6430bc5e440dac5ee45ad975f2300c70c0b964c8c5e0681028829738ad1e4abd69b14e83e10e5215ea9ec7f2d705f SHA512 dd27348e23b69f03e64c2608ae9fd8caf54baa60327c944f46ab5f4cc762677baacc21ba0ea97cad5d97e9f168b1b3731e0ab2bb48df394c07aaa61fd9d66de6 diff --git a/dev-php/fedora-autoloader/fedora-autoloader-1.0.1.ebuild b/dev-php/fedora-autoloader/fedora-autoloader-1.0.1.ebuild new file mode 100644 index 000000000000..0e041420ee7a --- /dev/null +++ b/dev-php/fedora-autoloader/fedora-autoloader-1.0.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Fedora's Static PSR-4, PSR-0, and classmap autoloader" +HOMEPAGE="https://github.com/php-fedora/autoloader" +SRC_URI="https://github.com/php-fedora/autoloader/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 ~s390 ~sparc x86" + +IUSE="test" + +RESTRICT="test" + +RDEPEND="dev-lang/php:*" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +S="${WORKDIR}/autoloader-${PV}" + +src_install() { + insinto "/usr/share/php/Fedora/Autoloader" + doins -r src/. + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit || die "test suite failed" +} diff --git a/dev-php/fedora-autoloader/metadata.xml b/dev-php/fedora-autoloader/metadata.xml new file mode 100644 index 000000000000..2b2e947f3f58 --- /dev/null +++ b/dev-php/fedora-autoloader/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + Static PSR-4, PSR-0, and classmap autoloader. + Includes loader for required and optional dependencies. + </longdescription> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/fpdf/Manifest b/dev-php/fpdf/Manifest new file mode 100644 index 000000000000..85c6fa17ceaa --- /dev/null +++ b/dev-php/fpdf/Manifest @@ -0,0 +1,2 @@ +DIST fpdf183.tgz 127536 BLAKE2B b3c3c30d9a38241906323e50e21dc1a6f954c2cf805e0640c8dddead7597eef706086db9093d23f6350e07574e06df990ca5f5014bdf64605b20eb9dd5bd3362 SHA512 befedc86695b415d000fb19ebfc6141f145d700229b287cbef7957d1fb74baa82ba471136b0ef641520b485d33be8e7f2eb971c444649ae02342bc38fec8f719 +DIST fpdf186.tgz 118080 BLAKE2B c4dc7bd3a2169ccd61fae9b99f91b7904237b81d7d72cdcb5cf5dceb63b01d73dabed2cead145ec3176e217ee5eb0244359a646abee7fc7c78b5f45f981150c7 SHA512 4894908e18d08f1ea21914c0d25ecc406875326c4bfa5f9cc9d92581e79597ec4fde173f6406bb1f84e45cef363c6b418007cf6e15c8bb8e941d925840c9ab96 diff --git a/dev-php/fpdf/fpdf-1.83.ebuild b/dev-php/fpdf/fpdf-1.83.ebuild new file mode 100644 index 000000000000..b16b3b44e50b --- /dev/null +++ b/dev-php/fpdf/fpdf-1.83.ebuild @@ -0,0 +1,30 @@ +# Copyright 2021 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=7 + +MY_PV="$(ver_rs 1 '')" +MY_P="${PN}${MY_PV}" + +DESCRIPTION="FPDF is a PHP class which allows to generate PDF files with pure PHP" +HOMEPAGE="http://www.fpdf.org/" +SRC_URI="http://www.fpdf.org/en/dl.php?v=${MY_PV}&f=tgz -> ${MY_P}.tgz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="dev-lang/php:*[gd,zlib]" +S="${WORKDIR}/${MY_P}" + +DOCS=( install.txt ) + +src_install() { + insinto "/usr/share/php/${PN}" + doins -r ./*.php font/ makefont/ + + if use doc; then + docinto html + dodoc -r changelog.htm fpdf.css FAQ.htm html/ tutorial/ + fi +} diff --git a/dev-php/fpdf/fpdf-1.86.ebuild b/dev-php/fpdf/fpdf-1.86.ebuild new file mode 100644 index 000000000000..b3f1b5b0d14a --- /dev/null +++ b/dev-php/fpdf/fpdf-1.86.ebuild @@ -0,0 +1,30 @@ +# Copyright 2021-2024 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +MY_PV="$(ver_rs 1 '')" +MY_P="${PN}${MY_PV}" + +DESCRIPTION="FPDF is a PHP class which allows to generate PDF files with pure PHP" +HOMEPAGE="http://www.fpdf.org/" +SRC_URI="http://www.fpdf.org/en/dl.php?v=${MY_PV}&f=tgz -> ${MY_P}.tgz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="dev-lang/php:*[gd,zlib]" +S="${WORKDIR}/${MY_P}" + +DOCS=( install.txt ) + +src_install() { + insinto "/usr/share/php/${PN}" + doins -r ./*.php font/ makefont/ + + if use doc; then + docinto html + dodoc -r changelog.htm fpdf.css FAQ.htm html/ tutorial/ + fi +} diff --git a/dev-php/fpdf/metadata.xml b/dev-php/fpdf/metadata.xml new file mode 100644 index 000000000000..c41f1905e257 --- /dev/null +++ b/dev-php/fpdf/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <longdescription> +FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. + +FPDF has other advantages: high level functions. Here is a list of its main features: + +* Choice of measure unit, page format and margins +* Page header and footer management +* Automatic page break +* Automatic line break and text justification +* Image support (JPEG, PNG and GIF) +* Colors +* Links +* TrueType, Type1 and encoding support +* Page compression + +FPDF requires no extension (except Zlib to enable compression and GD for GIF support). The latest version requires at least PHP 5.1. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/geos-php/Manifest b/dev-php/geos-php/Manifest new file mode 100644 index 000000000000..4aeef013a477 --- /dev/null +++ b/dev-php/geos-php/Manifest @@ -0,0 +1 @@ +DIST geos-php-1.0.0_p20220909.tar.gz 43257 BLAKE2B b1ee853e6d09f2bcc2bc32ad5eea29c3cb35d742d3037f836c575099de0b806519dc23a1fc9c322d377eb39c4b935029b47043c3ee5ab232537196686c627feb SHA512 4beae67902eaf1201d997db4ccf8e332e98699da031377878e0e144ae2f488bdf00b4a4d58b87082140ee18a4c04211f61de029fd523db90531245a450839001 diff --git a/dev-php/geos-php/geos-php-1.0.0_p20220909.ebuild b/dev-php/geos-php/geos-php-1.0.0_p20220909.ebuild new file mode 100644 index 000000000000..01d45b55b61c --- /dev/null +++ b/dev-php/geos-php/geos-php-1.0.0_p20220909.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +PHP_EXT_NAME="geos" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php8-2" + +S="${WORKDIR}/php-geos" + +inherit php-ext-source-r3 + +KEYWORDS="~amd64 ~x86" +SNAPSHOT="ee5ca8f3739a4e3c1cdeb0abf4f1a47d9ca751a5" +DESCRIPTION="A PHP interface to GEOS - Geometry Engine, Open Source" +HOMEPAGE="https://libgeos.org/" +SRC_URI="https://git.osgeo.org/gitea/geos/php-geos/archive/${SNAPSHOT}.tar.gz -> ${P}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" + +RDEPEND="sci-libs/geos[-php(-)]" +DEPEND="sci-libs/geos[-php(-)]" +DOCS=( README.md CREDITS NEWS TODO ) +PHP_EXT_ECONF_ARGS=() + +src_prepare() { + # Test always fails with geos-3.8 or greater + rm "${S}/tests/001_Geometry.phpt" || die + php-ext-source-r3_src_prepare +} diff --git a/dev-php/geos-php/metadata.xml b/dev-php/geos-php/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/geos-php/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/igbinary/Manifest b/dev-php/igbinary/Manifest new file mode 100644 index 000000000000..4c3f072dcbf4 --- /dev/null +++ b/dev-php/igbinary/Manifest @@ -0,0 +1,3 @@ +DIST igbinary-3.2.15.tar.gz 255185 BLAKE2B affe47386e65576ee44fc7616a3c1c923a5af4b50308caa02f6c75ea9a2ba483ab90a9c656f5631fb5bee7360a1505525dfadb4083e668b58d149dfc7379bd4e SHA512 285adae14c3104c4c53eec7b7e9b96e097096a06e2517ac554a4ecf5066f9b75318b6e29486cc41aa89a21ef46980285d1fa0d09a1f2b750253951c6d0480869 +DIST igbinary-3.2.9.tar.gz 251747 BLAKE2B d44711ffc195572a83a000f225776191e7b421e4be3065a668287f356d46fd11536af0a0969a0fc219c38d027f13aec16cfe41f15ea778ef087f7082daa9b8dc SHA512 2789f8517aaefa4e4e736592944361e8bad1ce50687aed161bb4e17bcdfbfec2320df8069c7b39704fa96c614727bd66fb65185b15f72f8c96bb5fda88f2e66f +DIST igbinary_45e8f00fe48ff932cba61018e6b501641b14d1de.tar.gz 256305 BLAKE2B d64a354b971c2232fb054463f81271c37dd7de30d46a8801c58629469e6a51494ceb8bfedc893ccff07f6de69a1cd557987de41500344362863cc6f01d97d719 SHA512 720758e96ab8c80153204fb4a2ddf6870c82e3fd0cd0c956c45844fd8f91b9c34104845f035f01df349647b4a0093758a7e1203afd0ef021c1a6ee42fd693e41 diff --git a/dev-php/igbinary/igbinary-3.2.15.ebuild b/dev-php/igbinary/igbinary-3.2.15.ebuild new file mode 100644 index 000000000000..b834f66fa5a0 --- /dev/null +++ b/dev-php/igbinary/igbinary-3.2.15.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_ECONF_ARGS=( --enable-${PN} ) +PHP_EXT_INI="yes" +PHP_EXT_NAME="${PN}" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-source-r3 + +DESCRIPTION="A fast drop-in replacement for the standard PHP serialize" +HOMEPAGE="https://github.com/igbinary/igbinary" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" diff --git a/dev-php/igbinary/igbinary-3.2.15_p20251126.ebuild b/dev-php/igbinary/igbinary-3.2.15_p20251126.ebuild new file mode 100644 index 000000000000..44c2c031a058 --- /dev/null +++ b/dev-php/igbinary/igbinary-3.2.15_p20251126.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_ECONF_ARGS=( --enable-${PN} ) +PHP_EXT_INI="yes" +PHP_EXT_NAME="${PN}" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-source-r3 + +GH_COMMIT="45e8f00fe48ff932cba61018e6b501641b14d1de" + +DESCRIPTION="A fast drop-in replacement for the standard PHP serialize" +HOMEPAGE="https://github.com/igbinary/igbinary" +SRC_URI="https://github.com/${PN}/${PN}/archive/${GH_COMMIT}.tar.gz -> ${PN}_${GH_COMMIT}.tar.gz" +S="${WORKDIR}/${PN}-${GH_COMMIT}" +PHP_EXT_S="${S}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" diff --git a/dev-php/igbinary/igbinary-3.2.9.ebuild b/dev-php/igbinary/igbinary-3.2.9.ebuild new file mode 100644 index 000000000000..8d761791586c --- /dev/null +++ b/dev-php/igbinary/igbinary-3.2.9.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_ECONF_ARGS=( --enable-${PN} ) +PHP_EXT_INI="yes" +PHP_EXT_NAME="${PN}" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2" + +inherit php-ext-source-r3 + +DESCRIPTION="A fast drop-in replacement for the standard PHP serialize" +HOMEPAGE="https://github.com/igbinary/igbinary" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" diff --git a/dev-php/igbinary/metadata.xml b/dev-php/igbinary/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/igbinary/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/jpgraph/Manifest b/dev-php/jpgraph/Manifest new file mode 100644 index 000000000000..1cca75dfc431 --- /dev/null +++ b/dev-php/jpgraph/Manifest @@ -0,0 +1 @@ +DIST jpgraph-4.3.5.tar.gz 13293351 BLAKE2B 246d2446b02b0f01fd8e3960d645897c21604c726541177aa5573620b63ab9a1f5d5318309e1c3ffd159257f02c0d1c7a7b8b563758abeea18161327a4939668 SHA512 7e826147f8f551171463d15add17f65587e879d6e666fcec9872367b7bdea77b2b1fd6b0af03984680d23dfe7c1e21b4f5d2cfd9a45a60c52b62812a5c1ab7ac diff --git a/dev-php/jpgraph/files/gentoo_ttf_dir-4.3.5.patch b/dev-php/jpgraph/files/gentoo_ttf_dir-4.3.5.patch new file mode 100644 index 000000000000..ba4e37c98fba --- /dev/null +++ b/dev-php/jpgraph/files/gentoo_ttf_dir-4.3.5.patch @@ -0,0 +1,31 @@ +From fd1fc5e3c72ac4511f86852b1704821c440bdb3d Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Tue, 3 Jan 2017 12:56:18 -0500 +Subject: [PATCH 1/1] Set TTF_DIR to the Gentoo corefonts location. + +The default value of TTF_DIR in jpg-config.inc.php points to +/usr/share/fonts/truetype, a location that does not exist on +Gentoo. Since JpGraph largely only supports the Microsoft +corefonts, we point it to /usr/share/fonts/corefonts instead. +If the user does not have the corefonts installed, this is no +great loss: neither location exists. +--- + src/jpg-config.inc.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/jpg-config.inc.php b/src/jpg-config.inc.php +index ea16c1e..98cbdc7 100755 +--- a/src/jpg-config.inc.php ++++ b/src/jpg-config.inc.php +@@ -36,7 +36,7 @@ + // + //------------------------------------------------------------------------ + // define('CACHE_DIR','/tmp/jpgraph_cache/'); +- define('TTF_DIR','/usr/share/fonts/truetype/msttcorefonts/'); ++define('TTF_DIR','/usr/share/fonts/corefonts/'); + // define('MBTTF_DIR','/usr/share/fonts/TrueType/'); + + //------------------------------------------------------------------------- +-- +2.10.2 + diff --git a/dev-php/jpgraph/jpgraph-4.3.5.ebuild b/dev-php/jpgraph/jpgraph-4.3.5.ebuild new file mode 100644 index 000000000000..f4979a62fe86 --- /dev/null +++ b/dev-php/jpgraph/jpgraph-4.3.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Object-oriented graphing library for PHP" +HOMEPAGE="http://jpgraph.net/" +# Upstream didn't have a stable download URL when this was packaged. +SRC_URI="https://dev.gentoo.org/~grknight/distfiles/${P}.tar.gz" +LICENSE="QPL-1.0" +SLOT="0" +KEYWORDS="amd64 ~hppa ~sparc x86" +IUSE="truetype examples" + +DEPEND="" +RDEPEND="truetype? ( media-fonts/corefonts ) + dev-lang/php[gd,truetype?]" + +src_prepare() { + default + + # The DejaVu fonts are now bundled with the library and don't need + # to be found in TTF_DIR. Since most of the fonts supported by + # JpGraph are corefonts, we point the sole TTF_DIR towards them for + # maximum impact. Why not apply the patch unconditionally? We want + # to avoid a situation where TTF fonts appear to work, but then + # break without warning when the user e.g. removes corefonts. By + # applying the patch conditionally, we ensure a dependency on + # media-fonts/corefonts before anything will work. + use truetype && eapply "${FILESDIR}/gentoo_ttf_dir-4.3.5.patch" + + # Some of the documentation and examples are shipped in the "src" + # directory. We want them outside of that tree so that we can simply + # call doins recursively on "src". First, rename the existing "docs" + # directory which contains the HTML manual and class reference. + mv docs html || die 'failed to rename "docs" directory' + mv src/README ./ || die 'failed to relocate the README' + mv src/Examples ./examples || die 'failed to relocate the examples' + + # These are present (duplicated) in the other Examples directory, + # and don't work anyway. + rm -r src/barcode || die 'failed to remove some barcode examples' + + # We'll also want to install the config file to /etc, since it may + # need to be edited by the user. + mv src/jpg-config.inc.php ./ || die 'failed to relocate the config file' +} + +src_install() { + dodoc README + dodoc -r html + use examples && dodoc -r examples + + insinto "/usr/share/php/${PN}" + doins -r src/* + + insinto /etc + doins jpg-config.inc.php + # Create a symlink for the config file, because the library will only + # look for it in its own source tree (not in /etc where we've put it). + dosym ../../../../etc/jpg-config.inc.php "/usr/share/php/${PN}/jpg-config.inc.php" +} diff --git a/dev-php/jpgraph/metadata.xml b/dev-php/jpgraph/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/jpgraph/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest new file mode 100644 index 000000000000..b39e4b71657d --- /dev/null +++ b/dev-php/json-schema/Manifest @@ -0,0 +1 @@ +DIST json-schema-5.2.11.tar.gz 31273 BLAKE2B 7b5309c772816de08a6a3b600cef1291385357879cfb1e48f548ca2cb666fc87454064d090d4ab662d7937f0bec99bc4f0f304876dd2482896aa5bf41b2ed85e SHA512 1b1981dd12fd8642c26d3be75b40111320f89b6a917dabad087ff40d3baea78304e5611cf2b931e6f8e48f5ee4d14fcbe18c68ba76a90b59702783aea5d63477 diff --git a/dev-php/json-schema/files/autoload.php b/dev-php/json-schema/files/autoload.php new file mode 100644 index 000000000000..c8a6c8a8b715 --- /dev/null +++ b/dev-php/json-schema/files/autoload.php @@ -0,0 +1,10 @@ +<?php +/** + * Autoloader for justinrainbow/json-schema and its dependencies + */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('JsonSchema\\', __DIR__); diff --git a/dev-php/json-schema/json-schema-5.2.11.ebuild b/dev-php/json-schema/json-schema-5.2.11.ebuild new file mode 100644 index 000000000000..960e3c8a93da --- /dev/null +++ b/dev-php/json-schema/json-schema-5.2.11.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="PHP implementation of JSON schema" +HOMEPAGE="https://github.com/justinrainbow/json-schema" +SRC_URI="https://github.com/justinrainbow/json-schema/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" +# Tests are not in the release tarball +RESTRICT="test" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +src_prepare() { + default + if use test; then + cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die + fi +} + +src_install() { + insinto "/usr/share/php/JsonSchema" + doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" +} diff --git a/dev-php/json-schema/metadata.xml b/dev-php/json-schema/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/json-schema/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/jsonlint/Manifest b/dev-php/jsonlint/Manifest new file mode 100644 index 000000000000..d64b58b8aeae --- /dev/null +++ b/dev-php/jsonlint/Manifest @@ -0,0 +1 @@ +DIST jsonlint-1.8.3.tar.gz 10588 BLAKE2B af54e4bedb66e28f61c338f5161109cf1df45dc4aea7c5ab27d728aa4ca6cc0c1e76575527abffc0a1ff8b52465cee40935829f71b3b1a0284c0512827b5bc3c SHA512 c2a9a16e9abc048a1899e51cc78995410b8aa44d5afdab30930f7a7d88b174844ac0f547b0d0da83bc4a71ca0457392e586afbc97cef5de36e0dc2e032732bfc diff --git a/dev-php/jsonlint/files/autoload.php b/dev-php/jsonlint/files/autoload.php new file mode 100644 index 000000000000..48ac68d82ab1 --- /dev/null +++ b/dev-php/jsonlint/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/jsonlint and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Seld\\JsonLint\\', __DIR__); diff --git a/dev-php/jsonlint/jsonlint-1.8.3-r1.ebuild b/dev-php/jsonlint/jsonlint-1.8.3-r1.ebuild new file mode 100644 index 000000000000..ca9fd6316146 --- /dev/null +++ b/dev-php/jsonlint/jsonlint-1.8.3-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="JSON Lint for PHP" +HOMEPAGE="https://github.com/Seldaek/jsonlint" +SRC_URI="https://github.com/Seldaek/jsonlint/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + dev-lang/php:*" + +src_prepare() { + default + + phpab \ + --output src/Seld/JsonLint/autoload.php \ + --template fedora2 \ + --basedir src/Seld/JsonLint \ + src \ + || die +} + +src_install() { + insinto "/usr/share/php/Seld/JsonLint" + doins -r src/Seld/JsonLint/. + + einstalldocs +} diff --git a/dev-php/jsonlint/metadata.xml b/dev-php/jsonlint/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/jsonlint/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/libvirt-php/Manifest b/dev-php/libvirt-php/Manifest new file mode 100644 index 000000000000..1a79d26c5822 --- /dev/null +++ b/dev-php/libvirt-php/Manifest @@ -0,0 +1 @@ +DIST libvirt-php-0.5.8.tar.xz 392316 BLAKE2B 5c1746512a405aaa32840b47f867804d854006a3ed38db168b8a60b8a6d5c4c454b5070c71a7dce8669377842c8063b78bb1894c7a69a8ff439b770f3867a3d2 SHA512 efff730f101a2b4210d720bf1e9a7bb86b41caaf45de31241be05a64ea71b8bca52c73b23a39137d5849ac9f4d2d309acb72111e3e64f0b47211991e4a6a2d9a diff --git a/dev-php/libvirt-php/files/libvirt-php-0.5.8-attribute_unused.patch b/dev-php/libvirt-php/files/libvirt-php-0.5.8-attribute_unused.patch new file mode 100644 index 000000000000..2047acb04c6a --- /dev/null +++ b/dev-php/libvirt-php/files/libvirt-php-0.5.8-attribute_unused.patch @@ -0,0 +1,42 @@ +From 64b28253bb25933b74978906042aa07874500beb Mon Sep 17 00:00:00 2001 +Message-ID: <64b28253bb25933b74978906042aa07874500beb.1760018492.git.mprivozn@redhat.com> +From: Michal Privoznik <mprivozn@redhat.com> +Date: Thu, 14 Aug 2025 16:39:44 +0200 +Subject: [libvirt-php][PATCH] src: Don't rely on libxml2 to provide + ATTRIBUTE_UNUSED macro + +From: Michal Privoznik <mprivozn@redhat.com> + +One of the libxml2 header files used to provide ATTRIBUTE_UNUSED +macro definition (it used to be libxml/xmlexports.h but then it +was moved to libxml/xmlversion.h). But as of [1] this is no +longer the case. Thus, declare the macro on our own. + +1: https://gitlab.gnome.org/GNOME/libxml2/-/commit/208f27f9641a59863ce1f7d4992df77f7eb0ea9d + +Signed-off-by: Michal Privoznik <mprivozn@redhat.com> +(cherry picked from commit 5f78512c0eb139660d0a644895e07f83259cda37) +Resolves: https://bugs.gentoo.org/963308 +Signed-off-by: Michal Privoznik <mprivozn@redhat.com> +--- + src/util.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/util.h b/src/util.h +index 9839c3a..a677477 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -46,6 +46,10 @@ + + # define IS_BIGENDIAN (*(uint16_t *)"\0\xff" < 0x100) + ++# ifndef ATTRIBUTE_UNUSED ++# define ATTRIBUTE_UNUSED __attribute__((__unused__)) ++# endif ++ + # define SWAP2_BY_ENDIAN(le, v1, v2) \ + (((le && IS_BIGENDIAN) || (!le && !IS_BIGENDIAN)) ? ((v2 << 8) + v1) : ((v1 << 8) + v2)) + +-- +2.49.1 + diff --git a/dev-php/libvirt-php/libvirt-php-0.5.8-r2.ebuild b/dev-php/libvirt-php/libvirt-php-0.5.8-r2.ebuild new file mode 100644 index 000000000000..48ef43f49233 --- /dev/null +++ b/dev-php/libvirt-php/libvirt-php-0.5.8-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="libvirt-php" +PHP_EXT_SKIP_PHPIZE="yes" +USE_PHP="php8-2 php8-3" +PHP_EXT_ECONF_ARGS=() + +inherit php-ext-source-r3 autotools + +DESCRIPTION="PHP bindings for libvirt" +HOMEPAGE="https://php.libvirt.org/" +SRC_URI="https://download.libvirt.org/php/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +RDEPEND="app-emulation/libvirt + dev-libs/libxml2:=" +DEPEND="${RDEPEND} + dev-libs/libxslt + virtual/pkgconfig + doc? ( app-text/xhtml1 )" + +DOCS=( ChangeLog NEWS README ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.8-attribute_unused.patch +) + +src_unpack() { + default + + # create the default modules directory to be able + # to use the php-ext-source-r3 eclass to configure/build + ln -s src "${S}/modules" || die +} + +src_prepare() { + php-ext-source-r3_src_prepare + + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + eautoreconf + done +} + +src_install() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + insinto "${EXT_DIR}" + doins "src/.libs/${PHP_EXT_NAME}.so" + done + + php-ext-source-r3_createinifiles + einstalldocs + + if use doc ; then + docinto html + dodoc -r docs/* + fi +} + +src_test() { + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + default + done +} diff --git a/dev-php/libvirt-php/libvirt-php-9999.ebuild b/dev-php/libvirt-php/libvirt-php-9999.ebuild new file mode 100644 index 000000000000..d89b783b93e6 --- /dev/null +++ b/dev-php/libvirt-php/libvirt-php-9999.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="libvirt-php" +PHP_EXT_SKIP_PHPIZE="yes" +USE_PHP="php8-2 php8-3" +PHP_EXT_ECONF_ARGS=() + +inherit php-ext-source-r3 git-r3 autotools + +DESCRIPTION="PHP bindings for libvirt" +HOMEPAGE="https://php.libvirt.org/" +EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-php.git" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" +IUSE="doc" + +RDEPEND="app-emulation/libvirt + dev-libs/libxml2:=" +DEPEND="${RDEPEND} + dev-libs/libxslt + virtual/pkgconfig + doc? ( app-text/xhtml1 )" + +DOCS=( ChangeLog NEWS README ) + +src_unpack() { + git-r3_src_unpack + + # create the default modules directory to be able + # to use the php-ext-source-r3 eclass to configure/build + ln -s src "${S}/modules" +} + +src_prepare() { + php-ext-source-r3_src_prepare + + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + eautoreconf + done +} + +src_install() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + insinto "${EXT_DIR}" + doins "src/.libs/${PHP_EXT_NAME}.so" + done + + php-ext-source-r3_createinifiles + einstalldocs + + if use doc ; then + docinto html + dodoc -r docs/* + fi +} + +src_test() { + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + default + done +} diff --git a/dev-php/libvirt-php/metadata.xml b/dev-php/libvirt-php/metadata.xml new file mode 100644 index 000000000000..742344bd2029 --- /dev/null +++ b/dev-php/libvirt-php/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/maxmind-db-reader/Manifest b/dev-php/maxmind-db-reader/Manifest new file mode 100644 index 000000000000..11f696662315 --- /dev/null +++ b/dev-php/maxmind-db-reader/Manifest @@ -0,0 +1,2 @@ +DIST MaxMind-DB-Reader-php-1.11.1.tar.gz 23346 BLAKE2B ad783bbca018befa0f4c6f282bb440baf70ad2c91da0af8fb799ae727a5fc7f9acc1f004972ccc8f358272be2d9fbe4233b0d3526347db175ccc5eb140d139d3 SHA512 86b5cf523d0036a55e79f0721b7df923236146e0d29a9dc37affd61a4ba4bc0587a724aef0654239d009bb85eae4be6e42c2d63a5d2edf682fa90abdfbd234f0 +DIST MaxMind-DB-Reader-php-1.13.1.tar.gz 23771 BLAKE2B 3e1902597c07511c3a7494a5dfc9168814c7e4895ebeec34cad60ef4ef862c05b8639bbfd3c647d615cc3266a47da3bffebb1ac2a46910ee17ec46a8c3a158fa SHA512 ec4f023c648f5e6c60627bf53cd2a1ca873d207506e47037507e2f4d4969a96fe1b700563f07177788a893b5aa6d3ab88322c14728b5a13d1d7a9dd3ea94e1f9 diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild new file mode 100644 index 000000000000..fc593907ec9f --- /dev/null +++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.11.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +MY_PN="MaxMind-DB-Reader-php" +MY_P="${MY_PN}-${PV}" +S="${WORKDIR}/${MY_P}" +PHP_EXT_S="${S}/ext" +PHP_EXT_NAME="maxminddb" +PHP_EXT_OPTIONAL_USE="extension" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-source-r3 + +DESCRIPTION="PHP reader for the MaxMind database format" +HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php" +SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="extension test" +RESTRICT="!test? ( test )" + +DEPEND="extension? ( dev-libs/libmaxminddb )" +RDEPEND="${DEPEND}" + +src_prepare() { + # We need to call eapply_user ourselves, because it may be skipped + # if either the "extension" USE flag is not set, or if the user's + # PHP_TARGETS is essentially empty. In the latter case, the eclass + # src_prepare does nothing. We only call the eclass phase conditionally + # because the correct version of e.g. "phpize" may not be there + # unless USE=extension is set. + if use extension ; then + php-ext-source-r3_src_prepare + else + default + fi +} + +src_configure() { + # The eclass phase will try to run the ./configure script even if it + # doesn't exist (in contrast to the default src_configure), so we + # need to skip it if the eclass src_prepare (that creates said + # script) is not run. + use extension && php-ext-source-r3_src_configure +} + +src_compile() { + # Avoids the same problem as in src_configure. + use extension && php-ext-source-r3_src_compile +} + +src_install() { + dodoc CHANGELOG.md README.md + insinto /usr/share/php + doins -r src/MaxMind + insinto /usr/share/php/MaxMind/Db + doins autoload.php + + use extension && php-ext-source-r3_src_install +} + +src_test() { + # The PHP API has its own set of tests that isn't shipped with the + # release tarballs at the moment (github issues 55). + use extension && php-ext-source-r3_src_test +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/MaxMind/Db/." + elog "To use it in a script, require('MaxMind/Db/autoload.php')," + elog "and then most of the examples in the documentation should" + elog "work without further modification." +} diff --git a/dev-php/maxmind-db-reader/maxmind-db-reader-1.13.1.ebuild b/dev-php/maxmind-db-reader/maxmind-db-reader-1.13.1.ebuild new file mode 100644 index 000000000000..1b179f64e46b --- /dev/null +++ b/dev-php/maxmind-db-reader/maxmind-db-reader-1.13.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +MY_PN="MaxMind-DB-Reader-php" +MY_P="${MY_PN}-${PV}" +PHP_EXT_S="${WORKDIR}/${MY_P}/ext" +PHP_EXT_NAME="maxminddb" +PHP_EXT_OPTIONAL_USE="extension" + +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-source-r3 + +DESCRIPTION="PHP reader for the MaxMind database format" +HOMEPAGE="https://github.com/maxmind/MaxMind-DB-Reader-php" +SRC_URI="https://github.com/maxmind/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="extension test" + +RESTRICT="!test? ( test )" + +DEPEND="extension? ( dev-libs/libmaxminddb )" +RDEPEND="${DEPEND}" + +src_prepare() { + # We need to call eapply_user ourselves, because it may be skipped + # if either the "extension" USE flag is not set, or if the user's + # PHP_TARGETS is essentially empty. In the latter case, the eclass + # src_prepare does nothing. We only call the eclass phase conditionally + # because the correct version of e.g. "phpize" may not be there + # unless USE=extension is set. + if use extension ; then + php-ext-source-r3_src_prepare + else + default + fi +} + +src_configure() { + # The eclass phase will try to run the ./configure script even if it + # doesn't exist (in contrast to the default src_configure), so we + # need to skip it if the eclass src_prepare (that creates said + # script) is not run. + use extension && php-ext-source-r3_src_configure +} + +src_compile() { + # Avoids the same problem as in src_configure. + use extension && php-ext-source-r3_src_compile +} + +src_install() { + dodoc CHANGELOG.md README.md + insinto /usr/share/php + doins -r src/MaxMind + insinto /usr/share/php/MaxMind/Db + doins autoload.php + + use extension && php-ext-source-r3_src_install +} + +src_test() { + # The PHP API has its own set of tests that isn't shipped with the + # release tarballs at the moment (github issues 55). + use extension && php-ext-source-r3_src_test +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/MaxMind/Db/." + elog "To use it in a script, require('MaxMind/Db/autoload.php')," + elog "and then most of the examples in the documentation should" + elog "work without further modification." +} diff --git a/dev-php/maxmind-db-reader/metadata.xml b/dev-php/maxmind-db-reader/metadata.xml new file mode 100644 index 000000000000..7f0dd464a791 --- /dev/null +++ b/dev-php/maxmind-db-reader/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <use> + <flag name="extension"> + Build the C extension that uses <pkg>dev-libs/libmaxminddb</pkg> + </flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/metadata-minifier/Manifest b/dev-php/metadata-minifier/Manifest new file mode 100644 index 000000000000..4c7d8c9a7705 --- /dev/null +++ b/dev-php/metadata-minifier/Manifest @@ -0,0 +1 @@ +DIST metadata-minifier-1.0.0.tar.gz 2505 BLAKE2B 0312338b7d0c4b2c679c8bb054d11a785495faa8bc20c078ece89cbbfe8cfb7a8944eb248e7adc772c8309f416fcff5c81d920f35b4712f45bd4a7c7eb1291e7 SHA512 19915f67e8a00595e5582f7be8edbc22b322ce3d4c9e687105ea83c4789b9590c5cef967ee8a5614e938e13e262585e7377fc1e45f3a3e05340bf8ddcfe8fc72 diff --git a/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild b/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild new file mode 100644 index 000000000000..8a8e6e90f2f1 --- /dev/null +++ b/dev-php/metadata-minifier/metadata-minifier-1.0.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Small utility library that handles metadata minification and expansion" +HOMEPAGE="https://github.com/composer/metadata-minifier" +SRC_URI="https://github.com/composer/metadata-minifier/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto '/usr/share/php/Composer/MetadataMinifier' + doins -r src/* + + einstalldocs +} diff --git a/dev-php/metadata-minifier/metadata.xml b/dev-php/metadata-minifier/metadata.xml new file mode 100644 index 000000000000..10779b4a6534 --- /dev/null +++ b/dev-php/metadata-minifier/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/metadata.xml b/dev-php/metadata.xml new file mode 100644 index 000000000000..c394a45191bf --- /dev/null +++ b/dev-php/metadata.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The dev-php category contains libraries and utilities relevant to the + PHP programming language. + </longdescription> + <longdescription lang="de"> + Die Kategorie dev-php enthält Bibliotheken und Werkzeuge für die + Programmiersprache PHP. + </longdescription> + <longdescription lang="es"> + La categoría dev-php contiene librerías y utilidades referentes al + lenguaje de programación PHP. + </longdescription> + <longdescription lang="ja"> + dev-php カテゴリーにはPHPプログラミング言語に関連したライブラリーと + ユーティリティが含まれます。 + </longdescription> + <longdescription lang="nl"> + De dev-php categorie bevat bibliotheken en hulpmiddelen voor het gebruik + van de programmeertaal PHP. + </longdescription> + <longdescription lang="vi"> + Nhóm dev-php chứa các thư viện và tiện ích liên quan + đến ngôn ngữ lập trình PHP. + </longdescription> + <longdescription lang="it"> + La categoria dev-php contiene librerie ed utilità per il linguaggio di programmazione PHP. + </longdescription> + <longdescription lang="pt"> + A categoria dev-php contém bibliotecas e utilitários referentes + à linguagem de programação PHP. + </longdescription> + <longdescription lang="pl"> + Kategoria dev-php zawiera biblioteki i narzędzia związane z językiem + programowania PHP. + </longdescription> +</catmetadata> diff --git a/dev-php/mmslib/Manifest b/dev-php/mmslib/Manifest new file mode 100644 index 000000000000..9e9b66f30b78 --- /dev/null +++ b/dev-php/mmslib/Manifest @@ -0,0 +1 @@ +DIST mmslib-0.97.tar.gz 62106 BLAKE2B 624b905748982b017fb74bebbb2c7d3a0cb004298696d4bd5159a6ac44f7460279ab09e4594ed544e3aaacdc7d98bfbdb94fab130040227137ebf8d3b2bf098e SHA512 ca406af28a25e7af042e4575d88159fbc55b1c90687c355d4175a3b6567bf8fac249b93660aa920c48aa4e05dfaa95a529f8aefedd07db9ce6edd69492918392 diff --git a/dev-php/mmslib/metadata.xml b/dev-php/mmslib/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/mmslib/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/mmslib/mmslib-0.97-r1.ebuild b/dev-php/mmslib/mmslib-0.97-r1.ebuild new file mode 100644 index 000000000000..ce52f868bffc --- /dev/null +++ b/dev-php/mmslib/mmslib-0.97-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Encoding, decoding, and sending of MMS:es" +HOMEPAGE="https://www.hellkvist.org/software/#MMSLIB" +SRC_URI="https://www.hellkvist.org/software/mmslib/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND="dev-lang/php:*" + +src_install() { + insinto "/usr/share/php/mmslib" + doins mmslib.php + + einstalldocs + use examples && dodoc -r samples content +} diff --git a/dev-php/myclabs-deepcopy/Manifest b/dev-php/myclabs-deepcopy/Manifest new file mode 100644 index 000000000000..ca0b0588fe6e --- /dev/null +++ b/dev-php/myclabs-deepcopy/Manifest @@ -0,0 +1 @@ +DIST myclabs-deepcopy-1.10.2.tar.gz 9770 BLAKE2B 17be538ad4916a96098dce908d569fdc9e7bf792a754e6e199f98f1a05855de5f8888712b5500a34b01107655a100daa44b82a7f49a6fa09d23319801dbb1f73 SHA512 8cdb0c96991817bba573c147bace161412bccbb1479f67441be709dedd06355b387bd0c39e699fb7b0f89b50b4c99e94187c1145193a1324a7ca6fa9dd0e33de diff --git a/dev-php/myclabs-deepcopy/metadata.xml b/dev-php/myclabs-deepcopy/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/myclabs-deepcopy/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/myclabs-deepcopy/myclabs-deepcopy-1.10.2.ebuild b/dev-php/myclabs-deepcopy/myclabs-deepcopy-1.10.2.ebuild new file mode 100644 index 000000000000..7a251fd6764f --- /dev/null +++ b/dev-php/myclabs-deepcopy/myclabs-deepcopy-1.10.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="DeepCopy" + +DESCRIPTION="Create deep copies (clones) of your objects" +HOMEPAGE="https://github.com/myclabs/DeepCopy" +SRC_URI="https://github.com/myclabs/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + phpab \ + --output src/${MY_PN}/autoload.php \ + --template fedora2 \ + --basedir src/${MY_PN} \ + src || die +} + +src_install() { + insinto /usr/share/php/myclabs + doins -r src/* + + einstalldocs +} diff --git a/dev-php/nikic-php-parser/Manifest b/dev-php/nikic-php-parser/Manifest new file mode 100644 index 000000000000..0241d5a5919f --- /dev/null +++ b/dev-php/nikic-php-parser/Manifest @@ -0,0 +1 @@ +DIST nikic-php-parser-4.13.2.tar.gz 153762 BLAKE2B 065c5c494f78c2369a6d5ed2613de768eb58d2984abf2c91fb924071dc89f0c1c660cf06c444670d925d4db050880faa916759587db809b2ea519f4b1f0556da SHA512 9097c05694f983c5cd80919ac81a1eb0052e4b63c4c5b680578c576b04f1637fcccf6d93b918725b0b650a2e331d3121c80bd3d3e4c09e7ceed42fd23af7735c diff --git a/dev-php/nikic-php-parser/files/autoload.php b/dev-php/nikic-php-parser/files/autoload.php new file mode 100644 index 000000000000..76352b3bf039 --- /dev/null +++ b/dev-php/nikic-php-parser/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/nikic-PHP-Parser */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +Fedora\Autoloader\Autoload::addPsr4('PhpParser\\', __DIR__); diff --git a/dev-php/nikic-php-parser/metadata.xml b/dev-php/nikic-php-parser/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/nikic-php-parser/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild b/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild new file mode 100644 index 000000000000..40672e26b31f --- /dev/null +++ b/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="PHP-Parser" + +DESCRIPTION="PHP 5.2 to PHP 8.0 parser written in PHP" +HOMEPAGE="https://github.com/nikic/PHP-Parser" +SRC_URI="https://github.com/nikic/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:*[tokenizer(-)]" + +src_install() { + insinto /usr/share/php/nikic + doins -r lib/* + insinto /usr/share/php/nikic/PhpParser/ + doins "${FILESDIR}/autoload.php" +} diff --git a/dev-php/pear/metadata.xml b/dev-php/pear/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/pear/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pear/pear-1.10.3-r1.ebuild b/dev-php/pear/pear-1.10.3-r1.ebuild new file mode 100644 index 000000000000..aed194ee3a39 --- /dev/null +++ b/dev-php/pear/pear-1.10.3-r1.ebuild @@ -0,0 +1,13 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="PEAR - PHP Extension and Application Repository" +HOMEPAGE="https://pear.php.net/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc64 ~riscv ~s390 ~sparc x86" + +RDEPEND=">=dev-php/PEAR-PEAR-${PVR}" diff --git a/dev-php/pecl-amqp/Manifest b/dev-php/pecl-amqp/Manifest new file mode 100644 index 000000000000..fd66ca5f550e --- /dev/null +++ b/dev-php/pecl-amqp/Manifest @@ -0,0 +1,2 @@ +DIST amqp-2.1.2.tgz 118454 BLAKE2B 595e321b36c1189e0abfbb1711b822ba954a132d576ee973ce29f3a7f9dcbbe771b7452dd9101aa95bcde8a1c4b6ea0cba2512e06dd42e23e9c466a81ef43e71 SHA512 27ccbf27e04d4008dfcabcf576e44ee6bfa88e6cf0161fe4dccc1af594d2d8ec01e7c1b16e39f6f1ce2fddbc29ccc19113f2f56182d78cf727b4bb2767fefb54 +DIST amqp-2.2.0.tgz 119893 BLAKE2B 61d4f31101a07bfdfaea8a3abddcfd80970650cd1b6dc0574afae3db3feaad465820492a2345bc53fa011c17aa4c5667b5e8a7ee4c84197371f17054a5e5aaa8 SHA512 229eb9bfeef52ee38442ca79f1d96f5d35b60fda195b6198bdea3d824e868cc93821ef7441b39b4196a867c84834ada3115abe32ca1653ee9e99f83fc959e2d6 diff --git a/dev-php/pecl-amqp/metadata.xml b/dev-php/pecl-amqp/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-amqp/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-amqp/pecl-amqp-2.1.2.ebuild b/dev-php/pecl-amqp/pecl-amqp-2.1.2.ebuild new file mode 100644 index 000000000000..2b137df21ed3 --- /dev/null +++ b/dev-php/pecl-amqp/pecl-amqp-2.1.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP Bindings for AMQP 0-9-1 compatible brokers" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Tests require running rabbitmq-server on localhost which requires epmd +# which only accepts /var/run/epmd.pid as pidfile. +RESTRICT="test" + +RDEPEND=">=net-libs/rabbitmq-c-0.13.0:=[ssl(-)]" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" diff --git a/dev-php/pecl-amqp/pecl-amqp-2.2.0.ebuild b/dev-php/pecl-amqp/pecl-amqp-2.2.0.ebuild new file mode 100644 index 000000000000..29ea440d5451 --- /dev/null +++ b/dev-php/pecl-amqp/pecl-amqp-2.2.0.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3 php8-4 php8-5" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP Bindings for AMQP 0-9-1 compatible brokers" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Tests require running rabbitmq-server on localhost which requires epmd +# which only accepts /var/run/epmd.pid as pidfile. +RESTRICT="test" + +RDEPEND=">=net-libs/rabbitmq-c-0.13.0:=[ssl(-)]" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest new file mode 100644 index 000000000000..9c906fb1436b --- /dev/null +++ b/dev-php/pecl-apcu/Manifest @@ -0,0 +1,2 @@ +DIST apcu-5.1.24.tgz 90866 BLAKE2B fa0afae8948f952351951d51eb2966382a7bcc8be32c9b7a7b19096eddade62a2747cd0b8b173c484e7a39c4edfc6c266caa0d5e3455691274cd5ec5fedd976a SHA512 771c0551feb35bf64bc07a7a2c60c9b549009a252f4f158fbc83c7d77f4119d84291a1128302a350042d83879dcb38a445672ce115d8c14b969b51f423a446fa +DIST apcu-5.1.27.tgz 94489 BLAKE2B 532973f3d527e545ea2e722232b5114ac5705a7b8a1bbe198998d6b2ea44f7d7575280ed7122a01c2136d177218a63617288e363f1f549afc1f676ae49f480dc SHA512 e1cf746b8d82e29986a5bc744624dd9690b30952a9a697dfad5219b576978f93c152eac637b29e5a8801237f06c52b46527e26e86a46d880bfee13862000ff7e diff --git a/dev-php/pecl-apcu/metadata.xml b/dev-php/pecl-apcu/metadata.xml new file mode 100644 index 000000000000..874cfe809182 --- /dev/null +++ b/dev-php/pecl-apcu/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <use> + <flag name="lock-semaphore">Enable semaphore locks instead of fcntl</flag> + <flag name="lock-pthreadmutex">Enable pthread mutex locking</flag> + <flag name="lock-pthreadrw">Enable pthread read/write locking</flag> + <flag name="lock-spinlock">Enable spin locks (EXPERIMENTAL)</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.24.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.24.ebuild new file mode 100644 index 000000000000..e0664253170a --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.24.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_INI="yes" +PHP_EXT_NAME="apcu" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3 php8-4" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Stripped down version of APC supporting only user cache" + +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="amd64 ~arm arm64 x86" + +LOCKS="pthreadmutex pthreadrw spinlock semaphore" +LUSE="" +for l in ${LOCKS}; do + LUSE+="lock-${l} " +done +IUSE="+mmap ${LUSE/lock-pthreadrw/+lock-pthreadrw}" +REQUIRED_USE="^^ ( $LUSE )" + +DOCS=( NOTICE README.md TECHNOTES.txt ) + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-apcu + $(use_enable mmap apcu-mmap) + $(use_enable lock-spinlock apcu-spinlocks) + ) + + # Broken upstream autoconf test disables if present at all + use lock-pthreadrw || PHP_EXT_ECONF_ARGS+=( --disable-apcu-rwlocks ) + + php-ext-source-r3_src_configure +} + +src_install() { + php-ext-pecl-r3_src_install + + insinto /usr/share/php8/apcu + doins apc.php +} + +pkg_postinst() { + elog "The apc.php file shipped with this release of pecl-apcu" + elog "was installed to ${EPREFIX}/usr/share/php8/apcu/." +} diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.27.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.27.ebuild new file mode 100644 index 000000000000..71ba23df7491 --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.27.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_INI="yes" +PHP_EXT_NAME="apcu" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Stripped down version of APC supporting only user cache" + +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +LOCKS="pthreadmutex pthreadrw spinlock semaphore" +LUSE="" +for l in ${LOCKS}; do + LUSE+="lock-${l} " +done +IUSE="+mmap ${LUSE/lock-pthreadrw/+lock-pthreadrw}" +REQUIRED_USE="^^ ( $LUSE )" + +DOCS=( NOTICE README.md TECHNOTES.txt ) + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-apcu + $(use_enable mmap apcu-mmap) + $(use_enable lock-spinlock apcu-spinlocks) + ) + + # Broken upstream autoconf test disables if present at all + use lock-pthreadrw || PHP_EXT_ECONF_ARGS+=( --disable-apcu-rwlocks ) + + php-ext-source-r3_src_configure +} + +src_install() { + php-ext-pecl-r3_src_install + + insinto /usr/share/php8/apcu + doins apc.php +} + +pkg_postinst() { + elog "The apc.php file shipped with this release of pecl-apcu" + elog "was installed to ${EPREFIX}/usr/share/php8/apcu/." +} diff --git a/dev-php/pecl-brotli/Manifest b/dev-php/pecl-brotli/Manifest new file mode 100644 index 000000000000..f418fe44c483 --- /dev/null +++ b/dev-php/pecl-brotli/Manifest @@ -0,0 +1,2 @@ +DIST pecl-brotli-0.15.0.tgz 468436 BLAKE2B 865f1e970157ac1fead313e63133c74b48ef8fc1d916ea1efbba74186f6ba2b9c3e93b67f842df40b3399713c5bef3d62a15dda0f626a0c9a3b0a956c763a9eb SHA512 0e3be424eace7ed50f67dac780fa55c0fa6da1265676cea12588d8713ec6636936379a543bde48f7b30054aeda038200a3f650259e2da589f642447125b32e6a +DIST pecl-brotli-0.16.0.tgz 470378 BLAKE2B 5a64b86a4ef53badafdb55e67d9e5b508123604c0317aaa4c827c6534f71232b2e2cdca378d970be35bcd12a9b74c18fc3064ed6639ba7f2384a905107134942 SHA512 c8876afe320eb18a6073e0441ad1e17bbe5ff967f9a4c774e775fb23904f676974b328716651f93e893aebbcc9b1550e1276cd7eab08189aab2fe88828d9bde3 diff --git a/dev-php/pecl-brotli/metadata.xml b/dev-php/pecl-brotli/metadata.xml new file mode 100644 index 000000000000..35cc0d813242 --- /dev/null +++ b/dev-php/pecl-brotli/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>me@rahil.rocks</email> + <name>Rahil Bhimjiani</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/kjdev/php-ext-brotli/issues</bugs-to> + <doc>https://github.com/kjdev/php-ext-brotli/blob/master/README.md</doc> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild new file mode 100644 index 000000000000..fbb7b14f74d6 --- /dev/null +++ b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +unset SRC_URI +PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}" + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/kjdev/php-ext-brotli.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PHP_EXT_PECL_PKG_V}" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz -> ${P}.tgz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Brotli compression extension for PHP" +HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli" + +LICENSE="MIT" +SLOT="0" + +RDEPEND="app-arch/brotli:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PHP_EXT_ECONF_ARGS=( + --with-libbrotli +) diff --git a/dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild b/dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild new file mode 100644 index 000000000000..0e0a2032e897 --- /dev/null +++ b/dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3 php8-4" + +inherit php-ext-pecl-r3 + +unset SRC_URI +PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}" + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/kjdev/php-ext-brotli.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PHP_EXT_PECL_PKG_V}" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz -> ${P}.tgz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Brotli compression extension for PHP" +HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli" + +LICENSE="MIT" +SLOT="0/0.16" + +RDEPEND="app-arch/brotli:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PHP_EXT_ECONF_ARGS=( + --with-libbrotli +) + +src_test(){ + export SKIP_ONLINE_TESTS="yes" + php-ext-pecl-r3_src_test + unset SKIP_ONLINE_TESTS +} diff --git a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild new file mode 100644 index 000000000000..0e0a2032e897 --- /dev/null +++ b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3 php8-4" + +inherit php-ext-pecl-r3 + +unset SRC_URI +PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}" + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/kjdev/php-ext-brotli.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PHP_EXT_PECL_PKG_V}" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz -> ${P}.tgz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Brotli compression extension for PHP" +HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli" + +LICENSE="MIT" +SLOT="0/0.16" + +RDEPEND="app-arch/brotli:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PHP_EXT_ECONF_ARGS=( + --with-libbrotli +) + +src_test(){ + export SKIP_ONLINE_TESTS="yes" + php-ext-pecl-r3_src_test + unset SKIP_ONLINE_TESTS +} diff --git a/dev-php/pecl-dio/Manifest b/dev-php/pecl-dio/Manifest new file mode 100644 index 000000000000..76073825c706 --- /dev/null +++ b/dev-php/pecl-dio/Manifest @@ -0,0 +1,2 @@ +DIST dio-0.2.1.tgz 37004 BLAKE2B 5988e7fbbb26f904ed8f651bb3499afdd444fce7408d76fd62a8bf74b5a035006ecb9b23fdcf85cb42885976c7f39c9b2480578e3bfa56ad9ab972dcda481124 SHA512 ed40ae3a950410e65a15c893a90d16da7f152c73e92623b68706b942c42f27e01a799134cb4b464d09f6e99c35d80e634ba662a20c7c9bc7f27ca2515c392abf +DIST dio-0.3.0.tgz 22643 BLAKE2B 77e216f0fc003849e5f771409c25c5286f50be90b3fad9dc405d5b7673ee1add8904e44de5ea46038b7d5af0c26f021ea258bf4125f5c2250754263a0cdb4d2a SHA512 1321c804a78f142991aff5718f9f758b0b5041f17dc2746f5dc7931dc49faffec663d3d31cca8b91f5a76cb584da95843089d32bd0fb249e3643e2106ecd3772 diff --git a/dev-php/pecl-dio/metadata.xml b/dev-php/pecl-dio/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-dio/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-dio/pecl-dio-0.2.1.ebuild b/dev-php/pecl-dio/pecl-dio-0.2.1.ebuild new file mode 100644 index 000000000000..f0dffbed913f --- /dev/null +++ b/dev-php/pecl-dio/pecl-dio-0.2.1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="dio" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Direct I/O functions for PHP" +LICENSE="PHP-3.01" +SLOT="0" diff --git a/dev-php/pecl-dio/pecl-dio-0.3.0.ebuild b/dev-php/pecl-dio/pecl-dio-0.3.0.ebuild new file mode 100644 index 000000000000..b565e1a34e8c --- /dev/null +++ b/dev-php/pecl-dio/pecl-dio-0.3.0.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="dio" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Direct I/O functions for PHP" + +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/pecl-event/Manifest b/dev-php/pecl-event/Manifest new file mode 100644 index 000000000000..5caefdb82ebd --- /dev/null +++ b/dev-php/pecl-event/Manifest @@ -0,0 +1,2 @@ +DIST event-3.1.4.tgz 205220 BLAKE2B 0f4e3fdb587b906f0f0b30a06562fa728051c1472362f60a0f1b8d9f13e32269eeb529cbb3187a6fcabd77612f36683da2f09024a20126d7141c674e1efd5c6c SHA512 d9f9431f3ee1092b421d75fd5a065feea65014a38c45d6087f6d4754458e286a3bbb23ce0aefe1771a960a2b531987d19f96b156ae38f5336631d9e3381e4067 +DIST pecl-event-3.1.5.tar.bz2 128490 BLAKE2B c788b90e373ec1f4b1e303a69a6815bb291cbcd532b78b3dea65b4e2b9e2216a1cc774c4baae5da98c48597e8c8ef6540f6c9d0902dd44dbb199cbba8f2e54b0 SHA512 8d038ea3ba6b6b5124be5d66f3c4dae6068375d75a14b19e657370292d69db6ac02b11f70ec576b2bd00b2bca937890a6cf639f3d9a8f04dfaee1d0103d68ca4 diff --git a/dev-php/pecl-event/metadata.xml b/dev-php/pecl-event/metadata.xml new file mode 100644 index 000000000000..ec43bc397506 --- /dev/null +++ b/dev-php/pecl-event/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <maintainer type="person"> + <email>rrosmanov@gmail.com</email> + <name>Ruslan Osmanov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="extra">Add support of the Libevent extra API</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-event/pecl-event-3.1.4-r1.ebuild b/dev-php/pecl-event/pecl-event-3.1.4-r1.ebuild new file mode 100644 index 000000000000..9c590baa8854 --- /dev/null +++ b/dev-php/pecl-event/pecl-event-3.1.4-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021-2024 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="event" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( README.md ) + +USE_PHP="php8-1 php8-2 php8-3 php8-4 php8-5" +#Unique to this release +MY_P="${PN/pecl-/}-${PV/_p/r}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" + +inherit php-ext-pecl-r3 + +KEYWORDS="~amd64 ~ia64 ~x86" +LICENSE="PHP-3.01" + +DESCRIPTION="PHP wrapper for libevent2" +SLOT="0" + +DEPEND=" + >=dev-libs/libevent-2.0.2 + ssl? ( + dev-libs/openssl:0= + + ) + php_targets_php8-1? ( dev-lang/php:8.1[sockets(-)?] ) + php_targets_php8-2? ( dev-lang/php:8.2[sockets(-)?] ) + php_targets_php8-3? ( dev-lang/php:8.3[sockets(-)?] ) + php_targets_php8-4? ( dev-lang/php:8.4[sockets(-)?] ) + php_targets_php8-5? ( dev-lang/php:8.5[sockets(-)?] ) +" + +RDEPEND=" + ${DEPEND} + !dev-php/pecl-libevent" + +IUSE="debug examples +extra +sockets +ssl threads" +#Unique to this release +S="${WORKDIR}/${MY_P}" +PHP_EXT_S="${S}" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --with-event-core + $(use_enable debug event-debug) + $(use_with extra event-extra) + $(use_with ssl event-openssl) + $(use_with threads event-pthreads) + $(use_enable sockets event-sockets) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test + done +} diff --git a/dev-php/pecl-event/pecl-event-3.1.5.ebuild b/dev-php/pecl-event/pecl-event-3.1.5.ebuild new file mode 100644 index 000000000000..ea0998a9ec11 --- /dev/null +++ b/dev-php/pecl-event/pecl-event-3.1.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="event" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( README.md ) + +USE_PHP="php8-2 php8-3 php8-4 php8-5" +#Unique to this release +#MY_P="${PN/pecl-/}-${PV/_p/r}" +GIT_COMMIT="e14e0f5e134ee589cc106c9304e514b899754ba2" +MY_P="osmanov-pecl-event-e14e0f5e134e" + +inherit php-ext-pecl-r3 + +KEYWORDS="~amd64 ~ia64 ~x86" +LICENSE="PHP-3.01" +HOMEPAGE="https://bitbucket.org/osmanov/pecl-event/src/master/" +SRC_URI="https://bitbucket.org/osmanov/pecl-event/get/${GIT_COMMIT}.tar.bz2 -> ${P}.tar.bz2" + +DESCRIPTION="PHP wrapper for libevent2" +SLOT="0" + +DEPEND=" + >=dev-libs/libevent-2.0.2 + ssl? ( + dev-libs/openssl:0= + + ) + php_targets_php8-2? ( dev-lang/php:8.2[sockets(-)?] ) + php_targets_php8-3? ( dev-lang/php:8.3[sockets(-)?] ) + php_targets_php8-4? ( dev-lang/php:8.4[sockets(-)?] ) + php_targets_php8-5? ( dev-lang/php:8.5[sockets(-)?] ) +" + +RDEPEND=" + ${DEPEND} + !dev-php/pecl-libevent" + +IUSE="debug examples +extra +sockets +ssl threads" +#Unique to this release +S="${WORKDIR}/${MY_P}" +PHP_EXT_S="${S}" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --with-event-core + $(use_enable debug event-debug) + $(use_with extra event-extra) + $(use_with ssl event-openssl) + $(use_with threads event-pthreads) + $(use_enable sockets event-sockets) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test + done +} diff --git a/dev-php/pecl-http/Manifest b/dev-php/pecl-http/Manifest new file mode 100644 index 000000000000..0e9c3d8ec895 --- /dev/null +++ b/dev-php/pecl-http/Manifest @@ -0,0 +1,2 @@ +DIST pecl_http-4.2.6.tgz 225503 BLAKE2B 834c5a38de2ec5525472fbe3a2c92804e3d471cdbd2f0791990bbde3001a4ba63822e9e4600b1a692f117f4fb941c86a78cd533512b7c5cacdad87f055160cfd SHA512 50c921d11e035281bd55152e449ee47d203c839d654b097fcbc5d6d93faf91a6111817b8a7157715de0af9f15c713974a53a2ab318eddd840bc3a7e6b2b50e11 +DIST pecl_http-4.3.1.tgz 224532 BLAKE2B 17756f02ea9e1ac4c90351ba332dc99218ba0ae001a9e16a381ef2f14c5c164eb7bbba1cd413bc631f1c8a7b2ac0c55b8ba1a354ea8a4b2fad577318ec422465 SHA512 de1d03d37c761ad443c2d1d401662dc6c175c63c63464f79d69175548b98260716325b92ac0f98c903b0de6cf8bed481617e61166a0a314d061ffc32adb129ab diff --git a/dev-php/pecl-http/metadata.xml b/dev-php/pecl-http/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-http/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-http/pecl-http-4.2.6.ebuild b/dev-php/pecl-http/pecl-http-4.2.6.ebuild new file mode 100644 index 000000000000..fea48305e8c5 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-4.2.6.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_INI_NAME="50-http" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 flag-o-matic + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="8" +KEYWORDS="amd64 x86" +IUSE="ssl curl_ssl_gnutls +curl_ssl_openssl" + +COMMON_DEPEND="app-arch/brotli:= + dev-libs/libevent + >=dev-php/pecl-raphf-2.0.1:7[php_targets_php8-2(-)?,php_targets_php8-3(-)?] + net-dns/libidn2 + virtual/zlib:= + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=] ) + !ssl? ( net-misc/curl[-ssl] ) +" +DEPEND=" + php_targets_php8-2? ( ${COMMON_DEPEND} dev-lang/php:8.2[session(-),iconv(-)] ) + php_targets_php8-3? ( ${COMMON_DEPEND} dev-lang/php:8.3[session(-),iconv(-)] )" +RDEPEND="${DEPEND}" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps + --without-http-libidn-dir --without-http-libicu-dir + --without-http-libidnkit2-dir --without-http-libidnkit-dir ) + +src_prepare() { + php-ext-source-r3_src_prepare + + # Respect LDFLAGS, bug 727134 + export EXTRA_LDFLAGS="${LDFLAGS}" + + # Won't compile with GCC15 otherwise. + append-cflags -std=gnu17 +} + +src_test() { + # Cannot use eclass function due to required modules + # All tests SKIP otherwise + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + + # Link in required modules for testing + ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die + + sed -i \ + 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=raphf/' \ + Makefile || die + + SKIP_ONLINE_TESTS=yes NO_INTERACTION="yes" emake test + + # Clean up testing links + rm modules/raphf.so || die + done +} diff --git a/dev-php/pecl-http/pecl-http-4.3.1.ebuild b/dev-php/pecl-http/pecl-http-4.3.1.ebuild new file mode 100644 index 000000000000..4ced72373d85 --- /dev/null +++ b/dev-php/pecl-http/pecl-http-4.3.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="http" +PHP_EXT_PECL_PKG="pecl_http" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_INI_NAME="50-http" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Extended HTTP Support for PHP" +LICENSE="BSD-2 MIT" +SLOT="8" +KEYWORDS="~amd64 ~x86" +IUSE="ssl curl_ssl_gnutls +curl_ssl_openssl" + +COMMON_DEPEND="app-arch/brotli:= + dev-libs/libevent + >=dev-php/pecl-raphf-2.0.1:7[php_targets_php8-2(-)?,php_targets_php8-3(-)?] + net-dns/libidn2 + virtual/zlib:= + ssl? ( net-misc/curl[ssl,curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=] ) + !ssl? ( net-misc/curl[-ssl] ) +" +DEPEND=" + php_targets_php8-2? ( ${COMMON_DEPEND} dev-lang/php:8.2[session(-),iconv(-)] ) + php_targets_php8-3? ( ${COMMON_DEPEND} dev-lang/php:8.3[session(-),iconv(-)] )" +RDEPEND="${DEPEND}" + +PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps + --without-http-libidn-dir --without-http-libicu-dir + --without-http-libidnkit2-dir --without-http-libidnkit-dir ) + +src_prepare() { + php-ext-source-r3_src_prepare + + # Respect LDFLAGS, bug 727134 + export EXTRA_LDFLAGS="${LDFLAGS}" +} + +src_test() { + # Cannot use eclass function due to required modules + # All tests SKIP otherwise + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + + # Link in required modules for testing + ln -s "${EXT_DIR}/raphf.so" "modules/raphf.so" || die + + sed -i \ + 's/PHP_TEST_SHARED_EXTENSIONS)/PHP_TEST_SHARED_EXTENSIONS) -d extension=raphf/' \ + Makefile || die + + SKIP_ONLINE_TESTS=yes NO_INTERACTION="yes" emake test + + # Clean up testing links + rm modules/raphf.so || die + done +} diff --git a/dev-php/pecl-imagick/Manifest b/dev-php/pecl-imagick/Manifest new file mode 100644 index 000000000000..575d398a4bc2 --- /dev/null +++ b/dev-php/pecl-imagick/Manifest @@ -0,0 +1,2 @@ +DIST imagick-3.7.0.tgz 360138 BLAKE2B 2c149f2ec771df92789d67e88c6f7180d3da7c9182561432bdd4e0a83f96982cc8fc95bc1a003e05e37a54fabe6ab0fe693a6b9208d2e481d36e6c334aeee023 SHA512 c84408e4e4a0c46d979240e06d58d264c6bb21f3b95e3d434c8a21cd808f6c495fd453ef9c07b5c44dac81c6f205b6697f8ecaf1a65a86ce4e9052328a389ebe +DIST imagick-3.8.1.tgz 364008 BLAKE2B 726dfb52901eb216c9824d2ad9e432c587601982fd24dabc7b569a2563f0a00a6ec16b85cc6296d7e1fc0d40c8cc6a0e2ccd1915345191411d693df0935b54dd SHA512 2ec0d112ac795dfebda59fea573059a3eef6ebdd065db5e06beb45a0980ffbea090ccb9afb6a48bab5452c38d36564ffa5be00ff95cf9a199bad1d886f0c7952 diff --git a/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch new file mode 100644 index 000000000000..d75d23dbf11b --- /dev/null +++ b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.3.patch @@ -0,0 +1,20 @@ +From 7088edc353f53c4bc644573a79cdcd67a726ae16 Mon Sep 17 00:00:00 2001 +From: FedericoHeichou <federicoheichou@gmail.com> +Date: Fri, 24 Nov 2023 11:24:00 +0100 +Subject: [PATCH] Fix compilation error "Unterminated preprocessor conditions" + in php 8.3 + +--- + Imagick.stub.php | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Imagick.stub.php b/Imagick.stub.php +index 804c0152..49da9386 100644 +--- a/Imagick.stub.php ++++ b/Imagick.stub.php +@@ -1669,4 +1669,5 @@ public function setInterpolateMethod(int $method): bool{} + public function setOrientation(int $orientation): bool {} + #endif + ++#endif + } diff --git a/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.4.patch b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.4.patch new file mode 100644 index 000000000000..4c3f247a70f0 --- /dev/null +++ b/dev-php/pecl-imagick/files/pecl-imagick-3.7.0-php8.4.patch @@ -0,0 +1,42 @@ +Patch taken from https://github.com/Imagick/imagick/pull/690 + +From 65e27f2bc02e7e8f1bf64e26e359e42a1331fca1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= <mvorisek@mvorisek.cz> +Date: Wed, 25 Sep 2024 10:56:28 +0200 +Subject: [PATCH] Fix removed "php_strtolower" for PHP 8.4 + +--- + imagick.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/imagick.c b/imagick.c +index 1b765389..ebab7ae7 100644 +--- a/imagick.c ++++ b/imagick.c +@@ -610,7 +610,7 @@ static zval *php_imagick_read_property(zend_object *object, zend_string *member, + if (format) { + retval = rv; + ZVAL_STRING(retval, format); +- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); ++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); + IMAGICK_FREE_MAGICK_MEMORY(format); + } else { + retval = rv; +@@ -683,7 +683,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, voi + if (format) { + retval = rv; + ZVAL_STRING(retval, format); +- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); ++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); + IMAGICK_FREE_MAGICK_MEMORY(format); + } else { + retval = rv; +@@ -766,7 +766,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, con + + if (format) { + ZVAL_STRING(retval, format, 1); +- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); ++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); + IMAGICK_FREE_MAGICK_MEMORY(format); + } else { + ZVAL_STRING(retval, "", 1); diff --git a/dev-php/pecl-imagick/metadata.xml b/dev-php/pecl-imagick/metadata.xml new file mode 100644 index 000000000000..9897662c90a1 --- /dev/null +++ b/dev-php/pecl-imagick/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:php:imagick</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild new file mode 100644 index 000000000000..8a53c46996c4 --- /dev/null +++ b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="imagick" +USE_PHP="php8-2 php8-3" + +# https://github.com/Imagick/imagick/issues/626 +PHP_EXT_NEEDED_USE="-debug" + +inherit php-ext-pecl-r3 + +KEYWORDS="amd64 ~arm ~arm64 x86" + +DESCRIPTION="PHP wrapper for the ImageMagick library" +HOMEPAGE="https://pecl.php.net/package/imagick https://github.com/Imagick/imagick" +LICENSE="PHP-3.01" +SLOT="0" +IUSE="examples test" +RESTRICT="!test? ( test )" + +# imagemagick[-openmp] is needed wrt bug 547922 and upstream +# https://github.com/Imagick/imagick#openmp +RDEPEND="media-gfx/imagemagick:=[-openmp]" +DEPEND=" + ${RDEPEND} + test? ( media-gfx/imagemagick:=[hdri,jpeg,png,svg,truetype,xml] ) +" + +PATCHES=( "${FILESDIR}/${PN}-3.7.0-php8.3.patch" ) + +PHP_EXT_ECONF_ARGS="--with-imagick=${EPREFIX}/usr" + +src_install() { + php-ext-pecl-r3_src_install + php-ext-source-r3_addtoinifiles "imagick.skip_version_check" "1" +} diff --git a/dev-php/pecl-imagick/pecl-imagick-3.7.0-r4.ebuild b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r4.ebuild new file mode 100644 index 000000000000..ccc648d92f82 --- /dev/null +++ b/dev-php/pecl-imagick/pecl-imagick-3.7.0-r4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="imagick" +USE_PHP="php8-2 php8-3 php8-4" + +# https://github.com/Imagick/imagick/issues/626 +PHP_EXT_NEEDED_USE="-debug" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP wrapper for the ImageMagick library" +HOMEPAGE="https://pecl.php.net/package/imagick https://github.com/Imagick/imagick" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +# imagemagick[-openmp] is needed wrt bug 547922 and upstream +# https://github.com/Imagick/imagick#openmp +RDEPEND="media-gfx/imagemagick:=[-openmp]" +DEPEND=" + ${RDEPEND} + test? ( media-gfx/imagemagick:=[hdri,jpeg,png,svg,truetype,xml] ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.7.0-php8.3.patch + "${FILESDIR}"/${PN}-3.7.0-php8.4.patch +) + +PHP_EXT_ECONF_ARGS="--with-imagick=${EPREFIX}/usr" + +src_install() { + php-ext-pecl-r3_src_install + php-ext-source-r3_addtoinifiles "imagick.skip_version_check" "1" +} diff --git a/dev-php/pecl-imagick/pecl-imagick-3.8.1.ebuild b/dev-php/pecl-imagick/pecl-imagick-3.8.1.ebuild new file mode 100644 index 000000000000..3ba8d0a88018 --- /dev/null +++ b/dev-php/pecl-imagick/pecl-imagick-3.8.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="imagick" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +# https://github.com/Imagick/imagick/issues/626 +PHP_EXT_NEEDED_USE="-debug" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP wrapper for the ImageMagick library" +HOMEPAGE="https://pecl.php.net/package/imagick https://github.com/Imagick/imagick" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +# The USE="-openmp" requirement on media-gfx/imagemagick (from bug +# 547922) has been dropped in v3.8.0 due to popular demand. With any +# luck, enough time has passed that these segfaults no longer occur. +RDEPEND="media-gfx/imagemagick:=" + +# While it does support skipping tests, the test suite for pecl-imagick +# doesn't accomodate many imagemagick build options. We could curate a +# list of tests to remove in src_prepare() based on what USE flags are +# set, but in my opinion, it would break too frequently. +DEPEND=" + ${RDEPEND} + test? ( media-gfx/imagemagick:=[fontconfig,-hardened,hdri,jpeg,png,svg,truetype,xml] ) +" + +PHP_EXT_ECONF_ARGS="--with-imagick=${EPREFIX}/usr" + +src_prepare() { + # Test fails with ImageMagick >=7.1.2 + # + # https://github.com/Imagick/imagick/issues/737 + # + rm "${S}/tests/024-ispixelsimilar.phpt" || die + + php-ext-source-r3_src_prepare +} + +src_install() { + php-ext-pecl-r3_src_install + php-ext-source-r3_addtoinifiles "imagick.skip_version_check" "1" +} diff --git a/dev-php/pecl-mailparse/Manifest b/dev-php/pecl-mailparse/Manifest new file mode 100644 index 000000000000..779c46245f7a --- /dev/null +++ b/dev-php/pecl-mailparse/Manifest @@ -0,0 +1 @@ +DIST mailparse-3.1.6.tgz 945937 BLAKE2B c1bdfb3ee38af0984fd2f5b9992f524f9f7fee3ee2e8936ad5f8d86e3b9475778521f7c288fc71979f258f8ad1b7fa3174917afc66150e6eaad828338245fc50 SHA512 4bb629c2fc2aa7e9ab74f004222b6cfca13a7f0c3cb5152b67423bea4fff8dca5b4442ac2ddfea1127dfc893141eedae3e22b3f05f1b2368c4a4d0267a090388 diff --git a/dev-php/pecl-mailparse/metadata.xml b/dev-php/pecl-mailparse/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-mailparse/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-mailparse/pecl-mailparse-3.1.6.ebuild b/dev-php/pecl-mailparse/pecl-mailparse-3.1.6.ebuild new file mode 100644 index 000000000000..53193852a3e2 --- /dev/null +++ b/dev-php/pecl-mailparse/pecl-mailparse-3.1.6.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WANT_AUTOMAKE="none" +PHP_EXT_NAME="mailparse" +USE_PHP="php8-2 php8-3" +PHP_EXT_NEEDED_USE="unicode(-)" +DOCS=( README.md ) + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension for parsing and working with RFC822 and MIME compliant messages" +LICENSE="PHP-3.01" +SLOT="7" + +KEYWORDS="amd64 ppc64 x86" diff --git a/dev-php/pecl-memcached/Manifest b/dev-php/pecl-memcached/Manifest new file mode 100644 index 000000000000..6f83bb4aac1a --- /dev/null +++ b/dev-php/pecl-memcached/Manifest @@ -0,0 +1,2 @@ +DIST memcached-3.3.0.tgz 92669 BLAKE2B 13c21aecd1ac720ac5a0bd0b1e1bbd2508b124ffd3d5be4fed53f8588974799ccb63f67cdc3d46886216b03bea60f01610bc806b5c363ac210c3ebb3e8aa01fb SHA512 bdbe8b203cadcda50c4f8099fac1161424f3091537027251aaba7d9ba9a7932f59a9ac201dca9d9ae3aa59ff833ac6aa0284c5ab118cdb85a9fd89f63a95509a +DIST memcached-3.4.0.tgz 93288 BLAKE2B e496a9a3590d9064fb0afdfde37a85dd98045fd2efbb357f3afac90957cb00333b246836bf7e4e49fcf27731980d878a54c96e04e1a82f8987a44c334fcb239c SHA512 b60fdb7347f8be19f53f67d2bd96ed1423b862a517ad61513d9f736d4cbfe55b9da1e4b13d366968e39a0617e0b98f48e72d0fb357061f3cc093b18f5afad685 diff --git a/dev-php/pecl-memcached/metadata.xml b/dev-php/pecl-memcached/metadata.xml new file mode 100644 index 000000000000..64a7d5c911b1 --- /dev/null +++ b/dev-php/pecl-memcached/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>robbat2@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <use> + <flag name="igbinary">Enable support for the igbinary serializer</flag> + <flag name="json">Enable support for json serialization</flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:php:memcached</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-memcached/pecl-memcached-3.3.0.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.3.0.ebuild new file mode 100644 index 000000000000..5745baa4ede5 --- /dev/null +++ b/dev-php/pecl-memcached/pecl-memcached-3.3.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PHP_EXT_NAME="memcached" +DOCS=( ChangeLog README.markdown ) + +USE_PHP="php8-2 php8-3" +PHP_EXT_NEEDED_USE="json(+)?,session(-)?" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Interface PHP with memcached via libmemcached library" +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="amd64 arm arm64 x86" +IUSE="igbinary json sasl +session test" + +REQUIRED_USE="test? ( igbinary )" +RESTRICT="!test? ( test )" + +# php-ext-pecl-r3 doesn't expose a $*_USEDEP so we roll our own +IGBINARY_DEPEND="" +for slot in ${USE_PHP} ; do + IGBINARY_DEPEND+="dev-php/igbinary[php_targets_${slot}(-)?] " +done + +COMMON_DEPEND="|| ( dev-libs/libmemcached-awesome[sasl(-)?] >=dev-libs/libmemcached-1.0.14[sasl(-)?] ) + virtual/zlib:= + igbinary? ( ${IGBINARY_DEPEND} ) +" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND="${COMMON_DEPEND} test? ( net-misc/memcached )" + +src_configure() { + local PHP_EXT_ECONF_ARGS="--enable-memcached + $(use_enable session memcached-session) + $(use_enable sasl memcached-sasl) + $(use_enable json memcached-json) + $(use_enable igbinary memcached-igbinary)" + + php-ext-source-r3_src_configure +} + +src_test() { + touch "${T}/memcached.pid" || die + local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 -U 11211 ) + [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) + memcached "${memcached_opts[@]}" || die "Can't start memcached test server" + + # make test fails to pull in igbinary.so, so we run it ourselves with the correct setting strings + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + NO_INTERACTION="yes" "${PHPCLI}" run-tests.php -n -d "extension=${EXT_DIR}/igbinary.so" -d "extension=modules/memcached.so" || die + done + + kill "$(<"${T}/memcached.pid")" + return ${exit_status} +} diff --git a/dev-php/pecl-memcached/pecl-memcached-3.4.0.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.4.0.ebuild new file mode 100644 index 000000000000..dab1fc6510cb --- /dev/null +++ b/dev-php/pecl-memcached/pecl-memcached-3.4.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PHP_EXT_NAME="memcached" +DOCS=( ChangeLog README.markdown ) + +USE_PHP="php8-2 php8-3 php8-4" +PHP_EXT_NEEDED_USE="json(+)?,session(-)?" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Interface PHP with memcached via libmemcached library" +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="amd64 arm arm64 x86" +IUSE="igbinary json sasl +session test" + +REQUIRED_USE="test? ( igbinary )" +RESTRICT="!test? ( test )" + +# php-ext-pecl-r3 doesn't expose a $*_USEDEP so we roll our own +IGBINARY_DEPEND="" +for slot in ${USE_PHP} ; do + IGBINARY_DEPEND+="dev-php/igbinary[php_targets_${slot}(-)?] " +done + +COMMON_DEPEND="|| ( dev-libs/libmemcached-awesome[sasl(-)?] >=dev-libs/libmemcached-1.0.14[sasl(-)?] ) + virtual/zlib:= + igbinary? ( ${IGBINARY_DEPEND} ) +" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND="${COMMON_DEPEND} test? ( net-misc/memcached )" + +src_configure() { + local PHP_EXT_ECONF_ARGS="--enable-memcached + $(use_enable session memcached-session) + $(use_enable sasl memcached-sasl) + $(use_enable json memcached-json) + $(use_enable igbinary memcached-igbinary)" + + php-ext-source-r3_src_configure +} + +src_test() { + touch "${T}/memcached.pid" || die + local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 -U 11211 ) + [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) + memcached "${memcached_opts[@]}" || die "Can't start memcached test server" + + # make test fails to pull in igbinary.so, so we run it ourselves with the correct setting strings + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + NO_INTERACTION="yes" "${PHPCLI}" run-tests.php -n -d "extension=${EXT_DIR}/igbinary.so" -d "extension=modules/memcached.so" || die + done + + kill "$(<"${T}/memcached.pid")" + return ${exit_status} +} diff --git a/dev-php/pecl-mongodb/Manifest b/dev-php/pecl-mongodb/Manifest new file mode 100644 index 000000000000..91396d06a8c1 --- /dev/null +++ b/dev-php/pecl-mongodb/Manifest @@ -0,0 +1,2 @@ +DIST mongodb-2.3.2.tgz 2243946 BLAKE2B 2432989e4dbb8397b0051308a5e886f1e359b474ab6b86f68940870b0a17503fcec33106e1f9fe2cd5529f1ab8bdbbde010a5bc5c00f0ca43323dc1a4a246105 SHA512 8364ae6056185f3396015ae50085b44400e78b7ef15a187f3041584d88036e8c611fa7a1d626a2b7ac513c68e949c6cca565d107cdb565e5fde8fd2eabb8a5ac +DIST mongodb-2.3.3.tgz 2243389 BLAKE2B 2d60a1f2a44d73d31e4f6fe0f2ec9bc8e4df1f2352f0319742af5288a5d0681483c8fcb5f577d66d756071a487158b3b46e677909ebdf624fd115cdc266427bb SHA512 ee83cd310a61920f6d047a6e45ca1ecc7b6ba9c80e24d69e1f6d45d2e3124dfb8a618fce1541868441ac275b6ebbdb274d4a06525f40dd8c05727eb380721a26 diff --git a/dev-php/pecl-mongodb/metadata.xml b/dev-php/pecl-mongodb/metadata.xml new file mode 100644 index 000000000000..dd1f5bb57704 --- /dev/null +++ b/dev-php/pecl-mongodb/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-mongodb/pecl-mongodb-2.3.2.ebuild b/dev-php/pecl-mongodb/pecl-mongodb-2.3.2.ebuild new file mode 100644 index 000000000000..469767b9d71f --- /dev/null +++ b/dev-php/pecl-mongodb/pecl-mongodb-2.3.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="mongodb" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="MongoDB database driver for PHP" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE=" sasl test" + +PHP_DEPEND=" + php_targets_php8-2? ( dev-lang/php:8.2[ssl,zlib] ) + php_targets_php8-3? ( dev-lang/php:8.3[ssl,zlib] ) + php_targets_php8-4? ( dev-lang/php:8.4[ssl,zlib] ) + php_targets_php8-5? ( dev-lang/php:8.5[ssl,zlib] )" +COMMON_DEPEND=" + ${PHP_DEPEND} + dev-libs/openssl:0= + + sasl? ( dev-libs/cyrus-sasl ) +" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-db/mongodb ) +" +RDEPEND="${COMMON_DEPEND}" +BDEPEND=" + ${PHP_DEPEND} + virtual/pkgconfig +" + +# No tests on x86 because tests require dev-db/mongodb which don't support +# x86 anymore (bug #645994) +RESTRICT="x86? ( test ) + !test? ( test )" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-mongodb + --with-mongodb-sasl=$(usex sasl) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local PORT=27017 + mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ + --dbpath="${T}" --logpath="${T}/mongod.log" || die + php-ext-pecl-r3_src_test + kill $(<"${T}/mongod.lock") +} diff --git a/dev-php/pecl-mongodb/pecl-mongodb-2.3.3.ebuild b/dev-php/pecl-mongodb/pecl-mongodb-2.3.3.ebuild new file mode 100644 index 000000000000..469767b9d71f --- /dev/null +++ b/dev-php/pecl-mongodb/pecl-mongodb-2.3.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="mongodb" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="MongoDB database driver for PHP" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE=" sasl test" + +PHP_DEPEND=" + php_targets_php8-2? ( dev-lang/php:8.2[ssl,zlib] ) + php_targets_php8-3? ( dev-lang/php:8.3[ssl,zlib] ) + php_targets_php8-4? ( dev-lang/php:8.4[ssl,zlib] ) + php_targets_php8-5? ( dev-lang/php:8.5[ssl,zlib] )" +COMMON_DEPEND=" + ${PHP_DEPEND} + dev-libs/openssl:0= + + sasl? ( dev-libs/cyrus-sasl ) +" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-db/mongodb ) +" +RDEPEND="${COMMON_DEPEND}" +BDEPEND=" + ${PHP_DEPEND} + virtual/pkgconfig +" + +# No tests on x86 because tests require dev-db/mongodb which don't support +# x86 anymore (bug #645994) +RESTRICT="x86? ( test ) + !test? ( test )" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-mongodb + --with-mongodb-sasl=$(usex sasl) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local PORT=27017 + mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ + --dbpath="${T}" --logpath="${T}/mongod.log" || die + php-ext-pecl-r3_src_test + kill $(<"${T}/mongod.lock") +} diff --git a/dev-php/pecl-parallel/Manifest b/dev-php/pecl-parallel/Manifest new file mode 100644 index 000000000000..e6393fead947 --- /dev/null +++ b/dev-php/pecl-parallel/Manifest @@ -0,0 +1,3 @@ +DIST pecl-parallel-1.2.5.tgz 64275 BLAKE2B 18542490d9dafb00811ef42483270b7e82134e3795a3856069b2cfbf1bed6dcbd5f684286d26878d4772a3d86324725fdb3417143b62affd4ae1fa25aaeebee3 SHA512 82a9bf2a13fb33d4caac6511f4f27e3a907849a9ce767105d81ff7452d58531cd7de016c22ab50cee1e76646f11a1dc27c984b1a25c14ed9c7cc197d6cc64099 +DIST pecl-parallel-1.2.6.tgz 64366 BLAKE2B 395937e64a28dd6cf80d5a4d3d0d97d87586cf2a98c1f27f22cef62a42421a0ef4cebac5dbfb3e97622a5b6374e18e90f26bc53a7a29d30edf7e38d47bb47bb7 SHA512 45fb4450efb61e1ee746827aef82ce6022c11f96cd9967f7aa326f620ca487c97af389ee28f6832ebd8b2a164b59344efde56b549d8d64d7c1e8903d9b0cbac2 +DIST pecl-parallel-1.2.7.tgz 64972 BLAKE2B 7dd11f1e3968b2dd5d52159b00977aee8650e423285df94ea56ca2b307e2c4a94a2765c99326025ecf172c173321b94a40edc6d1077aa5fae21eb0fda5a65e66 SHA512 032a524871b03e2413d3257a224bc578114f47815d9a7027051225f9908d022854fdcd481c224c41ee1e943f5a97e6b266002ce9e419662932cb16e72052cf06 diff --git a/dev-php/pecl-parallel/files/pecl-parallel-1.2.6-php8.3.patch b/dev-php/pecl-parallel/files/pecl-parallel-1.2.6-php8.3.patch new file mode 100644 index 000000000000..7d2bbce9aa55 --- /dev/null +++ b/dev-php/pecl-parallel/files/pecl-parallel-1.2.6-php8.3.patch @@ -0,0 +1,88 @@ +Derived from: https://github.com/krakjoe/parallel/pull/339 +Just removed tests. +From 75d1359e671fbb05c813779a0ad885eabc636633 Mon Sep 17 00:00:00 2001 +From: Florian Engelhardt <flo@dotbox.org> +Date: Wed, 9 Apr 2025 10:14:12 +0200 +Subject: [PATCH] Crash less and allow more cyclomatic refs (#339) + +--- + src/cache.c | 17 +++++++++++- + src/scheduler.c | 9 +++++-- + 8 files changed, 132 insertions(+), 8 deletions(-) + create mode 100644 tests/base/072-bootstrap.php + +diff --git a/src/cache.c b/src/cache.c +index 6c3dee9..afbfb6d 100644 +--- a/src/cache.c ++++ b/src/cache.c +@@ -370,11 +370,12 @@ zend_function* php_parallel_cache_closure(const zend_function *source, zend_func + memcpy(closure, cache, sizeof(zend_op_array)); + } + +- if (closure->op_array.static_variables) { ++ if (source->op_array.static_variables) { + HashTable *statics = + ZEND_MAP_PTR_GET( + source->op_array.static_variables_ptr); + ++ if (statics) { + closure->op_array.static_variables = + php_parallel_copy_hash_ctor(statics, 1); + +@@ -387,8 +388,22 @@ zend_function* php_parallel_cache_closure(const zend_function *source, zend_func + closure->op_array.static_variables_ptr, + &closure->op_array.static_variables); + #endif ++ } + } + ++#if PHP_VERSION_ID >= 80100 ++ if (source->op_array.num_dynamic_func_defs) { ++ uint32_t it = 0; ++ closure->op_array.dynamic_func_defs = php_parallel_cache_copy_mem( ++ source->op_array.dynamic_func_defs, ++ sizeof(zend_op_array*) * source->op_array.num_dynamic_func_defs); ++ while (it < source->op_array.num_dynamic_func_defs) { ++ closure->op_array.dynamic_func_defs[it] = (zend_op_array*) php_parallel_cache_closure((zend_function*) source->op_array.dynamic_func_defs[it], NULL); ++ it++; ++ } ++ } ++#endif ++ + return closure; + } /* }}} */ + +diff --git a/src/scheduler.c b/src/scheduler.c +index a66673b..de3ee11 100644 +--- a/src/scheduler.c ++++ b/src/scheduler.c +@@ -33,6 +33,8 @@ static zend_always_inline int php_parallel_scheduler_list_delete(void *lhs, void + static void php_parallel_schedule_free_function(zend_function *function) { + if (function->op_array.static_variables) { + php_parallel_copy_hash_dtor(function->op_array.static_variables, 1); ++ ZEND_MAP_PTR_SET(function->op_array.static_variables_ptr, NULL); ++ function->op_array.static_variables = NULL; + } + + #if PHP_VERSION_ID >= 80100 +@@ -245,6 +247,8 @@ static void php_parallel_scheduler_clean(zend_function *function) { + + if (!(GC_FLAGS(statics) & IS_ARRAY_IMMUTABLE)) { + zend_array_destroy(statics); ++ ZEND_MAP_PTR_SET(function->op_array.static_variables_ptr, NULL); ++ function->op_array.static_variables = NULL; + } + } + +@@ -254,8 +258,9 @@ static void php_parallel_scheduler_clean(zend_function *function) { + + while (it < function->op_array.num_dynamic_func_defs) { + php_parallel_scheduler_clean( +- (zend_function*) function->op_array.dynamic_func_defs[it]); +- it++; ++ (zend_function*) function->op_array.dynamic_func_defs[it]); ++ pefree(function->op_array.dynamic_func_defs[it],1); ++ it++; + } + } + #endif diff --git a/dev-php/pecl-parallel/files/pecl-parallel-1.2.7-bug933981-crash-due-to-memleak.patch b/dev-php/pecl-parallel/files/pecl-parallel-1.2.7-bug933981-crash-due-to-memleak.patch new file mode 100644 index 000000000000..c08f8fab3889 --- /dev/null +++ b/dev-php/pecl-parallel/files/pecl-parallel-1.2.7-bug933981-crash-due-to-memleak.patch @@ -0,0 +1,58 @@ +https://bugs.gentoo.org/957101 +https://github.com/krakjoe/parallel/issues/345 +https://github.com/krakjoe/parallel/pull/347 + +This PR fixes a memory leak that caused the cache to exhaust when +running closures with nested functions (dynamic function definitions). + +When scheduling closures containing nested functions, +php_parallel_cache_closure() was allocating memory from the cache pool +for the dynamic_func_defs array. This memory was never properly freed, +causing the cache to fill up and eventually trigger a realloc() that +could lead to segfaults in case the OS decided to move the entire +allocation to a different address. + +From d4fa9a8a490dbdd3caac5f9a0ef384838c078a6f Mon Sep 17 00:00:00 2001 +From: Florian Engelhardt <flo@dotbox.org> +Date: Wed, 23 Jul 2025 16:19:48 +0200 +Subject: [PATCH] fix cache overflow + +--- + src/cache.c | 5 ++++- + src/scheduler.c | 5 ++++- + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/cache.c b/src/cache.c +index afbfb6d..ed90cc0 100644 +--- a/src/cache.c ++++ b/src/cache.c +@@ -394,7 +394,10 @@ zend_function* php_parallel_cache_closure(const zend_function *source, zend_func + #if PHP_VERSION_ID >= 80100 + if (source->op_array.num_dynamic_func_defs) { + uint32_t it = 0; +- closure->op_array.dynamic_func_defs = php_parallel_cache_copy_mem( ++ /* Use regular persistent memory for dynamic_func_defs array, not cache pool */ ++ closure->op_array.dynamic_func_defs = pemalloc( ++ sizeof(zend_op_array*) * source->op_array.num_dynamic_func_defs, 1); ++ memcpy(closure->op_array.dynamic_func_defs, + source->op_array.dynamic_func_defs, + sizeof(zend_op_array*) * source->op_array.num_dynamic_func_defs); + while (it < source->op_array.num_dynamic_func_defs) { +diff --git a/src/scheduler.c b/src/scheduler.c +index 1f92bfa..8820e96 100644 +--- a/src/scheduler.c ++++ b/src/scheduler.c +@@ -258,9 +258,12 @@ static void php_parallel_scheduler_clean(zend_function *function) { + while (it < function->op_array.num_dynamic_func_defs) { + php_parallel_scheduler_clean( + (zend_function*) function->op_array.dynamic_func_defs[it]); +- pefree(function->op_array.dynamic_func_defs[it],1); ++ pefree(function->op_array.dynamic_func_defs[it], 1); + it++; + } ++ /* Free the dynamic_func_defs array itself */ ++ pefree(function->op_array.dynamic_func_defs, 1); ++ function->op_array.dynamic_func_defs = NULL; + } + #endif + } diff --git a/dev-php/pecl-parallel/metadata.xml b/dev-php/pecl-parallel/metadata.xml new file mode 100644 index 000000000000..230e8d3f95de --- /dev/null +++ b/dev-php/pecl-parallel/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jkroon@gentoo.org</email> + <name>Jaco Kroon</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-parallel/pecl-parallel-1.2.5.ebuild b/dev-php/pecl-parallel/pecl-parallel-1.2.5.ebuild new file mode 100644 index 000000000000..5e93873b4474 --- /dev/null +++ b/dev-php/pecl-parallel/pecl-parallel-1.2.5.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_INI="yes" +PHP_EXT_NAME="parallel" +PHP_EXT_NEEDED_USE="threads" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A succint parallel concurrency API for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="amd64 x86" diff --git a/dev-php/pecl-parallel/pecl-parallel-1.2.6.ebuild b/dev-php/pecl-parallel/pecl-parallel-1.2.6.ebuild new file mode 100644 index 000000000000..ddfb70dc799f --- /dev/null +++ b/dev-php/pecl-parallel/pecl-parallel-1.2.6.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_INI="yes" +PHP_EXT_NAME="parallel" +PHP_EXT_NEEDED_USE="threads" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A succint parallel concurrency API for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +PATCHES=( "${FILESDIR}/pecl-parallel-1.2.6-php8.3.patch" ) + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/pecl-parallel/pecl-parallel-1.2.7-r1.ebuild b/dev-php/pecl-parallel/pecl-parallel-1.2.7-r1.ebuild new file mode 100644 index 000000000000..7e57777c60b0 --- /dev/null +++ b/dev-php/pecl-parallel/pecl-parallel-1.2.7-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_INI="yes" +PHP_EXT_NAME="parallel" +PHP_EXT_NEEDED_USE="threads" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A succint parallel concurrency API for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +PATCHES=( + "${FILESDIR}/pecl-parallel-1.2.7-bug933981-crash-due-to-memleak.patch" +) + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="amd64 x86" diff --git a/dev-php/pecl-parallel/pecl-parallel-1.2.7.ebuild b/dev-php/pecl-parallel/pecl-parallel-1.2.7.ebuild new file mode 100644 index 000000000000..dff5993f4709 --- /dev/null +++ b/dev-php/pecl-parallel/pecl-parallel-1.2.7.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_INI="yes" +PHP_EXT_NAME="parallel" +PHP_EXT_NEEDED_USE="threads" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A succint parallel concurrency API for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/pecl-radius/Manifest b/dev-php/pecl-radius/Manifest new file mode 100644 index 000000000000..fa8821785645 --- /dev/null +++ b/dev-php/pecl-radius/Manifest @@ -0,0 +1 @@ +DIST radius-1.4.0b1.tgz 50953 BLAKE2B 1f6f2a4c4cfa7600a37b8bc30e4d263b899a687becac83fd01bac2466de08cad4233984ca694dc73eaf20b64ef94e1e6a6ca7f843474c8f0c9de2c39df9d9705 SHA512 db6ebe928673db1ff4c565338010ef5acf6029844994eb240f2e8eaeda4aff734ed300a7ddf16c09e245671aad377283f99cf1c485569b3bad0c7c7b24a19664 diff --git a/dev-php/pecl-radius/files/1.4.0-php8.patch b/dev-php/pecl-radius/files/1.4.0-php8.patch new file mode 100644 index 000000000000..08ff55866beb --- /dev/null +++ b/dev-php/pecl-radius/files/1.4.0-php8.patch @@ -0,0 +1,289 @@ +From 6cfaa16a21780f09f76a7703da255e07910b8b4d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bruno=20Pr=C3=A9mont?= <bruno.premont@restena.lu> +Date: Mon, 25 Jan 2021 19:37:14 +0100 +Subject: [PATCH] Fix compatibility with PHP-8 + +With PHP-7.x missing arginfo has been triggering warnings: + NOTICE: PHP message: PHP Warning: Missing arginfo for radius_auth_open() in Unknown on line 0 +With PHP-8 this has become mandatory. +--- + radius.c | 216 +++++++++++++++++++++++++++++++++++++++++++++++-------- + 1 file changed, 188 insertions(+), 28 deletions(-) + +diff --git a/radius.c b/radius.c +index 89ee0d6..4bfb429 100644 +--- a/radius.c ++++ b/radius.c +@@ -61,39 +61,199 @@ ZEND_DECLARE_MODULE_GLOBALS(radius) + /* True global resources - no need for thread safety here */ + static int le_radius; + ++/* {{{ arginfo */ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_auth_open, 0, 0, 0) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_acct_open, 0, 0, 0) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_close, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_strerror, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_config, 0, 0, 2) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, file) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_add_server, 0, 0, 6) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, hostname) ++ ZEND_ARG_INFO(0, port) ++ ZEND_ARG_INFO(0, secret) ++ ZEND_ARG_INFO(0, timeout) ++ ZEND_ARG_INFO(0, max_tries) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_create_request, 0, 0, 2) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, type) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_string, 0, 0, 3) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_int, 0, 0, 3) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_attr, 0, 0, 3) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_addr, 0, 0, 3) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, addr) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_vendor_string, 0, 0, 4) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, vendor) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_vendor_int, 0, 0, 4) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, vendor) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_vendor_attr, 0, 0, 4) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, vendor) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, value) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_put_vendor_addr, 0, 0, 4) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, vendor) ++ ZEND_ARG_INFO(0, type) ++ ZEND_ARG_INFO(0, addr) ++ ZEND_ARG_INFO(0, options) ++ ZEND_ARG_INFO(0, tag) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_send_request, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_get_attr, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_get_tagged_attr_data, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_get_tagged_attr_tag, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_get_vendor_attr, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_cvt_addr, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_cvt_int, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_cvt_string, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_salt_encrypt_attr, 0, 0, 2) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_request_authenticator, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_server_secret, 0, 0, 1) ++ ZEND_ARG_INFO(0, radius_handle) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_demangle, 0, 0, 2) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, mangled) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_radius_demangle_mppe_key, 0, 0, 2) ++ ZEND_ARG_INFO(0, radius_handle) ++ ZEND_ARG_INFO(0, mangled) ++ZEND_END_ARG_INFO() ++ ++/* }}} */ ++ ++ + /* {{{ radius_functions[] + * + * Every user visible function must have an entry in radius_functions[]. + */ + zend_function_entry radius_functions[] = { +- PHP_FE(radius_auth_open, NULL) +- PHP_FE(radius_acct_open, NULL) +- PHP_FE(radius_close, NULL) +- PHP_FE(radius_strerror, NULL) +- PHP_FE(radius_config, NULL) +- PHP_FE(radius_add_server, NULL) +- PHP_FE(radius_create_request, NULL) +- PHP_FE(radius_put_string, NULL) +- PHP_FE(radius_put_int, NULL) +- PHP_FE(radius_put_attr, NULL) +- PHP_FE(radius_put_addr, NULL) +- PHP_FE(radius_put_vendor_string, NULL) +- PHP_FE(radius_put_vendor_int, NULL) +- PHP_FE(radius_put_vendor_attr, NULL) +- PHP_FE(radius_put_vendor_addr, NULL) +- PHP_FE(radius_send_request, NULL) +- PHP_FE(radius_get_attr, NULL) +- PHP_FE(radius_get_tagged_attr_data, NULL) +- PHP_FE(radius_get_tagged_attr_tag, NULL) +- PHP_FE(radius_get_vendor_attr, NULL) +- PHP_FE(radius_cvt_addr, NULL) +- PHP_FE(radius_cvt_int, NULL) +- PHP_FE(radius_cvt_string, NULL) +- PHP_FE(radius_salt_encrypt_attr, NULL) +- PHP_FE(radius_request_authenticator, NULL) +- PHP_FE(radius_server_secret, NULL) +- PHP_FE(radius_demangle, NULL) +- PHP_FE(radius_demangle_mppe_key, NULL) ++ PHP_FE(radius_auth_open, arginfo_radius_auth_open) ++ PHP_FE(radius_acct_open, arginfo_radius_acct_open) ++ PHP_FE(radius_close, arginfo_radius_close) ++ PHP_FE(radius_strerror, arginfo_radius_strerror) ++ PHP_FE(radius_config, arginfo_radius_config) ++ PHP_FE(radius_add_server, arginfo_radius_add_server) ++ PHP_FE(radius_create_request, arginfo_radius_create_request) ++ PHP_FE(radius_put_string, arginfo_radius_put_string) ++ PHP_FE(radius_put_int, arginfo_radius_put_int) ++ PHP_FE(radius_put_attr, arginfo_radius_put_attr) ++ PHP_FE(radius_put_addr, arginfo_radius_put_addr) ++ PHP_FE(radius_put_vendor_string, arginfo_radius_put_vendor_string) ++ PHP_FE(radius_put_vendor_int, arginfo_radius_put_vendor_int) ++ PHP_FE(radius_put_vendor_attr, arginfo_radius_put_vendor_attr) ++ PHP_FE(radius_put_vendor_addr, arginfo_radius_put_vendor_addr) ++ PHP_FE(radius_send_request, arginfo_radius_get_attr) ++ PHP_FE(radius_get_attr, arginfo_radius_get_attr) ++ PHP_FE(radius_get_tagged_attr_data, arginfo_radius_get_tagged_attr_data) ++ PHP_FE(radius_get_tagged_attr_tag, arginfo_radius_get_tagged_attr_tag) ++ PHP_FE(radius_get_vendor_attr, arginfo_radius_get_vendor_attr) ++ PHP_FE(radius_cvt_addr, arginfo_radius_cvt_addr) ++ PHP_FE(radius_cvt_int, arginfo_radius_cvt_int) ++ PHP_FE(radius_cvt_string, arginfo_radius_cvt_string) ++ PHP_FE(radius_salt_encrypt_attr, arginfo_radius_salt_encrypt_attr) ++ PHP_FE(radius_request_authenticator, arginfo_radius_request_authenticator) ++ PHP_FE(radius_server_secret, arginfo_radius_server_secret) ++ PHP_FE(radius_demangle, arginfo_radius_demangle) ++ PHP_FE(radius_demangle_mppe_key, arginfo_radius_demangle_mppe_key) + {NULL, NULL, NULL} /* Must be the last line in radius_functions[] */ + }; + /* }}} */ +--- a/php_radius.h 2016-02-15 10:11:50.000000000 -0500 ++++ b/php_radius.h 2022-12-13 10:24:33.505295274 -0500 +@@ -96,6 +96,14 @@ + #define RADIUS_OPTION_TAGGED RAD_OPTION_TAG + #define RADIUS_OPTION_SALT RAD_OPTION_SALT + ++#ifndef TSRMLS_D ++#define TSRMLS_D void ++#define TSRMLS_DC ++#define TSRMLS_C ++#define TSRMLS_CC ++#define TSRMLS_FETCH() ++#endif ++ + #endif /* PHP_RADIUS_H */ + + +--- a/radlib_compat.h 2016-02-15 10:11:50.000000000 -0500 ++++ b/radlib_compat.h 2022-12-13 10:24:33.505295274 -0500 +@@ -83,6 +83,14 @@ + } while (0) + #endif + ++#ifndef TSRMLS_D ++#define TSRMLS_D void ++#define TSRMLS_DC ++#define TSRMLS_C ++#define TSRMLS_CC ++#define TSRMLS_FETCH() ++#endif ++ + #endif + + +--- a/tests/server/fake_server.php 2016-02-15 10:11:50.000000000 -0500 ++++ b/tests/server/fake_server.php 2022-12-13 10:46:50.933484601 -0500 +@@ -321,7 +321,7 @@ + * + * @return boolean + */ +- function skip() { ++ static function skip() { + return !(function_exists('socket_create') && function_exists('pcntl_fork') && function_exists('radius_acct_open')); + } + diff --git a/dev-php/pecl-radius/metadata.xml b/dev-php/pecl-radius/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-radius/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-radius/pecl-radius-1.4.0_beta1-r4.ebuild b/dev-php/pecl-radius/pecl-radius-1.4.0_beta1-r4.ebuild new file mode 100644 index 000000000000..187662b880a8 --- /dev/null +++ b/dev-php/pecl-radius/pecl-radius-1.4.0_beta1-r4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="radius" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php8-2 php8-3" +PHP_EXT_PECL_FILENAME="${PN/pecl-/}-${PV/_beta/b}.tgz" +PHP_EXT_S="${WORKDIR}/${PHP_EXT_PECL_FILENAME%.tgz}" +PHP_EXT_NEEDED_USE="pcntl(-),sockets(-)" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Provides support for RADIUS authentication (RFC 2865) and accounting (RFC 2866)" +HOMEPAGE="https://pecl.php.net/package/radius" +S="${PHP_EXT_S}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +PATCHES=( "${FILESDIR}/1.4.0-php8.patch" ) + +src_unpack() { + default + # Non-portable test + rm "${S}/tests/radius_close.phpt" || die +} diff --git a/dev-php/pecl-raphf/Manifest b/dev-php/pecl-raphf/Manifest new file mode 100644 index 000000000000..fe67b291dc82 --- /dev/null +++ b/dev-php/pecl-raphf/Manifest @@ -0,0 +1 @@ +DIST raphf-2.0.1.tgz 16003 BLAKE2B 4eaf9f89e6572e17e0df347543dc99221f68d45103444f89e59862b9078574722278fbb1e2841b0a5952ffd6dfc4ea0fa81298f2014ffbe8a6b51ed6887f6692 SHA512 0a609fc21a62880963e7afb75297eb75a2598aab2c816cb61e84d665b0453e4952aa9bf25fe2c818cc94492a4b94aed965053c67899fdb984d88661364fffb1e diff --git a/dev-php/pecl-raphf/metadata.xml b/dev-php/pecl-raphf/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-raphf/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-raphf/pecl-raphf-2.0.1-r3.ebuild b/dev-php/pecl-raphf/pecl-raphf-2.0.1-r3.ebuild new file mode 100644 index 000000000000..1a57e6700f11 --- /dev/null +++ b/dev-php/pecl-raphf/pecl-raphf-2.0.1-r3.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="raphf" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_EXT_ECONF_ARGS="" +PHP_INI_NAME="30-${PHP_EXT_NAME}" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A reusable, persistent handle and resource factory API" +LICENSE="BSD-2" +SLOT="7" +KEYWORDS="amd64 x86" diff --git a/dev-php/pecl-redis/Manifest b/dev-php/pecl-redis/Manifest new file mode 100644 index 000000000000..45b242706a21 --- /dev/null +++ b/dev-php/pecl-redis/Manifest @@ -0,0 +1,2 @@ +DIST redis-6.1.0.tgz 373740 BLAKE2B 9ad24fb1968a8873bcc38a53fa1f3f15b44b2423785c3c8d50c4ea4bdb7a5ddbb3148a579b8bf8676307c48adb319ffe78854e580ff034e21c0584f3501ea59f SHA512 731697b429f8070ae33f02b6a302904c6e8e79c8d6fd3d07b9fcdb50f55b52448292a936ca4050406d14b6db11669269a315c798ce52a80e4857427a65b01dff +DIST redis-6.3.0.tgz 399284 BLAKE2B f848fb2328de3ae396ac4ce6eacdd03be1c0d74164d9343c87b184d6f01a5aed5b264b10d63ed838073bc356ed8ba5412117cb9616e7dfd078102068f2b38d59 SHA512 1c6d43bf1a5766c8127ba16ace0a605088a5bd68661e4b30475a93e560ba2640d0acd4e41af20e9fcf8fbf8249bdb687eec86847a5110aeaca92b0f320eab2e2 diff --git a/dev-php/pecl-redis/metadata.xml b/dev-php/pecl-redis/metadata.xml new file mode 100644 index 000000000000..aa5ee9ed0605 --- /dev/null +++ b/dev-php/pecl-redis/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <use> + <flag name="igbinary">Enables igbinary serialisation support</flag> + <flag name="json">Enables json serializer support</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-redis/pecl-redis-6.1.0.ebuild b/dev-php/pecl-redis/pecl-redis-6.1.0.ebuild new file mode 100644 index 000000000000..0a58a9f1494f --- /dev/null +++ b/dev-php/pecl-redis/pecl-redis-6.1.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="redis" +USE_PHP="php8-2 php8-3" +PHP_EXT_NEEDED_USE="json(+)?,session(-)?" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" +PHP_EXT_S="${WORKDIR}/${MY_P}" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension for interfacing with Redis" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64" +IUSE="igbinary +json lz4 +session zstd" + +DEPEND=" + igbinary? ( >=dev-php/igbinary-3.0.1-r1[php_targets_php8-2(-)?,php_targets_php8-3(-)?] ) + lz4? ( app-arch/lz4:= ) + zstd? ( app-arch/zstd:= ) +" +RDEPEND="${DEPEND} + !dev-php/pecl-redis:7" + +# The test suite requires network access. +RESTRICT=test + +S="${WORKDIR}/${MY_P}" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-redis + --disable-redis-lzf + --disable-redis-msgpack + $(use_enable igbinary redis-igbinary) + $(use_enable json redis-json) + $(use_enable lz4 redis-lz4) + $(use_with lz4 liblz4) + $(use_enable session redis-session) + $(use_enable zstd redis-zstd) + $(use_with zstd libzstd) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + # Run tests for Redis class + ${PHPCLI} -d extension=modules/redis.so \ + tests/TestRedis.php \ + --class Redis \ + --host ${PECL_REDIS_HOST} || die 'test suite failed' + done +} diff --git a/dev-php/pecl-redis/pecl-redis-6.3.0.ebuild b/dev-php/pecl-redis/pecl-redis-6.3.0.ebuild new file mode 100644 index 000000000000..ceb43618a437 --- /dev/null +++ b/dev-php/pecl-redis/pecl-redis-6.3.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="redis" +USE_PHP="php8-2 php8-3 php8-4 php8-5" +PHP_EXT_NEEDED_USE="json(+)?,session(-)?" +MY_P="${PN/pecl-/}-${PV/_rc/RC}" +PHP_EXT_PECL_FILENAME="${MY_P}.tgz" +PHP_EXT_S="${WORKDIR}/${MY_P}" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension for interfacing with Redis" +S="${WORKDIR}/${MY_P}" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv" +IUSE="igbinary +json lz4 +session zstd" + +DEPEND=" + igbinary? ( >=dev-php/igbinary-3.0.1-r1[php_targets_php8-2(-)?,php_targets_php8-3(-)?,php_targets_php8-4(-)?,php_targets_php8-5(-)?] ) + lz4? ( app-arch/lz4:= ) + zstd? ( app-arch/zstd:= ) +" +RDEPEND="${DEPEND} + !dev-php/pecl-redis:7" + +# The test suite requires network access. +RESTRICT=test + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-redis + --disable-redis-lzf + --disable-redis-msgpack + $(use_enable igbinary redis-igbinary) + $(use_enable json redis-json) + $(use_enable lz4 redis-lz4) + $(use_with lz4 liblz4) + $(use_enable session redis-session) + $(use_enable zstd redis-zstd) + $(use_with zstd libzstd) + ) + php-ext-source-r3_src_configure +} + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + # Run tests for Redis class + ${PHPCLI} -d extension=modules/redis.so \ + tests/TestRedis.php \ + --class Redis \ + --host ${PECL_REDIS_HOST} || die 'test suite failed' + done +} diff --git a/dev-php/pecl-rrd/Manifest b/dev-php/pecl-rrd/Manifest new file mode 100644 index 000000000000..23eeb6d19ab1 --- /dev/null +++ b/dev-php/pecl-rrd/Manifest @@ -0,0 +1 @@ +DIST rrd-2.0.3.tgz 19178 BLAKE2B 473fe53e858665372133db9f13d9aeac330da2ca57a8fb59f0eb280f1bdd40d2f0b28179a9b150acdf15d7bbc6fb5416a82dcd670c67ad39050cbd1c5795b62e SHA512 28679ccead54806d1e92accc6f5ebab582a41db802f95797ddb43e3e15690889be3437f22e2a14939d217422ac2700ef90ae0a9b36244ddead3856343b3e09b4 diff --git a/dev-php/pecl-rrd/files/2.0.1/0001-arginfo.patch b/dev-php/pecl-rrd/files/2.0.1/0001-arginfo.patch new file mode 100644 index 000000000000..28496fe19c96 --- /dev/null +++ b/dev-php/pecl-rrd/files/2.0.1/0001-arginfo.patch @@ -0,0 +1,81 @@ +--- a/rrd.c 2020/09/23 07:41:40 350617 ++++ b/rrd.c 2020/09/23 09:09:08 350618 +@@ -552,6 +552,9 @@ + ZEND_ARG_INFO(0, file) + ZEND_ARG_INFO(0, options) + ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO(arginfo_rrd_void, 0) ++ZEND_END_ARG_INFO() + /* }}} */ + + /* {{{ */ +@@ -559,7 +562,7 @@ + PHP_FE(rrd_update, arginfo_rrd_update) + PHP_FE(rrd_create, arginfo_rrd_create) + PHP_FE(rrd_graph, arginfo_rrd_graph) +- PHP_FE(rrd_error, NULL) ++ PHP_FE(rrd_error, arginfo_rrd_void) + PHP_FE(rrd_fetch, arginfo_rrd_fetch) + PHP_FE(rrd_first, arginfo_rrd_first) + PHP_FE(rrd_info, arginfo_rrd_info) +@@ -569,9 +572,9 @@ + PHP_FE(rrd_tune, arginfo_rrd_tune) + PHP_FE(rrd_xport, arginfo_rrd_xport) + #ifdef HAVE_RRDC_DISCONNECT +- PHP_FE(rrdc_disconnect, NULL) ++ PHP_FE(rrdc_disconnect, arginfo_rrd_void) + #endif +- PHP_FE(rrd_version, NULL) ++ PHP_FE(rrd_version, arginfo_rrd_void) + PHP_FE_END + }; + /* }}} */ +--- a/rrd_create.c 2020/09/23 07:41:40 350617 ++++ b/rrd_create.c 2020/09/23 09:09:08 350618 +@@ -323,10 +323,13 @@ + ZEND_ARG_INFO(0, description) + ZEND_END_ARG_INFO() + ++ZEND_BEGIN_ARG_INFO_EX(arginfo_rrdcreator_void, 0, 0, 0) ++ZEND_END_ARG_INFO() ++ + /* class method table */ + static zend_function_entry rrd_create_methods[] = { + PHP_ME(RRDCreator, __construct, arginfo_rrdcreator_construct, ZEND_ACC_PUBLIC) +- PHP_ME(RRDCreator, save, NULL, ZEND_ACC_PUBLIC) ++ PHP_ME(RRDCreator, save, arginfo_rrdcreator_void, ZEND_ACC_PUBLIC) + PHP_ME(RRDCreator, addDataSource, arginfo_rrdcreator_description, ZEND_ACC_PUBLIC) + PHP_ME(RRDCreator, addArchive, arginfo_rrdcreator_description, ZEND_ACC_PUBLIC) + PHP_FE_END +--- a/rrd_graph.c 2020/09/23 07:41:40 350617 ++++ b/rrd_graph.c 2020/09/23 09:09:08 350618 +@@ -140,6 +140,7 @@ + array_init(&zv_argv); + + ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL(obj->zv_arr_options), num_key, zs_key, zv_option_val) { ++ (void)num_key; /* to avoid -Wunused-but-set-variable */ + smart_string option = {0}; /* one argument option */ + + /* option with string key means long option, hence they are used as +@@ -356,6 +357,9 @@ + /* }}} */ + + /* arguments */ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_rrd_void, 0, 0, 0) ++ZEND_END_ARG_INFO() ++ + ZEND_BEGIN_ARG_INFO_EX(arginfo_rrd_path, 0, 0, 1) + ZEND_ARG_INFO(0, path) + ZEND_END_ARG_INFO() +@@ -367,8 +371,8 @@ + /* class method table */ + static zend_function_entry rrd_graph_methods[] = { + PHP_ME(RRDGraph, __construct, arginfo_rrd_path, ZEND_ACC_PUBLIC) +- PHP_ME(RRDGraph, save, NULL, ZEND_ACC_PUBLIC) +- PHP_ME(RRDGraph, saveVerbose, NULL, ZEND_ACC_PUBLIC) ++ PHP_ME(RRDGraph, save, arginfo_rrd_void, ZEND_ACC_PUBLIC) ++ PHP_ME(RRDGraph, saveVerbose, arginfo_rrd_void, ZEND_ACC_PUBLIC) + PHP_ME(RRDGraph, setOptions, arginfo_rrd_options, ZEND_ACC_PUBLIC) + PHP_FE_END + }; diff --git a/dev-php/pecl-rrd/files/2.0.1/0002-relax-float-test-result.patch b/dev-php/pecl-rrd/files/2.0.1/0002-relax-float-test-result.patch new file mode 100644 index 000000000000..b4a692fc3f5f --- /dev/null +++ b/dev-php/pecl-rrd/files/2.0.1/0002-relax-float-test-result.patch @@ -0,0 +1,132 @@ +--- a/tests/rrd_010.phpt 2020/09/23 07:41:40 350617 ++++ b/tests/rrd_010.phpt 2020/09/23 09:09:08 350618 +@@ -40,11 +40,11 @@ + [920805900]=> + float(0) + [920806200]=> +- float(0.033333333333333) ++ float(0.03333333333%s) + [920806500]=> +- float(0.033333333333333) ++ float(0.03333333333%s) + [920806800]=> +- float(0.033333333333333) ++ float(0.03333333333%s) + [920807100]=> + float(0.02) + [920807400]=> +@@ -52,20 +52,20 @@ + [920807700]=> + float(0.02) + [920808000]=> +- float(0.013333333333333) ++ float(0.01333333333%s) + [920808300]=> +- float(0.016666666666667) ++ float(0.01666666666%s) + } + ["speed2"]=> + array(13) { + [920804700]=> + float(NAN) + [920805000]=> +- float(0.056666666666667) ++ float(0.05666666666%s) + [920805300]=> + float(0.02) + [920805600]=> +- float(0.0033333333333333) ++ float(0.00333333333%s) + [920805900]=> + float(0) + [920806200]=> +@@ -73,7 +73,7 @@ + [920806500]=> + float(0) + [920806800]=> +- float(0.066666666666667) ++ float(0.06666666666%s) + [920807100]=> + float(0.02) + [920807400]=> +@@ -81,9 +81,9 @@ + [920807700]=> + float(0.02) + [920808000]=> +- float(0.013333333333333) ++ float(0.01333333333%s) + [920808300]=> +- float(0.016666666666667) ++ float(0.01666666666%s) + } + } +-} +\ No newline at end of file ++} +--- a/tests/rrd_012.phpt 2020/09/23 07:41:40 350617 ++++ b/tests/rrd_012.phpt 2020/09/23 09:09:08 350618 +@@ -69,7 +69,7 @@ + ["rra[1].xff"]=> + float(0.5) + ["rra[1].cdp_prep[0].value"]=> +- float(0.026666666666667) ++ float(0.02666666666%s) + ["rra[1].cdp_prep[0].unknown_datapoints"]=> + int(0) + } +--- a/tests/rrd_017.phpt 2020/09/23 07:41:40 350617 ++++ b/tests/rrd_017.phpt 2020/09/23 09:09:08 350618 +@@ -47,11 +47,11 @@ + [920805900]=> + float(0) + [920806200]=> +- float(0.033333333333333) ++ float(0.0333333333%s) + [920806500]=> +- float(0.033333333333333) ++ float(0.0333333333%s) + [920806800]=> +- float(0.033333333333333) ++ float(0.0333333333%s) + [920807100]=> + float(0.02) + [920807400]=> +@@ -59,9 +59,9 @@ + [920807700]=> + float(0.02) + [920808000]=> +- float(0.013333333333333) ++ float(0.0133333333%s) + [920808300]=> +- float(0.016666666666667) ++ float(0.0166666666%s) + } + } + [1]=> +@@ -81,11 +81,11 @@ + [920805900]=> + float(0) + [920806200]=> +- float(33.333333333333) ++ float(33.333333333%s) + [920806500]=> +- float(33.333333333333) ++ float(33.333333333%s) + [920806800]=> +- float(33.333333333333) ++ float(33.333333333%s) + [920807100]=> + float(20) + [920807400]=> +@@ -93,9 +93,9 @@ + [920807700]=> + float(20) + [920808000]=> +- float(13.333333333333) ++ float(13.333333333%s) + [920808300]=> +- float(16.666666666667) ++ float(16.666666666%s) + } + } + } diff --git a/dev-php/pecl-rrd/metadata.xml b/dev-php/pecl-rrd/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-rrd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-rrd/pecl-rrd-2.0.3.ebuild b/dev-php/pecl-rrd/pecl-rrd-2.0.3.ebuild new file mode 100644 index 000000000000..19ef5c74540e --- /dev/null +++ b/dev-php/pecl-rrd/pecl-rrd-2.0.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +USE_PHP="php8-2" + +inherit php-ext-pecl-r3 + +DESCRIPTION="RRDtool bindings for PHP" +LICENSE="BSD" +SLOT="7" +KEYWORDS="~amd64 ~x86" + +DEPEND="net-analyzer/rrdtool[graph(-)]" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +#PATCHES=( "${FILESDIR}/${PV}" ) +PHP_EXT_ECONF_ARGS=() + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + # Prepare test data + emake -C tests/data all + NO_INTERACTION="yes" emake test + done +} diff --git a/dev-php/pecl-ssh2/Manifest b/dev-php/pecl-ssh2/Manifest new file mode 100644 index 000000000000..3b9751e825bb --- /dev/null +++ b/dev-php/pecl-ssh2/Manifest @@ -0,0 +1 @@ +DIST ssh2-1.4.1.tgz 34265 BLAKE2B 5cd257de7f3b2408f696d4acc463b981ca691f1a10a175e028beb77bf044640e1bfa2c85b1731096af398ae9920bf05f73e383db6c3f9e0c30e38a008ce70278 SHA512 9ff90b95b8fabfa2a75cf8a62a55e93df19d3e952f79234fc1d7ef3a030089f8b3703412bf6e22d85c7bf5825cf8493a4d97ad51a1600185d3d16f81c72e155c diff --git a/dev-php/pecl-ssh2/metadata.xml b/dev-php/pecl-ssh2/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-ssh2/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-ssh2/pecl-ssh2-1.4.1-r1.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-1.4.1-r1.ebuild new file mode 100644 index 000000000000..edea606f3146 --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-1.4.1-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="ssh2" + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP bindings for the libssh2 library" +HOMEPAGE="https://pecl.php.net/package/ssh2" +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="amd64 x86" +# Upstream notes say there are errors with gcrypt backend +DEPEND=">=net-libs/libssh2-1.2[-gcrypt]" +RDEPEND="${DEPEND}" diff --git a/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild new file mode 100644 index 000000000000..34e4d36d434d --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="ssh2" + +USE_PHP="php8-2 php8-3" +EGIT_REPO_URI="https://github.com/php/pecl-networking-ssh2.git" + +inherit php-ext-source-r3 git-r3 + +DESCRIPTION="PHP bindings for the libssh2 library" +HOMEPAGE="https://pecl.php.net/package/ssh2" +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="" +# Upstream notes say there are errors with gcrypt backend +DEPEND=">=net-libs/libssh2-1.2[-gcrypt]" +RDEPEND="${DEPEND}" diff --git a/dev-php/pecl-stomp/Manifest b/dev-php/pecl-stomp/Manifest new file mode 100644 index 000000000000..f600cd840773 --- /dev/null +++ b/dev-php/pecl-stomp/Manifest @@ -0,0 +1 @@ +DIST stomp-2.0.3.tgz 23518 BLAKE2B f0253d0e6d1bb51d95007ce2580cb4e5a271547b73705d1ab5be36975cd58068e5fceea64b1451e438fb17601c1b1f513f287b189e3d2922747f735a48e582ef SHA512 e34a63d776cb79da7676d200e4aa2b4a9d4272014fff30eb4c07bc27417d8dc4e7738fb8d62e283cdaac0a411a7bd6e06ef5b06171caa629a404601d14da71d6 diff --git a/dev-php/pecl-stomp/metadata.xml b/dev-php/pecl-stomp/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-stomp/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-stomp/pecl-stomp-2.0.3-r2.ebuild b/dev-php/pecl-stomp/pecl-stomp-2.0.3-r2.ebuild new file mode 100644 index 000000000000..86c4727fdcd0 --- /dev/null +++ b/dev-php/pecl-stomp/pecl-stomp-2.0.3-r2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3" +PHP_EXT_NAME="stomp" +PHP_EXT_NEEDED_USE="ssl(-)?" +DOCS=( CREDITS doc/classes.php doc/functions.php ) + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension to communicate with Stomp message brokers" +HOMEPAGE="https://pecl.php.net/package/stomp" +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="~amd64 ~x86" +IUSE="examples ssl test" +RESTRICT="!test? ( test )" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-stomp + --with-openssl-dir=$(usex ssl yes no) + ) + php-ext-source-r3_src_configure +} diff --git a/dev-php/pecl-uploadprogress/Manifest b/dev-php/pecl-uploadprogress/Manifest new file mode 100644 index 000000000000..b6abb05fe048 --- /dev/null +++ b/dev-php/pecl-uploadprogress/Manifest @@ -0,0 +1 @@ +DIST uploadprogress-2.0.2.tgz 19969 BLAKE2B 148cac83b00eb6b4f23861a04829280346957cdfc5bdbe94d687d0efb5da97b5f48162c59b07e0830a67350c7a2aa9a3085a4575f07b32016b01845301f04843 SHA512 b9ee5a09c3de78d58abd34da2d25d7b0cad38416309a9a69192f07e0c3fe2259de261bb3dee571e64e042753f861738ebcd67fa7fafeb595ec32ed3034c773cd diff --git a/dev-php/pecl-uploadprogress/files/php-debug-testfix.patch b/dev-php/pecl-uploadprogress/files/php-debug-testfix.patch new file mode 100644 index 000000000000..febc989ab79b --- /dev/null +++ b/dev-php/pecl-uploadprogress/files/php-debug-testfix.patch @@ -0,0 +1,74 @@ +From 57f3c17c684a4e5607a322a24be306eb98d340ac Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Mon, 22 May 2023 10:18:29 -0400 +Subject: [PATCH 1/1] tests: skip tests that fail with --enable-debug. + +With PHP debugging enabled, a few tests fail. The root cause of this +is that uploadprogress_get_contents() can return FALSE to indicate +that an error has occurred, but its declared type is string. It +would probably be better if the function raised an error rather +than abusing the return value, but that's a decision upstream +would have to agree too (see: Github issue 17). For now we just +skip the tests if PHP_DEBUG is defined. +--- + tests/uploadprogress_get_contents_error001.phpt | 2 ++ + tests/uploadprogress_get_contents_error003.phpt | 2 ++ + tests/uploadprogress_get_contents_variation002.phpt | 2 ++ + tests/uploadprogress_get_contents_variation006.phpt | 2 ++ + 4 files changed, 8 insertions(+) + +diff --git a/tests/uploadprogress_get_contents_error001.phpt b/tests/uploadprogress_get_contents_error001.phpt +index 63f4f5d..c3e10d9 100644 +--- a/tests/uploadprogress_get_contents_error001.phpt ++++ b/tests/uploadprogress_get_contents_error001.phpt +@@ -5,6 +5,8 @@ uploadprogress_get_contents - Warns when function is disabled + <?php + if (!extension_loaded('uploadprogress')) exit('skip extension not loaded'); + ++if (PHP_DEBUG) exit('skip test throws a fatal error with --enable-debug'); ++ + --INI-- + uploadprogress.get_contents = Off + +diff --git a/tests/uploadprogress_get_contents_error003.phpt b/tests/uploadprogress_get_contents_error003.phpt +index 1ea19b8..65d94c1 100644 +--- a/tests/uploadprogress_get_contents_error003.phpt ++++ b/tests/uploadprogress_get_contents_error003.phpt +@@ -5,6 +5,8 @@ uploadprogress_get_contents - Warns when maxlength is less than zero + <?php + if (!extension_loaded('uploadprogress')) exit('skip extension not loaded'); + ++if (PHP_DEBUG) exit('skip test throws a fatal error with --enable-debug'); ++ + --INI-- + uploadprogress.get_contents = On + +diff --git a/tests/uploadprogress_get_contents_variation002.phpt b/tests/uploadprogress_get_contents_variation002.phpt +index b4bf458..67b1b89 100644 +--- a/tests/uploadprogress_get_contents_variation002.phpt ++++ b/tests/uploadprogress_get_contents_variation002.phpt +@@ -5,6 +5,8 @@ uploadprogress_get_contents - File contents not found + <?php + if (!extension_loaded('uploadprogress')) exit('skip extension not loaded'); + ++if (PHP_DEBUG) exit('skip test throws a fatal error with --enable-debug'); ++ + --INI-- + uploadprogress.get_contents = On + +diff --git a/tests/uploadprogress_get_contents_variation006.phpt b/tests/uploadprogress_get_contents_variation006.phpt +index e19f8d5..ec70c78 100644 +--- a/tests/uploadprogress_get_contents_variation006.phpt ++++ b/tests/uploadprogress_get_contents_variation006.phpt +@@ -5,6 +5,8 @@ uploadprogress_get_contents - When contents file cannot be read + <?php + if (!extension_loaded('uploadprogress')) exit('skip extension not loaded'); + ++if (PHP_DEBUG) exit('skip test throws a fatal error with --enable-debug'); ++ + --INI-- + uploadprogress.get_contents = On + +-- +2.39.3 + diff --git a/dev-php/pecl-uploadprogress/metadata.xml b/dev-php/pecl-uploadprogress/metadata.xml new file mode 100644 index 000000000000..47a418e8f3b9 --- /dev/null +++ b/dev-php/pecl-uploadprogress/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <longdescription lang="en"> + An extension to track the progress of a file upload. See + https://github.com/php/pecl-php-uploadprogress/tree/master/examples for + examples. It is known to work on apache with mod_php and, beginning with 2.0, + php-fpm with apache and nginx; other servers and SAPIs are not known to work. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-uploadprogress/pecl-uploadprogress-2.0.2-r2.ebuild b/dev-php/pecl-uploadprogress/pecl-uploadprogress-2.0.2-r2.ebuild new file mode 100644 index 000000000000..8eb3d4826c1d --- /dev/null +++ b/dev-php/pecl-uploadprogress/pecl-uploadprogress-2.0.2-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_PHP="php8-2 php8-3" +PHP_EXT_SAPIS="apache2 fpm" + +inherit php-ext-pecl-r3 + +DESCRIPTION="An extension to track progress of a file upload" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples" + +PATCHES=( "${FILESDIR}/php-debug-testfix.patch" ) + +RDEPEND=" + php_targets_php8-2? ( || ( dev-lang/php:8.2[apache2(-),fileinfo(-)] dev-lang/php:8.2[fileinfo(-),fpm(-)] ) ) + php_targets_php8-3? ( || ( dev-lang/php:8.3[apache2(-),fileinfo(-)] dev-lang/php:8.3[fileinfo(-),fpm(-)] ) ) +" diff --git a/dev-php/pecl-uuid/Manifest b/dev-php/pecl-uuid/Manifest new file mode 100644 index 000000000000..12bfab00171a --- /dev/null +++ b/dev-php/pecl-uuid/Manifest @@ -0,0 +1 @@ +DIST uuid-1.2.1.tgz 16903 BLAKE2B bfc0f1a29327a637d4bda687bc00fa588a20aae86ade1e771df64eb2241ef3d5d11e368532ad823bacfc94d57876d0e0ec74703247a3b11282fbd7b70473e8c9 SHA512 32afa4e71e6b3a524b0ab4dcf021b5c6272b4061e4bea352355468f0f001ccba7c1ad72b397c35d012ceabc1a3ade68babe37e3c38ef7d83f6d5c3eee3b528d8 diff --git a/dev-php/pecl-uuid/metadata.xml b/dev-php/pecl-uuid/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-uuid/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-uuid/pecl-uuid-1.2.1.ebuild b/dev-php/pecl-uuid/pecl-uuid-1.2.1.ebuild new file mode 100644 index 000000000000..dcbc5ea82cc8 --- /dev/null +++ b/dev-php/pecl-uuid/pecl-uuid-1.2.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_NAME="uuid" +PHP_EXT_INIT="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( CREDITS ) + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A wrapper around libuuid" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="sys-apps/util-linux" +RDEPEND="${DEPEND}" +PHP_EXT_ECONF_ARGS=() diff --git a/dev-php/pecl-xattr/Manifest b/dev-php/pecl-xattr/Manifest new file mode 100644 index 000000000000..de8862d7b6dd --- /dev/null +++ b/dev-php/pecl-xattr/Manifest @@ -0,0 +1,2 @@ +DIST pecl-xattr-1.4.0.tgz 8401 BLAKE2B 661611cd638db4807b33b68d549cb85659c1fe092d2f576a72f44a5afd5306e551303f4b55a4ed6354b5fa69c91f98c8a7e0d27eb7700c1aa506bfaa50dbf991 SHA512 b8e0225e07df55f428db7d9c26fa4c7007f7345df72bced162b1910235de52040147c1925658bcd428f6dd76793a874d3db6cd14258cf3f794f3abe5ec07e97d +DIST pecl-xattr-1.4.1.tgz 8694 BLAKE2B 6681ab603648a9e2cc18270f37a6d508efadbf468f6267126bd7b62bfa0490f4ea3b8c536a933837d85021889934cc62f7ced6927f74e3c1106cd185a710c830 SHA512 30b9a925e3db6b6b6aef2f8a8b75822f892e8edcc843611090ce00ee7f65d40780a9a813ebb470b5b26670a73e8ed9459fc13282f74a1903119b770e38c5fa78 diff --git a/dev-php/pecl-xattr/metadata.xml b/dev-php/pecl-xattr/metadata.xml new file mode 100644 index 000000000000..230e8d3f95de --- /dev/null +++ b/dev-php/pecl-xattr/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jkroon@gentoo.org</email> + <name>Jaco Kroon</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-xattr/pecl-xattr-1.4.0-r1.ebuild b/dev-php/pecl-xattr/pecl-xattr-1.4.0-r1.ebuild new file mode 100644 index 000000000000..fe5124621bc7 --- /dev/null +++ b/dev-php/pecl-xattr/pecl-xattr-1.4.0-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_INI="yes" +PHP_EXT_NAME="xattr" +PHP_EXT_NEEDED_USE="" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Extended attributes for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="amd64 ~x86" diff --git a/dev-php/pecl-xattr/pecl-xattr-1.4.1.ebuild b/dev-php/pecl-xattr/pecl-xattr-1.4.1.ebuild new file mode 100644 index 000000000000..aaa17db496b9 --- /dev/null +++ b/dev-php/pecl-xattr/pecl-xattr-1.4.1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_INI="yes" +PHP_EXT_NAME="xattr" +PHP_EXT_NEEDED_USE="" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Extended attributes for PHP" +SRC_URI="${SRC_URI} -> ${P}.tgz" + +LICENSE="PHP-3.01" +SLOT="8" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/pecl-xdiff/Manifest b/dev-php/pecl-xdiff/Manifest new file mode 100644 index 000000000000..a837ca98d247 --- /dev/null +++ b/dev-php/pecl-xdiff/Manifest @@ -0,0 +1 @@ +DIST xdiff-2.1.1.tgz 25842 BLAKE2B 5699ceebc47ab05b24443bf5379ea485dbad459de933661ca1d8d77a3ca5aa31ffde8c79f165fcc3bdb52ed1c3800abafd824ea80bfd0c3cebf59e3b33cf0043 SHA512 80a845bd93d0083d95954be3b81a1b52a3f7d61ec10191af8fc9a46fea91559be97034aabbc51631ce0a9fc9a8ef894f3b4f347b5e917f1e15ffca2a3804c218 diff --git a/dev-php/pecl-xdiff/metadata.xml b/dev-php/pecl-xdiff/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-xdiff/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-xdiff/pecl-xdiff-2.1.1.ebuild b/dev-php/pecl-xdiff/pecl-xdiff-2.1.1.ebuild new file mode 100644 index 000000000000..ba74888aa143 --- /dev/null +++ b/dev-php/pecl-xdiff/pecl-xdiff-2.1.1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="xdiff" +PHP_EXT_PECL_PKG="xdiff" +DOCS=( README.API ) + +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="PHP extension for generating diff files" +LICENSE="PHP-3.01" + +SLOT="7" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/libxdiff" +DEPEND="${RDEPEND}" +PHP_EXT_ECONF_ARGS=() diff --git a/dev-php/pecl-yaml/Manifest b/dev-php/pecl-yaml/Manifest new file mode 100644 index 000000000000..77b232c641ff --- /dev/null +++ b/dev-php/pecl-yaml/Manifest @@ -0,0 +1 @@ +DIST yaml-2.3.0.tgz 41819 BLAKE2B bf386029bed199546cc6557da303b7659245f9d9bb6574c4897da0928b4a26efd8cca539f56cefeb9926afb07fc2db3e11487f9023ae061901efa04eafef4489 SHA512 d1dca645bbf3bcf92e5725c1a4d680aa00a97f1560099daefb20f619058b99d587ec9c7234c72d929141db1a53877c9e17e4afcb123c5d7c1be2199559651b38 diff --git a/dev-php/pecl-yaml/metadata.xml b/dev-php/pecl-yaml/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-yaml/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-yaml/pecl-yaml-2.3.0.ebuild b/dev-php/pecl-yaml/pecl-yaml-2.3.0.ebuild new file mode 100644 index 000000000000..add61a8b4874 --- /dev/null +++ b/dev-php/pecl-yaml/pecl-yaml-2.3.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="yaml" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="YAML 1.1 (YAML Ain't Markup Language) serialization for PHP" + +LICENSE="MIT" +SLOT="7" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +DEPEND="dev-libs/libyaml" +RDEPEND="${DEPEND}" diff --git a/dev-php/pecl-yaz/Manifest b/dev-php/pecl-yaz/Manifest new file mode 100644 index 000000000000..a3887ef91d62 --- /dev/null +++ b/dev-php/pecl-yaz/Manifest @@ -0,0 +1 @@ +DIST yaz-1.2.4.tgz 20204 BLAKE2B f36a0db6b8c49a8a4235f49ef07e28196954e9e25bcbe1a2fe94d69d14224b777f692bdc135b17b4d12d1684bb2abd52fd7966a3d78460e563d8475e31cb0ce6 SHA512 c7e17681ec82805ba74d643b427d6fdb4c4542a7efcf690cf9e4ac8adf61b9a9bfe3268ed317dc5220a85f9962f86387c3054f50e98cd986b29f8fb3f5be6b1e diff --git a/dev-php/pecl-yaz/metadata.xml b/dev-php/pecl-yaz/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/pecl-yaz/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/pecl-yaz/pecl-yaz-1.2.4-r1.ebuild b/dev-php/pecl-yaz/pecl-yaz-1.2.4-r1.ebuild new file mode 100644 index 000000000000..9a050a4d4890 --- /dev/null +++ b/dev-php/pecl-yaz/pecl-yaz-1.2.4-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_NAME="yaz" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( README ) + +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="This extension implements a Z39.50 client for PHP using the YAZ toolkit" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ~ppc64 ~s390 ~sparc x86" +RESTRICT="test" + +DEPEND=">=dev-libs/yaz-3.0.2:0=" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +# Needs network access to z3950.indexdata.com +PROPERTIES="test_network" + +PHP_EXT_ECONF_ARGS="--with-yaz=/usr" diff --git a/dev-php/phar-io-manifest/Manifest b/dev-php/phar-io-manifest/Manifest new file mode 100644 index 000000000000..5ae33fe33cbe --- /dev/null +++ b/dev-php/phar-io-manifest/Manifest @@ -0,0 +1 @@ +DIST phar-io-manifest-2.0.3.tar.gz 10249 BLAKE2B 3463a52fac2d0392b9c4a40089b536b0aebdbfe51154dbeab093da386085ead91eb95cdd133eb4464bde3a616b13c5a5772af2d97edfc585b0fa1128ef2a5166 SHA512 c0c646f0770e66909377f5f4b6b755ecfc070c44ac83d58c3ad07d79aa4481092e7c702e62d0ee65b036dd5de8ba45356d85717a733f141248e41f77d54bbe86 diff --git a/dev-php/phar-io-manifest/files/autoload.php b/dev-php/phar-io-manifest/files/autoload.php new file mode 100644 index 000000000000..f604d8b1f924 --- /dev/null +++ b/dev-php/phar-io-manifest/files/autoload.php @@ -0,0 +1,62 @@ +<?php + +require_once 'Fedora/Autoloader/autoload.php'; + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'phario\\manifest\\manifestdocumentmapper' => '/ManifestDocumentMapper.php', + 'phario\\manifest\\manifestloader' => '/ManifestLoader.php', + 'phario\\manifest\\manifestserializer' => '/ManifestSerializer.php', + 'phario\\manifest\\exception' => '/exceptions/Exception.php', + 'phario\\manifest\\invalidapplicationnameexception' => '/exceptions/InvalidApplicationNameException.php', + 'phario\\manifest\\invalidemailexception' => '/exceptions/InvalidEmailException.php', + 'phario\\manifest\\invalidurlexception' => '/exceptions/InvalidUrlException.php', + 'phario\\manifest\\manifestdocumentexception' => '/exceptions/ManifestDocumentException.php', + 'phario\\manifest\\manifestdocumentmapperexception' => '/exceptions/ManifestDocumentMapperException.php', + 'phario\\manifest\\manifestelementexception' => '/exceptions/ManifestElementException.php', + 'phario\\manifest\\manifestloaderexception' => '/exceptions/ManifestLoaderException.php', + 'phario\\manifest\\application' => '/values/Application.php', + 'phario\\manifest\\applicationname' => '/values/ApplicationName.php', + 'phario\\manifest\\author' => '/values/Author.php', + 'phario\\manifest\\authorcollection' => '/values/AuthorCollection.php', + 'phario\\manifest\\authorcollectioniterator' => '/values/AuthorCollectionIterator.php', + 'phario\\manifest\\bundledcomponent' => '/values/BundledComponent.php', + 'phario\\manifest\\bundledcomponentcollection' => '/values/BundledComponentCollection.php', + 'phario\\manifest\\bundledcomponentcollectioniterator' => '/values/BundledComponentCollectionIterator.php', + 'phario\\manifest\\copyrightinformation' => '/values/CopyrightInformation.php', + 'phario\\manifest\\email' => '/values/Email.php', + 'phario\\manifest\\extension' => '/values/Extension.php', + 'phario\\manifest\\library' => '/values/Library.php', + 'phario\\manifest\\license' => '/values/License.php', + 'phario\\manifest\\manifest' => '/values/Manifest.php', + 'phario\\manifest\\phpextensionrequirement' => '/values/PhpExtensionRequirement.php', + 'phario\\manifest\\phpversionrequirement' => '/values/PhpVersionRequirement.php', + 'phario\\manifest\\requirement' => '/values/Requirement.php', + 'phario\\manifest\\requirementcollection' => '/values/RequirementCollection.php', + 'phario\\manifest\\requirementcollectioniterator' => '/values/RequirementCollectionIterator.php', + 'phario\\manifest\\type' => '/values/Type.php', + 'phario\\manifest\\url' => '/values/Url.php', + 'phario\\manifest\\authorelement' => '/xml/AuthorElement.php', + 'phario\\manifest\\authorelementcollection' => '/xml/AuthorElementCollection.php', + 'phario\\manifest\\bundleselement' => '/xml/BundlesElement.php', + 'phario\\manifest\\componentelement' => '/xml/ComponentElement.php', + 'phario\\manifest\\componentelementcollection' => '/xml/ComponentElementCollection.php', + 'phario\\manifest\\containselement' => '/xml/ContainsElement.php', + 'phario\\manifest\\copyrightelement' => '/xml/CopyrightElement.php', + 'phario\\manifest\\elementcollection' => '/xml/ElementCollection.php', + 'phario\\manifest\\extelement' => '/xml/ExtElement.php', + 'phario\\manifest\\extelementcollection' => '/xml/ExtElementCollection.php', + 'phario\\manifest\\extensionelement' => '/xml/ExtensionElement.php', + 'phario\\manifest\\licenseelement' => '/xml/LicenseElement.php', + 'phario\\manifest\\manifestdocument' => '/xml/ManifestDocument.php', + 'phario\\manifest\\manifestdocumentloadingexception' => '/xml/ManifestDocumentLoadingException.php', + 'phario\\manifest\\manifestelement' => '/xml/ManifestElement.php', + 'phario\\manifest\\phpelement' => '/xml/PhpElement.php', + 'phario\\manifest\\requireselement' => '/xml/RequiresElement.php', + ], + __DIR__ +); + +\Fedora\Autoloader\Dependencies::required([ + '/usr/share/php/PharIo/Version/autoload.php' +]); diff --git a/dev-php/phar-io-manifest/metadata.xml b/dev-php/phar-io-manifest/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/phar-io-manifest/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/phar-io-manifest/phar-io-manifest-2.0.3.ebuild b/dev-php/phar-io-manifest/phar-io-manifest-2.0.3.ebuild new file mode 100644 index 000000000000..94fa39bddbee --- /dev/null +++ b/dev-php/phar-io-manifest/phar-io-manifest-2.0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Reading phar.io manifest information from a PHP Archive (PHAR)" +HOMEPAGE="https://github.com/phar-io/manifest" +SRC_URI="https://github.com/phar-io/manifest/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="examples" + +CDEPEND="dev-php/fedora-autoloader + >=dev-php/phar-io-version-3.0.1 + >=dev-lang/php-7.2:*[phar,xml(-),xmlwriter(-)]" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="${CDEPEND}" + +S="${WORKDIR}/manifest-${PV}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die + + cat >> src/autoload.php <<EOF || die "failed to extend autoload.php" + +// Dependencies +\Fedora\Autoloader\Dependencies::required([ + '/usr/share/php/PharIo/Version/autoload.php' +]); +EOF +} + +src_install() { + insinto /usr/share/php/PharIo/Manifest + doins -r src/* + dodoc README.md + use examples && dodoc -r examples +} diff --git a/dev-php/phar-io-version/Manifest b/dev-php/phar-io-version/Manifest new file mode 100644 index 000000000000..580c8ace4666 --- /dev/null +++ b/dev-php/phar-io-version/Manifest @@ -0,0 +1 @@ +DIST phar-io-version-3.1.0.tar.gz 6954 BLAKE2B cd2ed8f1219a6cbb4b50fbfa835dfb7971b0111363344397c4eed672ec223019f66da5afa20b43aeb3d8a9f301438f5a0b0680208115df73cd7e65eda37b1f1a SHA512 f441f341cd63b2910e384fc1a4bae45ab9ccaeaebea8d79c8b20f1d745255c29dbc349962837da5eaa445cfa64ee3c9a4741058da3e669d66da13e45cae2f65e diff --git a/dev-php/phar-io-version/files/autoload.php b/dev-php/phar-io-version/files/autoload.php new file mode 100644 index 000000000000..0036ced557a9 --- /dev/null +++ b/dev-php/phar-io-version/files/autoload.php @@ -0,0 +1,6 @@ +<?php +/* Autoloader for dev-php/phar-io-version */ + +require_once 'Fedora/Autoloader/autoload.php'; + +\Fedora\Autoloader\Autoload::addPsr4('PharIo\\Version\\', __DIR__); diff --git a/dev-php/phar-io-version/metadata.xml b/dev-php/phar-io-version/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/phar-io-version/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/phar-io-version/phar-io-version-3.1.0.ebuild b/dev-php/phar-io-version/phar-io-version-3.1.0.ebuild new file mode 100644 index 000000000000..ac74ac6072b0 --- /dev/null +++ b/dev-php/phar-io-version/phar-io-version-3.1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Library for handling version information and constraints" +HOMEPAGE="https://github.com/phar-io/version" +SRC_URI="https://github.com/phar-io/version/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/version-${PV}" + +CDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="${CDEPEND}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto /usr/share/php/PharIo/Version + doins src/*.php + dodoc README.md +} diff --git a/dev-php/phar-utils/Manifest b/dev-php/phar-utils/Manifest new file mode 100644 index 000000000000..5e445ed38408 --- /dev/null +++ b/dev-php/phar-utils/Manifest @@ -0,0 +1 @@ +DIST phar-utils-1.1.2.tar.gz 4223 BLAKE2B fa64eb6f6a53f5a571c4cab21235269321055d09c4adb5d72baa1084d862a72f8ac010d1dd02fa8a3e1da4b8b8b449d648cfa4b47486832f85e68f222184518e SHA512 122c76ee29bb981b75f86f025235577bb9c1cf2b3f18c16740a000284a23e04b8ec7ee37a369513f7c44e4da8a8838d90384a02ce38bcb425f826ac2b6eb3b88 diff --git a/dev-php/phar-utils/files/autoload.php b/dev-php/phar-utils/files/autoload.php new file mode 100644 index 000000000000..44f0299fd7bd --- /dev/null +++ b/dev-php/phar-utils/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-finder and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Seld\\PharUtils\\', __DIR__); diff --git a/dev-php/phar-utils/metadata.xml b/dev-php/phar-utils/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/phar-utils/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/phar-utils/phar-utils-1.1.2.ebuild b/dev-php/phar-utils/phar-utils-1.1.2.ebuild new file mode 100644 index 000000000000..e3b6014925d4 --- /dev/null +++ b/dev-php/phar-utils/phar-utils-1.1.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="PHAR file format utilities, for when PHP phars you up" +HOMEPAGE="https://github.com/Seldaek/phar-utils" +SRC_URI="https://github.com/Seldaek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + dev-lang/php:*[phar] + dev-php/fedora-autoloader" + +src_install() { + insinto "/usr/share/php/Seld/PharUtils" + doins -r src/. "${FILESDIR}"/autoload.php + dodoc README.md +} diff --git a/dev-php/psr-log/Manifest b/dev-php/psr-log/Manifest new file mode 100644 index 000000000000..0ad120fd8e41 --- /dev/null +++ b/dev-php/psr-log/Manifest @@ -0,0 +1 @@ +DIST psr-log-1.1.4.tar.gz 5843 BLAKE2B b8cd6304495d4e10e4fbc137c226880fdfe8f5e9ce44f72f9389d3d560db1d8a91ea832c9f89772d329c0bd65fc8710ae4125845cda3d0316de307dd39d1b14f SHA512 fca99e74f357c8da9f726a1f83825aa0d2fdda4ce31c67099818c4aa724fcc1293cecd446476697d244f192e92bf6bc2eed39c197028611589825c677a15f3ac diff --git a/dev-php/psr-log/files/autoload.php b/dev-php/psr-log/files/autoload.php new file mode 100644 index 000000000000..fac5a688b5a9 --- /dev/null +++ b/dev-php/psr-log/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for composer/ca-bundle and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Psr\\Log\\', __DIR__); diff --git a/dev-php/psr-log/metadata.xml b/dev-php/psr-log/metadata.xml new file mode 100644 index 000000000000..f8fba3996ce1 --- /dev/null +++ b/dev-php/psr-log/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + PSR-3 logger, provide a common interface for logging libraries. + The main goal is to allow libraries to receive a + Psr\Log\LoggerInterface object and write logs to it in a simple + and universal way. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/psr-log/psr-log-1.1.4.ebuild b/dev-php/psr-log/psr-log-1.1.4.ebuild new file mode 100644 index 000000000000..fba021a817a1 --- /dev/null +++ b/dev-php/psr-log/psr-log-1.1.4.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Common interface for logging libraries" +HOMEPAGE="https://github.com/php-fig/log" +SRC_URI="https://github.com/php-fig/log/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" + +S="${WORKDIR}/log-${PV}" + +src_install() { + insinto "/usr/share/php/Psr/Log" + doins -r Psr/Log/. "${FILESDIR}"/autoload.php + dodoc README.md +} diff --git a/dev-php/reactphp-promise/Manifest b/dev-php/reactphp-promise/Manifest new file mode 100644 index 000000000000..c11e1b030091 --- /dev/null +++ b/dev-php/reactphp-promise/Manifest @@ -0,0 +1 @@ +DIST reactphp-promise-2.8.0.tar.gz 17178 BLAKE2B 43e5a9eef0f774ec4de7be44fbab300dfd78a23b21de2acbb39e44af49ee95b2532f66b711acc4ee152522d4725e1e29f9abae20d0ac2e18fba3dbb3f615cc5e SHA512 8c882c96b47cc53f791de964303014feb00a73594a510287ea352ff619a8432d88f4c094523d4de98234f985f7351cd244bb094484a257aa36357e85eb0ee62e diff --git a/dev-php/reactphp-promise/metadata.xml b/dev-php/reactphp-promise/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/reactphp-promise/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild new file mode 100644 index 000000000000..3737fbb4c5bf --- /dev/null +++ b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="promise" + +DESCRIPTION="A lightweight implementation of CommonJS Promises/A for PHP" +HOMEPAGE="https://reactphp.org/promise/" +SRC_URI="https://github.com/reactphp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die + +cat >> src/autoload.php <<EOF || die "failed to extend autoload.php" + +// Dependencies +\Fedora\Autoloader\Dependencies::required([ + '${EPREFIX}/usr/share/php/React/Promise/functions.php' +]); +EOF +} + +src_install() { + insinto /usr/share/php/React/Promise + doins -r src/* + + einstalldocs +} diff --git a/dev-php/recaptcha/Manifest b/dev-php/recaptcha/Manifest new file mode 100644 index 000000000000..e875c255ca4d --- /dev/null +++ b/dev-php/recaptcha/Manifest @@ -0,0 +1 @@ +DIST recaptcha-1.2.4.tar.gz 21762 BLAKE2B 46c00ac95f2d2643a719b8ea4b53f33f92357406168e057dbdb87fb1419dd6626d1032113ba5842c69bdacb385887563b52290a55a861b57ddcf494e325c0595 SHA512 7c0bee86e532547900a0131c2c52d9d3e427eb0465d7ae5ca2bd3ccbeb7620c8b3216313e4ab382013045310f928364c1284a77eee2f2216d5b241e2d275597d diff --git a/dev-php/recaptcha/metadata.xml b/dev-php/recaptcha/metadata.xml new file mode 100644 index 000000000000..a6e780957ae0 --- /dev/null +++ b/dev-php/recaptcha/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/recaptcha/recaptcha-1.2.4.ebuild b/dev-php/recaptcha/recaptcha-1.2.4.ebuild new file mode 100644 index 000000000000..2d48efba7a19 --- /dev/null +++ b/dev-php/recaptcha/recaptcha-1.2.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="PHP client library for Google's reCAPTCHA service" +HOMEPAGE="https://github.com/google/recaptcha" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php" +BDEPEND="test? ( ${RDEPEND} <dev-php/phpunit-8 )" + +src_install() { + insinto "/usr/share/php/${PN}" + doins -r src/autoload.php src/ReCaptcha + dodoc CONTRIBUTING.md README.md + use examples && dodoc -r examples +} + +src_test() { + phpunit || die "test suite failed" +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${PN}/." + elog "To use it in a script, require('${PN}/autoload.php')," + elog "and then use the ${PN} class normally. Most of the examples in" + elog "the documentation should work without further modification." +} diff --git a/dev-php/sebastian-code-unit-reverse-lookup/Manifest b/dev-php/sebastian-code-unit-reverse-lookup/Manifest new file mode 100644 index 000000000000..558659fcf380 --- /dev/null +++ b/dev-php/sebastian-code-unit-reverse-lookup/Manifest @@ -0,0 +1 @@ +DIST sebastian-code-unit-reverse-lookup-2.0.3.tar.gz 3047 BLAKE2B 8a61edd4fe312fb089f5bc5973b7174f64e20a84bddb8bb4f832d4ce3a8d59203cd322b932ffb48108b7ffd9e9a219693b55bbf2ccf5b4314cf5c127701ab323 SHA512 3d4f7c8b517743f556480196b43bdb1d5397ab0d9b11afbfe063f161fbbe55155c192695c7f474cf0abd54a8e118992e2c5b62d2e9009217e07f0f63973cfcc1 diff --git a/dev-php/sebastian-code-unit-reverse-lookup/metadata.xml b/dev-php/sebastian-code-unit-reverse-lookup/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-code-unit-reverse-lookup/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-2.0.3.ebuild b/dev-php/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-2.0.3.ebuild new file mode 100644 index 000000000000..b072df837abb --- /dev/null +++ b/dev-php/sebastian-code-unit-reverse-lookup/sebastian-code-unit-reverse-lookup-2.0.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/sebastian-/}" + +DESCRIPTION="Looks up which function or method a line of code belongs to" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto /usr/share/php/SebastianBergmann/CodeUnitReverseLookup + doins -r src/. + + einstalldocs +} diff --git a/dev-php/sebastian-complexity/Manifest b/dev-php/sebastian-complexity/Manifest new file mode 100644 index 000000000000..a4f65cc18eaa --- /dev/null +++ b/dev-php/sebastian-complexity/Manifest @@ -0,0 +1 @@ +DIST sebastian-complexity-2.0.2.tar.gz 4979 BLAKE2B f742e0f3057d7d24963236e2b32841cd6d8fb9b14870e2bfbe1d84cb737008428c9e00db28f5c2f42a61877a4282b3dbd5935c9a3ea4cf93401691c43bab40df SHA512 04773cfac3622eca3d859e9180f8eb5582e3a4124837b2e2cb536b052eeac6fe19dbae81ddbdcc88405de0ff0b202140609e7a5eb435af54faac4b1262c780e7 diff --git a/dev-php/sebastian-complexity/files/autoload-2.0.2.php b/dev-php/sebastian-complexity/files/autoload-2.0.2.php new file mode 100644 index 000000000000..07eb31b7ee93 --- /dev/null +++ b/dev-php/sebastian-complexity/files/autoload-2.0.2.php @@ -0,0 +1,20 @@ +<?php +/* Autoloader for dev-php/sebastian-complexity */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\complexity\calculator' => '/Calculator.php', + 'sebastianbergmann\complexity\complexity' => '/Complexity/Complexity.php', + 'sebastianbergmann\complexity\complexitycollection' => '/Complexity/ComplexityCollection.php', + 'sebastianbergmann\complexity\complexitycollectioniterator' => '/Complexity/ComplexityCollectionIterator.php', + 'sebastianbergmann\complexity\complexitycalculatingvisitor' => '/Visitor/ComplexityCalculatingVisitor.php', + 'sebastianbergmann\complexity\cyclomaticcomplexitycalculatingvisitor' => '/Visitor/CyclomaticComplexityCalculatingVisitor.php', + 'sebastianbergmann\complexity\exception' => '/Exception/Exception.php', + 'sebastianbergmann\complexity\runtimeexception' => '/Exception/RuntimeException.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-complexity/metadata.xml b/dev-php/sebastian-complexity/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-complexity/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild b/dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild new file mode 100644 index 000000000000..0c9cd090579a --- /dev/null +++ b/dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/sebastian-//}" + +DESCRIPTION="Library for calculating the complexity of PHP code units" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + dev-php/nikic-php-parser + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/Complexity + doins -r src/* + newins "${FILESDIR}/autoload-2.0.2.php" autoload.php +} diff --git a/dev-php/sebastian-diff/Manifest b/dev-php/sebastian-diff/Manifest new file mode 100644 index 000000000000..ae6be20156cd --- /dev/null +++ b/dev-php/sebastian-diff/Manifest @@ -0,0 +1 @@ +DIST sebastian-diff-3.0.2.tar.gz 30918 BLAKE2B 33c307c97d30573c913e4a696710c7b0091b3d0a612661b900dfdb749e4fa5c8970d993c0ee8828c4b0342336c39db4c74702114a5a6ae0daf650fc625baade7 SHA512 c06176de492970f3e55a5fdf1901eb56299b3e49cb838b8cdcbb93bc9cfe9fe9c1b693acb0c598c618760c4de0e49deb2f7bad15a929bd13ef08d30fab41b677 diff --git a/dev-php/sebastian-diff/files/autoload-3.0.2.php b/dev-php/sebastian-diff/files/autoload-3.0.2.php new file mode 100644 index 000000000000..13d6bb4216ab --- /dev/null +++ b/dev-php/sebastian-diff/files/autoload-3.0.2.php @@ -0,0 +1,28 @@ +<?php +/* Autoloader for dev-php/sebastian-diff */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\diff\chunk' => '/Chunk.php', + 'sebastianbergmann\diff\diff' => '/Diff.php', + 'sebastianbergmann\diff\differ' => '/Differ.php', + 'sebastianbergmann\diff\line' => '/Line.php', + 'sebastianbergmann\diff\longestcommonsubsequencecalculator' => '/LongestCommonSubsequenceCalculator.php', + 'sebastianbergmann\diff\memoryefficientlongestcommonsubsequencecalculator' => '/MemoryEfficientLongestCommonSubsequenceCalculator.php', + 'sebastianbergmann\diff\parser' => '/Parser.php', + 'sebastianbergmann\diff\timeefficientlongestcommonsubsequencecalculator' => '/TimeEfficientLongestCommonSubsequenceCalculator.php', + 'sebastianbergmann\diff\configurationexception' => '/Exception/ConfigurationException.php', + 'sebastianbergmann\diff\exception' => '/Exception/Exception.php', + 'sebastianbergmann\diff\invalidargumentexception' => '/Exception/InvalidArgumentException.php', + 'sebastianbergmann\diff\output\abstractchunkoutputbuilder' => '/Output/AbstractChunkOutputBuilder.php', + 'sebastianbergmann\diff\output\diffonlyoutputbuilder' => '/Output/DiffOnlyOutputBuilder.php', + 'sebastianbergmann\diff\output\diffoutputbuilderinterface' => '/Output/DiffOutputBuilderInterface.php', + 'sebastianbergmann\diff\output\strictunifieddiffoutputbuilder' => '/Output/StrictUnifiedDiffOutputBuilder.php', + 'sebastianbergmann\diff\output\unifieddiffoutputbuilder' => '/Output/UnifiedDiffOutputBuilder.php', + ), + __DIR__ +); diff --git a/dev-php/sebastian-diff/metadata.xml b/dev-php/sebastian-diff/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-diff/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-diff/sebastian-diff-3.0.2.ebuild b/dev-php/sebastian-diff/sebastian-diff-3.0.2.ebuild new file mode 100644 index 000000000000..1c87d35f3796 --- /dev/null +++ b/dev-php/sebastian-diff/sebastian-diff-3.0.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="diff" + +DESCRIPTION="PHP Diff implementation" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/Diff + doins -r src/* + newins "${FILESDIR}/autoload-3.0.2.php" autoload.php +} diff --git a/dev-php/sebastian-environment/Manifest b/dev-php/sebastian-environment/Manifest new file mode 100644 index 000000000000..bd0f4f039536 --- /dev/null +++ b/dev-php/sebastian-environment/Manifest @@ -0,0 +1 @@ +DIST sebastian-environment-5.1.3.tar.gz 6766 BLAKE2B b19be2ce9b9d514ed5ce7203f2bb0b06c90d36b42dac5f210cbc9d1a764d727aefd6b18fbd291b82516c8902aa3b895e5563eab4113ad977bbc7aa8e63a69068 SHA512 f11826a65ed758e1fe94e6c53293660406ea93f45c107b78053134d695580cb0507786c6d527fef8e7d52ab8df0b4ad9acb2c4a6c758c3a165658a5c3d138d65 diff --git a/dev-php/sebastian-environment/files/autoload-4.2.3.php b/dev-php/sebastian-environment/files/autoload-4.2.3.php new file mode 100644 index 000000000000..299c469e1906 --- /dev/null +++ b/dev-php/sebastian-environment/files/autoload-4.2.3.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for dev-php/sebastian-environment */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\environment\console' => '/Console.php', + 'sebastianbergmann\environment\operatingsystem' => '/OperatingSystem.php', + 'sebastianbergmann\environment\runtime' => '/Runtime.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-environment/metadata.xml b/dev-php/sebastian-environment/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-environment/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-environment/sebastian-environment-5.1.3.ebuild b/dev-php/sebastian-environment/sebastian-environment-5.1.3.ebuild new file mode 100644 index 000000000000..db019dd3acb0 --- /dev/null +++ b/dev-php/sebastian-environment/sebastian-environment-5.1.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/sebastian-//}" + +DESCRIPTION="Helps writing PHP code that has runtime-specific execution paths" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/Environment + doins -r src/* + newins "${FILESDIR}/autoload-4.2.3.php" autoload.php +} diff --git a/dev-php/sebastian-lines-of-code/Manifest b/dev-php/sebastian-lines-of-code/Manifest new file mode 100644 index 000000000000..7f00e06c886c --- /dev/null +++ b/dev-php/sebastian-lines-of-code/Manifest @@ -0,0 +1 @@ +DIST sebastian-lines-of-code-1.0.3.tar.gz 4438 BLAKE2B 1142dabe91907fdcb469fe223ba292b8444f093c6dfa5d4a428357db59635aa760ccda5b8f077def130eeba3365f5d0f50fad465300ba8028edd9d46f99defbc SHA512 09812716a68586cad8304fd14ee4957de68fff6cfabf9982a126ba19d1990a4822962ccbb384170082b18f0ab081d5beeec06c633f4c374f21718a616a054dfd diff --git a/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php b/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php new file mode 100644 index 000000000000..5c824ac8c0ac --- /dev/null +++ b/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php @@ -0,0 +1,19 @@ +<?php +/* Autoloader for dev-php/sebastian-linesofcode */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\linesofcode\linesofcode' => '/LinesOfCode.php', + 'sebastianbergmann\linesofcode\linecountingvisitor' => '/LineCountingVisitor.php', + 'sebastianbergmann\linesofcode\counter' => '/Counter.php', + 'sebastianbergmann\linesofcode\exception' => '/Exception/Exception.php', + 'sebastianbergmann\linesofcode\illogicalvaluesexception' => '/Exception/IllogicalValuesException.php', + 'sebastianbergmann\linesofcode\negativevalueexception' => '/Exception/NegativeValueException.php', + 'sebastianbergmann\linesofcode\runtimeexception' => '/Exception/RuntimeException.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-lines-of-code/metadata.xml b/dev-php/sebastian-lines-of-code/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-lines-of-code/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.ebuild b/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.ebuild new file mode 100644 index 000000000000..c88f042e5853 --- /dev/null +++ b/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN/sebastian-//}" + +DESCRIPTION="Library for counting the lines of code in PHP source code" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + dev-php/nikic-php-parser + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/LinesOfCode + doins -r src/* + newins "${FILESDIR}/autoload-1.0.3.php" autoload.php +} diff --git a/dev-php/sebastian-resource-operations/Manifest b/dev-php/sebastian-resource-operations/Manifest new file mode 100644 index 000000000000..50a598a1575e --- /dev/null +++ b/dev-php/sebastian-resource-operations/Manifest @@ -0,0 +1 @@ +DIST sebastian-resource-operations-2.0.1.tar.gz 17772 BLAKE2B 8a98c2735973f063fefba9079bf10e1b4a1317eab2e9326bf338d50b2c278673ade93bc20fb415d4d33046575045d0e2d147b5b1ba38812c84031c7a691d1946 SHA512 991716a948f3492b2f3c886f07485fec26ad7e31f8588a2cbf6deff8ef4791e403962578590b117ed43def7753a5f44f0f8c8f92994bc58295d58db3f7d71021 diff --git a/dev-php/sebastian-resource-operations/files/autoload.php b/dev-php/sebastian-resource-operations/files/autoload.php new file mode 100644 index 000000000000..f7b9a4d6f681 --- /dev/null +++ b/dev-php/sebastian-resource-operations/files/autoload.php @@ -0,0 +1,13 @@ +<?php +/* Autoloader for dev-php/sebastian-resource-operations */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\resourceoperations\resourceoperations' => '/ResourceOperations.php', + ), + __DIR__ +); diff --git a/dev-php/sebastian-resource-operations/metadata.xml b/dev-php/sebastian-resource-operations/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-resource-operations/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-resource-operations/sebastian-resource-operations-2.0.1.ebuild b/dev-php/sebastian-resource-operations/sebastian-resource-operations-2.0.1.ebuild new file mode 100644 index 000000000000..82a0e82b1553 --- /dev/null +++ b/dev-php/sebastian-resource-operations/sebastian-resource-operations-2.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/sebastian-//}" + +DESCRIPTION="Provides a list of PHP built-in functions that operate on resources" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:* + " + +src_install() { + insinto /usr/share/php/SebastianBergmann/ResourceOperations + doins -r src/* + doins "${FILESDIR}/autoload.php" +} diff --git a/dev-php/sebastian-type/Manifest b/dev-php/sebastian-type/Manifest new file mode 100644 index 000000000000..55fd5f4c310e --- /dev/null +++ b/dev-php/sebastian-type/Manifest @@ -0,0 +1 @@ +DIST sebastian-type-1.1.4.tar.gz 19091 BLAKE2B 17a10d98c7356002b474ebab2c128631593ee175033fe9088a6fdfc29f020e33f1f090c1fb47c9890c686d41d207f5c8d2f6fffccd1e53341b8244b2633f55a1 SHA512 5320cad60dc79b213f30ec7b962d9e178ca7e49053eac040a50df3cea05579741f39bdc13872fb1b2d7c779a8e201767ee9550f47bb39cfca9fdac763886390d diff --git a/dev-php/sebastian-type/files/autoload.php b/dev-php/sebastian-type/files/autoload.php new file mode 100644 index 000000000000..91b60dbf64b2 --- /dev/null +++ b/dev-php/sebastian-type/files/autoload.php @@ -0,0 +1,24 @@ +<?php +/* Autoloader for dev-php/sebastian-version */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\type\callabletype' => '/CallableType.php', + 'sebastianbergmann\type\genericobjecttype' => '/GenericObjectType.php', + 'sebastianbergmann\type\iterabletype' => '/IterableType.php', + 'sebastianbergmann\type\nulltype' => '/NullType.php', + 'sebastianbergmann\type\objecttype' => '/ObjectType.php', + 'sebastianbergmann\type\simpletype' => '/SimpleType.php', + 'sebastianbergmann\type\type' => '/Type.php', + 'sebastianbergmann\type\typename' => '/TypeName.php', + 'sebastianbergmann\type\unknowntype' => '/UnknownType.php', + 'sebastianbergmann\type\voidtype' => '/VoidType.php', + 'sebastianbergmann\type\exception' => '/exception/Exception.php', + 'sebastianbergmann\type\runtimeexception' => '/exception/RuntimeException.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-type/metadata.xml b/dev-php/sebastian-type/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-type/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-type/sebastian-type-1.1.4.ebuild b/dev-php/sebastian-type/sebastian-type-1.1.4.ebuild new file mode 100644 index 000000000000..53f963d8ccd8 --- /dev/null +++ b/dev-php/sebastian-type/sebastian-type-1.1.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN/sebastian-/}" + +DESCRIPTION="Collection of value objects that represent the types of the PHP type system" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto /usr/share/php/SebastianBergmann/Type + doins -r src/. + + einstalldocs +} diff --git a/dev-php/sebastian-version/Manifest b/dev-php/sebastian-version/Manifest new file mode 100644 index 000000000000..93119515f194 --- /dev/null +++ b/dev-php/sebastian-version/Manifest @@ -0,0 +1 @@ +DIST sebastian-version-3.0.2.tar.gz 3316 BLAKE2B ecf9bd1e6ad471271410863ac4ce1066cfe13467bc324d4313f829c0bffe765ac07af514f096bc008c95c2e981821f2c8f905646d5194d61cc5c800f173fd345 SHA512 4dba99c14827ef2a402af1faa09c42e55dd16440c0d26fa97927f1c211e779a0d7f6ca005d87fbb76a081bf116d2a7fc3f5296481c908a1eeece162e4aad084d diff --git a/dev-php/sebastian-version/files/autoload.php b/dev-php/sebastian-version/files/autoload.php new file mode 100644 index 000000000000..3839169bafb5 --- /dev/null +++ b/dev-php/sebastian-version/files/autoload.php @@ -0,0 +1,13 @@ +<?php +/* Autoloader for dev-php/sebastian-version */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + array( + 'sebastianbergmann\version' => '/../Version.php', + ), + __DIR__ +); diff --git a/dev-php/sebastian-version/metadata.xml b/dev-php/sebastian-version/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/sebastian-version/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/sebastian-version/sebastian-version-3.0.2.ebuild b/dev-php/sebastian-version/sebastian-version-3.0.2.ebuild new file mode 100644 index 000000000000..a2f225f741d5 --- /dev/null +++ b/dev-php/sebastian-version/sebastian-version-3.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="version" + +DESCRIPTION="Helps with managing the version number of Git-hosted PHP projects" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann + doins src/Version.php + insinto /usr/share/php/SebastianBergmann/Version + doins "${FILESDIR}/autoload.php" +} diff --git a/dev-php/semver/Manifest b/dev-php/semver/Manifest new file mode 100644 index 000000000000..d1fbc9481311 --- /dev/null +++ b/dev-php/semver/Manifest @@ -0,0 +1 @@ +DIST semver-3.2.6.tar.gz 19872 BLAKE2B 239e6a82168e5b9b1077c25de672138f11395bebe31fec088ff874cd83b0acf52b10e155740376733a091bb2844082a5db79740a10cfb70a06020d3c45555d8a SHA512 44e2d195c224af93a6440a97a90e4a201221a7d1ce6bc413b8c86e4bc3d24ede193179294e9bd83da636827e8530f3aefc212652210655be6aa7cc1681a28f3f diff --git a/dev-php/semver/metadata.xml b/dev-php/semver/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/semver/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/semver/semver-3.2.6.ebuild b/dev-php/semver/semver-3.2.6.ebuild new file mode 100644 index 000000000000..092cd6f87554 --- /dev/null +++ b/dev-php/semver/semver-3.2.6.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Semantic versioning utilities, constraint parsing, and checking" +HOMEPAGE="https://github.com/composer/semver" +SRC_URI="https://github.com/composer/semver/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.2:*" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src \ + || die +} + +src_install() { + insinto '/usr/share/php/Composer/Semver' + doins -r src/* + + einstalldocs +} diff --git a/dev-php/smarty/Manifest b/dev-php/smarty/Manifest new file mode 100644 index 000000000000..bf76715a4a1c --- /dev/null +++ b/dev-php/smarty/Manifest @@ -0,0 +1 @@ +DIST smarty-4.3.1.tar.gz 361248 BLAKE2B b09ab14742b9ebdfd1e31ec9d2ac79016ce8869403da67ea241b735875ef25f40c2936a41bda5647ca697b708b91b02a29f5d17ebbc7d6049bf468851f0bc70f SHA512 03a42007fd1c03ba502b7a2255071638e978a54e5d75d4542a033e9f490c7c41587b5593316269107fe904a7b96a1a3337bf9525e038a5bb4051cc9aef13940f diff --git a/dev-php/smarty/metadata.xml b/dev-php/smarty/metadata.xml new file mode 100644 index 000000000000..c8f300c68e19 --- /dev/null +++ b/dev-php/smarty/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + <longdescription lang="en"> + Smarty is a template engine for PHP, facilitating the separation + of presentation (HTML/CSS) from application logic. This implies + that PHP code is application logic, and is separated from the + presentation. + </longdescription> + <upstream> + <remote-id type="cpe">cpe:/a:smarty:smarty</remote-id> + </upstream> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/smarty/smarty-4.3.1.ebuild b/dev-php/smarty/smarty-4.3.1.ebuild new file mode 100644 index 000000000000..862d7c1e50ca --- /dev/null +++ b/dev-php/smarty/smarty-4.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A template engine for PHP" +HOMEPAGE="https://www.smarty.net/ https://github.com/smarty-php/smarty/" +SRC_URI="https://github.com/smarty-php/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc64 ~sparc x86" +IUSE="doc examples" + +# PHP unicode support is detected at runtime, and the cached templates +# that smarty generates depend on it. If, later on, PHP is reinstalled +# without unicode support, all of the previously-generated cached +# templates will begin to throw 500 errrors for missing mb_foo +# functions. See bug #532618. +RDEPEND="dev-lang/php:*[unicode]" + +src_prepare() { + default + + # Prepare the docs and examples for easy dodocing. + rm docs/_config.yml || die + mv -v demo examples || die +} + +src_install() { + insinto "/usr/share/php/${PN}" + doins -r libs/* + + local DOCS=( CHANGELOG.md README.md SECURITY.md ) + + use doc && dodoc -r docs/* + use examples && dodoc -r examples + einstalldocs +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${PN}/." + elog + elog 'To use it in your scripts, include the Smarty.class.php file' + elog "from the \"${PN}\" directory; for example," + elog + elog " require('${PN}/Smarty.class.php');" + elog + elog 'After that, the Smarty class will be available to you.' +} diff --git a/dev-php/spdx-licenses/Manifest b/dev-php/spdx-licenses/Manifest new file mode 100644 index 000000000000..3696b2a8b814 --- /dev/null +++ b/dev-php/spdx-licenses/Manifest @@ -0,0 +1 @@ +DIST spdx-licenses-1.5.4.tar.gz 11804 BLAKE2B d6e2b0364f0f6d728e93a0c4e7796e2461b3be03b17ec30ae77db898b1cca3b00a970a9a64d55ddcec1f115be2bcf69e870c6f802267d6a0ed0e05befb87120f SHA512 0912d6060521c0e88e9570af84f8197cc009d060233d4adda540472bdb736fe9ee077ab424d6f46ddbfb7ee23783c34d3282f88222fd305282c54f164b14c5f3 diff --git a/dev-php/spdx-licenses/files/autoload.php b/dev-php/spdx-licenses/files/autoload.php new file mode 100644 index 000000000000..6ebf96e7378c --- /dev/null +++ b/dev-php/spdx-licenses/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for composer/ca-bundle and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Composer\\Spdx\\', __DIR__); diff --git a/dev-php/spdx-licenses/metadata.xml b/dev-php/spdx-licenses/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/spdx-licenses/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/spdx-licenses/spdx-licenses-1.5.4.ebuild b/dev-php/spdx-licenses/spdx-licenses-1.5.4.ebuild new file mode 100644 index 000000000000..7a74e42a2f7d --- /dev/null +++ b/dev-php/spdx-licenses/spdx-licenses-1.5.4.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Tools for working with and validating SPDX licenses" +HOMEPAGE="https://github.com/composer/spdx-licenses" +SRC_URI="https://github.com/composer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" + +src_install() { + insinto "/usr/share/php/Composer/res" + doins -r res/. + + insinto "/usr/share/php/Composer/Spdx" + doins -r src/. "${FILESDIR}"/autoload.php + dodoc README.md +} diff --git a/dev-php/swoole/Manifest b/dev-php/swoole/Manifest new file mode 100644 index 000000000000..09bcf430c9d8 --- /dev/null +++ b/dev-php/swoole/Manifest @@ -0,0 +1,2 @@ +DIST swoole-6.2.0.tar.gz 2184242 BLAKE2B b6732f15933e7b5ac2ca30a3358b78c2ad5970543837e8d15c91849bb9c1d0c3fcb17554d3fcc595db03f7f757800a0db78867986ae254299dff87efeffd2f2c SHA512 70442d78b88dfb813a8e142f6ae46b0233bbb4c58b1e365d7281cbb989e222dd96bc27ceb52814ccb6b93c2e64c424dbf78988776d67d9f50977a209679908a1 +DIST swoole-6.2.1.tar.gz 2185631 BLAKE2B ea623ab9e94e2558071dd97d54a0550d23f43d195f7bc5f67c17fe8a96d3ea1331d51abbaec07a7e7124f9788a6e6428f5b91de6fb15f97357d424e461437362 SHA512 cc9a81fb8df4e2f3085abaf55c85052645383dd2a16908012af865fd2b9ab204d8a9d25e6f977e2ee903b2f8728e4248a25cb27a85afe7537fe0f004bbc739c9 diff --git a/dev-php/swoole/metadata.xml b/dev-php/swoole/metadata.xml new file mode 100644 index 000000000000..c21358dd088a --- /dev/null +++ b/dev-php/swoole/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP Project</name> + </maintainer> + <use> + <flag name="http2">Add support for HTTP/2 protocol via <pkg>net-libs/nghttp2</pkg> + </flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/swoole/swoole-6.2.0.ebuild b/dev-php/swoole/swoole-6.2.0.ebuild new file mode 100644 index 000000000000..f5bd7712d2a1 --- /dev/null +++ b/dev-php/swoole/swoole-6.2.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="swoole" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_EXT_S="${WORKDIR}/${PN}-src-${PV}" +PHP_EXT_SAPIS="cli" +PHP_EXT_NEEDED_USE="cli,sockets?" +# Supported PHP versions see https://github.com/swoole/swoole-src/blob/master/docs/SUPPORTED.md +USE_PHP="php8-2 php8-3 php8-4" + +inherit php-ext-source-r3 + +HOMEPAGE="https://www.swoole.co.uk" +SRC_URI="https://github.com/swoole/swoole-src/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DOCS=( README.md ) + +DESCRIPTION="Event-driven asynchronous & concurrent & coroutine networking engine" +LICENSE="Apache-2.0" +SLOT="0" + +DEPEND=" + app-arch/brotli:0= + dev-libs/libpcre + sys-libs/zlib:0= + ssl? ( + dev-libs/openssl:0= + + ) + mysql? ( + php_targets_php8-2? ( dev-lang/php:8.2[mysql,mysqli(+)] ) + php_targets_php8-3? ( dev-lang/php:8.3[mysql,mysqli(+)] ) + php_targets_php8-4? ( dev-lang/php:8.4[mysql,mysqli(+)] ) + ) +" + +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}-src-${PV}" +IUSE="debug http2 mysql sockets ssl" + +src_prepare() { + php-ext-source-r3_src_prepare +} + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-swoole + $(use_enable debug) + $(use_enable http2) + $(use_enable mysql mysqlnd) + $(use_enable ssl openssl) + $(use_with ssl openssl-dir "${EROOT}/usr") + $(use_enable sockets) + ) + php-ext-source-r3_src_configure +} + +src_install() { + php-ext-source-r3_src_compile +} + +src_install() { + php-ext-source-r3_src_install +} + +src_test() { + php-ext-source-r3_src_test +} diff --git a/dev-php/swoole/swoole-6.2.1.ebuild b/dev-php/swoole/swoole-6.2.1.ebuild new file mode 100644 index 000000000000..f5bd7712d2a1 --- /dev/null +++ b/dev-php/swoole/swoole-6.2.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PHP_EXT_NAME="swoole" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +PHP_EXT_S="${WORKDIR}/${PN}-src-${PV}" +PHP_EXT_SAPIS="cli" +PHP_EXT_NEEDED_USE="cli,sockets?" +# Supported PHP versions see https://github.com/swoole/swoole-src/blob/master/docs/SUPPORTED.md +USE_PHP="php8-2 php8-3 php8-4" + +inherit php-ext-source-r3 + +HOMEPAGE="https://www.swoole.co.uk" +SRC_URI="https://github.com/swoole/swoole-src/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +DOCS=( README.md ) + +DESCRIPTION="Event-driven asynchronous & concurrent & coroutine networking engine" +LICENSE="Apache-2.0" +SLOT="0" + +DEPEND=" + app-arch/brotli:0= + dev-libs/libpcre + sys-libs/zlib:0= + ssl? ( + dev-libs/openssl:0= + + ) + mysql? ( + php_targets_php8-2? ( dev-lang/php:8.2[mysql,mysqli(+)] ) + php_targets_php8-3? ( dev-lang/php:8.3[mysql,mysqli(+)] ) + php_targets_php8-4? ( dev-lang/php:8.4[mysql,mysqli(+)] ) + ) +" + +RDEPEND="${DEPEND}" +S="${WORKDIR}/${PN}-src-${PV}" +IUSE="debug http2 mysql sockets ssl" + +src_prepare() { + php-ext-source-r3_src_prepare +} + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-swoole + $(use_enable debug) + $(use_enable http2) + $(use_enable mysql mysqlnd) + $(use_enable ssl openssl) + $(use_with ssl openssl-dir "${EROOT}/usr") + $(use_enable sockets) + ) + php-ext-source-r3_src_configure +} + +src_install() { + php-ext-source-r3_src_compile +} + +src_install() { + php-ext-source-r3_src_install +} + +src_test() { + php-ext-source-r3_src_test +} diff --git a/dev-php/symfony-filesystem/Manifest b/dev-php/symfony-filesystem/Manifest new file mode 100644 index 000000000000..e601937bf01f --- /dev/null +++ b/dev-php/symfony-filesystem/Manifest @@ -0,0 +1 @@ +DIST symfony-filesystem-3.4.36.tar.gz 19282 BLAKE2B fd084715356b49588ff6a589372ab1958e3bd58b3af690b554ef1562553bf57504ca184fea06a3aa58ea12381773cebb57e11ba385be5c23ebce3f9e576413ec SHA512 2a43d22e64adfe50a1915f3833c70962f90a8da3cf7bb8b7bf30b1e0f17d6bd4857b35687207e019037d24ad71f46228ddd6eb46713117b82a92f94653cb2384 diff --git a/dev-php/symfony-filesystem/files/autoload.php b/dev-php/symfony-filesystem/files/autoload.php new file mode 100644 index 000000000000..8ea8655d904f --- /dev/null +++ b/dev-php/symfony-filesystem/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-filesystem and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Filesystem\\', __DIR__); diff --git a/dev-php/symfony-filesystem/metadata.xml b/dev-php/symfony-filesystem/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/symfony-filesystem/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/symfony-filesystem/symfony-filesystem-3.4.36.ebuild b/dev-php/symfony-filesystem/symfony-filesystem-3.4.36.ebuild new file mode 100644 index 000000000000..a944791b1c0d --- /dev/null +++ b/dev-php/symfony-filesystem/symfony-filesystem-3.4.36.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Symfony Filesystem Component" +HOMEPAGE="https://github.com/symfony/filesystem" +SRC_URI="https://github.com/symfony/filesystem/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND="test? ( ${RDEPEND} <dev-php/phpunit-6 )" + +S="${WORKDIR}/filesystem-${PV}" + +src_prepare() { + default + if use test; then + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die + fi +} + +src_install() { + insinto "/usr/share/php/Symfony/Component/Filesystem" + doins -r Exception + doins *.php "${FILESDIR}/autoload.php" + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" \ + --exclude-group network || die 'test suite failed' +} diff --git a/dev-php/symfony-finder/Manifest b/dev-php/symfony-finder/Manifest new file mode 100644 index 000000000000..2a5fdc859fb7 --- /dev/null +++ b/dev-php/symfony-finder/Manifest @@ -0,0 +1 @@ +DIST symfony-finder-3.4.38.tar.gz 25631 BLAKE2B e15224294373f35222ba5af10598339714892d637e7ee6e52ad6e0fd22802c3ea7fd9eda2e172ff0f73a3788afc640ff8093440ab71f1182d13783f96d5b70df SHA512 60987869275547b097ce8492164a443f4535d41d8b4453da3aadf96af536dd1ed6148fbb7100959e5ca7f560b2333359c9256e5d76a71e98aa6e3ccd808df051 diff --git a/dev-php/symfony-finder/files/autoload.php b/dev-php/symfony-finder/files/autoload.php new file mode 100644 index 000000000000..f08b7856a720 --- /dev/null +++ b/dev-php/symfony-finder/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-finder and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Finder\\', __DIR__); diff --git a/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch new file mode 100644 index 000000000000..d0ee130b4e76 --- /dev/null +++ b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch @@ -0,0 +1,24 @@ +There's one set of tests that tries to sort an array of files by their +access and modification times, and that doesn't work if your filesystem +is mounted with noatime (a lot of our users do that). + +This should probably be fixed upstream, and has been reported here: + + https://github.com/symfony/symfony/issues/17489 + +diff --git a/Tests/Iterator/SortableIteratorTest.php b/Tests/Iterator/SortableIteratorTest.php +index 4750f25..29d176a 100644 +--- a/Tests/Iterator/SortableIteratorTest.php ++++ b/Tests/Iterator/SortableIteratorTest.php +@@ -62,10 +62,7 @@ class SortableIteratorTest extends RealIteratorTestCase + || $mode === SortableIterator::SORT_BY_CHANGED_TIME + || $mode === SortableIterator::SORT_BY_MODIFIED_TIME + ) { +- if ('\\' === DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) { +- $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows'); +- } +- $this->assertOrderedIteratorForGroups($expected, $iterator); ++ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo'); + } else { + $this->assertOrderedIterator($expected, $iterator); + } diff --git a/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch new file mode 100644 index 000000000000..25729f89e1ef --- /dev/null +++ b/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch @@ -0,0 +1,20 @@ +There's one set of tests that tries to sort an array of files by their +access and modification times, and that doesn't work if your filesystem +is mounted with noatime (a lot of our users do that). + +This should probably be fixed upstream, and has been reported here: + +https://github.com/symfony/symfony/issues/17489 + +--- a/Tests/Iterator/SortableIteratorTest.php ++++ b/Tests/Iterator/SortableIteratorTest.php +@@ -65,7 +65,8 @@ class SortableIteratorTest extends RealIteratorTestCase + if ('\\' === \DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) { + $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows'); + } +- $this->assertOrderedIteratorForGroups($expected, $iterator); ++ // $this->assertOrderedIteratorForGroups($expected, $iterator); ++ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo'); + } else { + $this->assertOrderedIterator($expected, $iterator); + } diff --git a/dev-php/symfony-finder/metadata.xml b/dev-php/symfony-finder/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/symfony-finder/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/symfony-finder/symfony-finder-3.4.38.ebuild b/dev-php/symfony-finder/symfony-finder-3.4.38.ebuild new file mode 100644 index 000000000000..274ecb1b555c --- /dev/null +++ b/dev-php/symfony-finder/symfony-finder-3.4.38.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Symfony Finder Component" +HOMEPAGE="https://github.com/symfony/finder" +SRC_URI="https://github.com/symfony/finder/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND="test? ( ${RDEPEND} <dev-php/phpunit-6 )" + +S="${WORKDIR}/finder-${PV}" + +PATCHES=( "${FILESDIR}"/${PN}-3.4.28-skip-file-time-sort-tests.patch ) + +src_prepare() { + default + if use test; then + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die + fi +} + +src_install() { + insinto "/usr/share/php/Symfony/Component/Finder" + doins -r Comparator Exception Iterator + doins *.php "${FILESDIR}"/autoload.php + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed' +} diff --git a/dev-php/symfony-process/Manifest b/dev-php/symfony-process/Manifest new file mode 100644 index 000000000000..d40a06394425 --- /dev/null +++ b/dev-php/symfony-process/Manifest @@ -0,0 +1 @@ +DIST symfony-process-3.4.38.tar.gz 34424 BLAKE2B d990ba77e1d1e9b00e1b22381c9b3c454d94a8705ff7bd9830b59a32108f590efbb7e434e0f11421ccb143aa72d659d7211062c07c0cb36d18aae1f01e073b3a SHA512 14ff5f874904166978cb4021c87fde42611f05505498a8257089f97ae6f65051427c0f8e720a28b57e64de436818967676e35ddfc273e86b809ea0bf590662af diff --git a/dev-php/symfony-process/files/autoload.php b/dev-php/symfony-process/files/autoload.php new file mode 100644 index 000000000000..f0b5ceb02c9b --- /dev/null +++ b/dev-php/symfony-process/files/autoload.php @@ -0,0 +1,9 @@ +<?php +/* Autoloader for symfony-process and its dependencies */ + +$vendorDir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Process\\', __DIR__); diff --git a/dev-php/symfony-process/metadata.xml b/dev-php/symfony-process/metadata.xml new file mode 100644 index 000000000000..a973810129ee --- /dev/null +++ b/dev-php/symfony-process/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/symfony-process/symfony-process-3.4.38.ebuild b/dev-php/symfony-process/symfony-process-3.4.38.ebuild new file mode 100644 index 000000000000..2d25bb7245fa --- /dev/null +++ b/dev-php/symfony-process/symfony-process-3.4.38.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Symfony Process Component" +HOMEPAGE="https://github.com/symfony/process" +SRC_URI="https://github.com/symfony/process/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" +RESTRICT="test" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +S="${WORKDIR}/process-${PV}" + +src_prepare() { + default + if use test; then + cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die + fi +} + +src_install() { + insinto "/usr/share/php/Symfony/Component/Process" + doins -r Exception/ Pipes/ ExecutableFinder.php InputStream.php \ + LICENSE PhpExecutableFinder.php PhpProcess.php ProcessBuilder.php \ + Process.php ProcessUtils.php "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" +} diff --git a/dev-php/tcpdf/Manifest b/dev-php/tcpdf/Manifest new file mode 100644 index 000000000000..bcf56a5d4f2b --- /dev/null +++ b/dev-php/tcpdf/Manifest @@ -0,0 +1 @@ +DIST tcpdf-6.2.26.tar.gz 17004923 BLAKE2B bd99f036a808c0063d0cb48e59dab09f313d1dd19095d8131b38c161876f325736da73745a9e47d1ecc4b29b4e961db13761037cfa453d16127761c3518a9c96 SHA512 8ea2b1f2b3cfaa07a903cf286a63ab6b7e5e49881395f905e35740bcecf2ea8ffb1fd569d5dd4f6908918c8be1467be3051dff912416bc8ec80b8848068066be diff --git a/dev-php/tcpdf/metadata.xml b/dev-php/tcpdf/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/tcpdf/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/tcpdf/tcpdf-6.2.26.ebuild b/dev-php/tcpdf/tcpdf-6.2.26.ebuild new file mode 100644 index 000000000000..533692a50169 --- /dev/null +++ b/dev-php/tcpdf/tcpdf-6.2.26.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="TCPDF is a FLOSS PHP class for generating PDF documents" +HOMEPAGE="http://www.tcpdf.org/" +SRC_URI="https://github.com/tecnickcom/TCPDF/archive/${PV}.tar.gz + -> ${P}.tar.gz" +# Main source is LGPL-3+, some included fonts have other licenses +LICENSE="LGPL-3+ GPL-3 BitstreamVera GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND="dev-lang/php" + +S="${WORKDIR}/${P^^}" + +src_install() { + insinto /etc + doins config/tcpdf_config.php + # Create a symlink for the config file, because the library will only + # look for it in its own source tree (not in /etc where we've put it). + dosym ../../../../../etc/tcpdf_config.php "/usr/share/php/${PN}/config/tcpdf_config.php" + + exeinto "/usr/share/php/${PN}/tools" + doexe tools/tcpdf_addfont.php + + insinto "/usr/share/php/${PN}" + doins tcpdf*.php + doins -r include fonts + DOCS=( CHANGELOG.TXT README.md ) + + use examples && HTML_DOCS=( examples ) + einstalldocs +} diff --git a/dev-php/theseer-Autoload/Manifest b/dev-php/theseer-Autoload/Manifest new file mode 100644 index 000000000000..dba07755f512 --- /dev/null +++ b/dev-php/theseer-Autoload/Manifest @@ -0,0 +1 @@ +DIST theseer-Autoload-1.26.3.tar.gz 43810 BLAKE2B b2d7fe33b9663a3c324656abe63e4ae89533b773007362b546cb9401de0a8fd8f0c00f8f385c4a45c39be675d062cf5dd5a739972fc12611331065f244515d63 SHA512 00a6fbf86cc0f5958c5d0d049af0370ef510fe21a05d7dcbeb1b0771f979ea6638f5db74d913c56b10d9212a68b5d918cdfefec241b1383faf0e97b4305895bd diff --git a/dev-php/theseer-Autoload/files/autoload.php.tpl b/dev-php/theseer-Autoload/files/autoload.php.tpl new file mode 100644 index 000000000000..cb88eb77c450 --- /dev/null +++ b/dev-php/theseer-Autoload/files/autoload.php.tpl @@ -0,0 +1,26 @@ +<?php + +require_once 'TheSeer/DirectoryScanner/autoload.php'; +require_once 'ezc/Base/autoload.php'; +require_once 'ezc/ConsoleTools/autoload.php'; + +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +// this is an autogenerated file - do not edit +spl_autoload_register( + function($class) { + static $classes = null; + if ($classes === null) { + $classes = array( + ___CLASSLIST___ + ); + } + $cn = strtolower($class); + if (isset($classes[$cn])) { + require ___BASEDIR___$classes[$cn]; + } + }, + true, + false +); +// @codeCoverageIgnoreEnd diff --git a/dev-php/theseer-Autoload/files/fedora.php.tpl b/dev-php/theseer-Autoload/files/fedora.php.tpl new file mode 100644 index 000000000000..d05f27231892 --- /dev/null +++ b/dev-php/theseer-Autoload/files/fedora.php.tpl @@ -0,0 +1,12 @@ +<?php +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +require_once '/usr/share/php/Fedora/Autoloader'.'/autoload.php'; + +\Fedora\Autoloader\Autoload::addClassMap( + array( + ___CLASSLIST___, + ), + __DIR__ +); +// @codeCoverageIgnoreEnd diff --git a/dev-php/theseer-Autoload/files/fedora2.php.tpl b/dev-php/theseer-Autoload/files/fedora2.php.tpl new file mode 100644 index 000000000000..b337b9646b34 --- /dev/null +++ b/dev-php/theseer-Autoload/files/fedora2.php.tpl @@ -0,0 +1,12 @@ +<?php +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +require_once 'Fedora/Autoloader'.'/autoload.php'; + +\Fedora\Autoloader\Autoload::addClassMap( + array( + ___CLASSLIST___, + ), + __DIR__ +); +// @codeCoverageIgnoreEnd diff --git a/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch b/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch new file mode 100644 index 000000000000..d85409d47126 --- /dev/null +++ b/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch @@ -0,0 +1,12 @@ +--- a/composer/bin/phpab ++++ b/composer/bin/phpab +@@ -56,7 +56,7 @@ foreach ($files as $file) { + } + } + +-require __DIR__ . '/../../src/autoload.php'; ++require 'TheSeer/Autoload/autoload.php'; + + $factory = new \TheSeer\Autoload\Factory(); + $factory->getCLI()->run(); + diff --git a/dev-php/theseer-Autoload/metadata.xml b/dev-php/theseer-Autoload/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/theseer-Autoload/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild new file mode 100644 index 000000000000..4cb9011bfb66 --- /dev/null +++ b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="Autoload" + +DESCRIPTION="PHP Autoload Builder" +HOMEPAGE="https://github.com/theseer/Autoload" +SRC_URI="https://github.com/theseer/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 ~s390 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +CDEPEND="dev-lang/php:*[cli,fileinfo(-),tokenizer(-)] + >=dev-php/theseer-DirectoryScanner-1.3 + <dev-php/theseer-DirectoryScanner-2 + >=dev-php/zetacomponents-Base-1.8 + <dev-php/zetacomponents-Base-2 + >=dev-php/zetacomponents-ConsoleTools-1.7.1 + <dev-php/zetacomponents-ConsoleTools-2" + +BDEPEND="${CDEPEND} + test? ( + >=dev-php/phpunit-8 + <dev-php/phpunit-9 + )" + +RDEPEND="${CDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-1.26.0-autoload.php.patch ) + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + + # Set version + sed -i \ + -e "s/%development%/${PV}/" \ + phpab.php \ + composer/bin/phpab \ + || die + + cp --target-directory src/templates/ci \ + "${FILESDIR}"/fedora.php.tpl \ + "${FILESDIR}"/fedora2.php.tpl \ + || die + + # Mimick layout to bootstrap phpab + mkdir --parents \ + vendor/theseer/directoryscanner \ + vendor/zetacomponents/base \ + vendor/zetacomponents/console-tools \ + || die + + ln -s "${EPREFIX}"/usr/share/php/TheSeer/DirectoryScanner vendor/theseer/directoryscanner/src || die + ln -s "${EPREFIX}"/usr/share/php/ezc/Base vendor/zetacomponents/base/src || die + ln -s "${EPREFIX}"/usr/share/php/ezc/ConsoleTools vendor/zetacomponents/console-tools/src || die + + ./phpab.php \ + --output src/autoload.php \ + --template "${FILESDIR}"/autoload.php.tpl \ + --basedir src \ + src || die +} + +src_test() { + phpunit --no-coverage --verbose || die "Unit testing failed!" +} + +src_install() { + insinto /usr/share/php/TheSeer/${MY_PN} + doins -r src/* + + dobin "${S}"/composer/bin/phpab + + einstalldocs +} diff --git a/dev-php/theseer-DirectoryScanner/Manifest b/dev-php/theseer-DirectoryScanner/Manifest new file mode 100644 index 000000000000..d35162170a7e --- /dev/null +++ b/dev-php/theseer-DirectoryScanner/Manifest @@ -0,0 +1 @@ +DIST theseer-DirectoryScanner-1.3.3.tar.gz 9281 BLAKE2B a58cecc35ac96752cc09ef6cd0c6a607014e6b8317559803810089fab1d1d19f33369580bd90fbd328b3f106e3664e65da6750c7ad52c62f446497738a8e60b7 SHA512 260820a468f163641d2a249dab2b812ef3589cb251f4995681a9fc344b38a8aa1dfb7bf52bef702adc627ea39fd8a2bb4f2b18117edba83fe6a1db5e8f69efdd diff --git a/dev-php/theseer-DirectoryScanner/metadata.xml b/dev-php/theseer-DirectoryScanner/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/theseer-DirectoryScanner/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/theseer-DirectoryScanner/theseer-DirectoryScanner-1.3.3.ebuild b/dev-php/theseer-DirectoryScanner/theseer-DirectoryScanner-1.3.3.ebuild new file mode 100644 index 000000000000..9d3e99b84b29 --- /dev/null +++ b/dev-php/theseer-DirectoryScanner/theseer-DirectoryScanner-1.3.3.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="DirectoryScanner" + +DESCRIPTION="A recursive directory scanner and filter" +HOMEPAGE="https://github.com/theseer/DirectoryScanner" +SRC_URI="https://github.com/theseer/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_install() { + insinto /usr/share/php/TheSeer/${MY_PN} + doins -r src/* + + einstalldocs +} diff --git a/dev-php/theseer-tokenizer/Manifest b/dev-php/theseer-tokenizer/Manifest new file mode 100644 index 000000000000..691be6071574 --- /dev/null +++ b/dev-php/theseer-tokenizer/Manifest @@ -0,0 +1 @@ +DIST theseer-tokenizer-1.2.1.tar.gz 7537 BLAKE2B 204b39ca71cb6e99696c8bda19e5319e83302cd9fd4689343d3864ec81996d433ea8cfa2578abec2bef440271a1abe3169c3c871fd931c1ab73705cb7c36e4eb SHA512 7c7382f8f2e96984862d187fffb08b020cac8c0a0d93b58f9b1a244a46f8fcbfbe1c18d005acce8f8e1ef9aec2b9be99b7f2312e28f54a66f5a97ee263ed5239 diff --git a/dev-php/theseer-tokenizer/metadata.xml b/dev-php/theseer-tokenizer/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/theseer-tokenizer/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/theseer-tokenizer/theseer-tokenizer-1.2.1.ebuild b/dev-php/theseer-tokenizer/theseer-tokenizer-1.2.1.ebuild new file mode 100644 index 000000000000..5aef2c47af9b --- /dev/null +++ b/dev-php/theseer-tokenizer/theseer-tokenizer-1.2.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Convert tokenized PHP source code into XML and other formats" +HOMEPAGE="https://github.com/theseer/tokenizer" +SRC_URI="https://github.com/theseer/tokenizer/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +CDEPEND="dev-lang/php:* + dev-php/fedora-autoloader" + +BDEPEND="dev-php/theseer-Autoload" + +RDEPEND="${CDEPEND}" + +S="${WORKDIR}/tokenizer-${PV}" + +src_prepare() { + default + + phpab \ + --output src/autoload.php \ + --template fedora2 \ + --basedir src \ + src || die +} + +src_install() { + insinto /usr/share/php/TheSeer/Tokenizer + doins -r src/* + + einstalldocs +} diff --git a/dev-php/twig/Manifest b/dev-php/twig/Manifest new file mode 100644 index 000000000000..3ebb75db4aec --- /dev/null +++ b/dev-php/twig/Manifest @@ -0,0 +1 @@ +DIST twig-1.44.7.tar.gz 126915 BLAKE2B 2a88840cbea671dae367d39422d4b222e275236aab511fa8f5e4704093b53c3c8e5f335aac4930d84d43b05bcbe759993228de40d1aa2dd90e7b84ca8e5af7e6 SHA512 134d43f310f4277902ea06d632a7946de475ce1907cb33176f82cc49ffefc1c13b9d3f4cf76846c0084bb5a1636b001b6eb72d25e3770e118b7c1e4e4a30a373 diff --git a/dev-php/twig/files/Autoloader.php b/dev-php/twig/files/Autoloader.php new file mode 100644 index 000000000000..e4bef5471257 --- /dev/null +++ b/dev-php/twig/files/Autoloader.php @@ -0,0 +1,18 @@ +<?php +/* Autoloader for dev-php/twig */ + +if (!class_exists('Twig_Autoloader', false)) { + // polyfill for old code + class Twig_Autoloader { + public static function register(){} + public static function autoload(){} + } +} + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr0('Twig_', __DIR__.'/lib'); +\Fedora\Autoloader\Autoload::addPsr4('Twig\\', __DIR__.'/src'); + diff --git a/dev-php/twig/metadata.xml b/dev-php/twig/metadata.xml new file mode 100644 index 000000000000..60a87c621985 --- /dev/null +++ b/dev-php/twig/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:symfony:twig</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/twig/twig-1.44.7.ebuild b/dev-php/twig/twig-1.44.7.ebuild new file mode 100644 index 000000000000..01310215fa64 --- /dev/null +++ b/dev-php/twig/twig-1.44.7.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="Twig" +S="${WORKDIR}/${MY_PN}-${PV}" + +DESCRIPTION="PHP templating engine with syntax similar to Django" +HOMEPAGE="https://twig.symfony.com/" +SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND="dev-lang/php:*[ctype] dev-php/fedora-autoloader" +BDEPEND="test? ( dev-php/phpunit ${RDEPEND} )" +# Test fail due to missing Symphony dependencies +RESTRICT="test" + +src_install() { + # The autoloader requires the 'T' in "Twig" capitalized. + insinto "/usr/share/php/${MY_PN}/lib/${MY_PN}" + doins -r lib/"${MY_PN}"/* + insinto "/usr/share/php/${MY_PN}/src" + doins -r src/* + insinto "/usr/share/php/${MY_PN}" + doins "${FILESDIR}/Autoloader.php" + + dodoc README.rst CHANGELOG + + # This installs the reStructuredText source documents. There's got + # to be some way to turn them into HTML using Sphinx, but upstream + # doesn't provide for it. + use doc && dodoc -r doc +} + +src_test() { + cp "${FILESDIR}/Autoloader.php" "${S}" || die + phpunit --bootstrap Autoloader.php || die "test suite failed" + rm "${S}/Autoloader.php" || die +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${MY_PN}/." + elog "To use it in a script, require('${MY_PN}/Autoloader.php')" +} diff --git a/dev-php/webmozart-assert/Manifest b/dev-php/webmozart-assert/Manifest new file mode 100644 index 000000000000..c662b5a4b49a --- /dev/null +++ b/dev-php/webmozart-assert/Manifest @@ -0,0 +1 @@ +DIST webmozart-assert-1.10.0.tar.gz 17318 BLAKE2B e4ef61655deb639f22e40cf37a43820b7cebe455d5dc157f68ee9ab4720a0203233a744f6a2cc8ab8c755e9e017f478beb31cbb52de8df0e8f24da86de76b28f SHA512 e847da4f137f90da2016ea6935e479d7ea11d8944b2b9932cd0fea534f2d789c2a1c4ed7db3837a517f0074fb6ca58af9d45bc2aeb6d3bebc01f795a3be9811f diff --git a/dev-php/webmozart-assert/files/autoload.php b/dev-php/webmozart-assert/files/autoload.php new file mode 100644 index 000000000000..45ece0641b6b --- /dev/null +++ b/dev-php/webmozart-assert/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/webmozart-assert */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +Fedora\Autoloader\Autoload::addPsr4('Webmozart\\Assert\\', __DIR__); diff --git a/dev-php/webmozart-assert/metadata.xml b/dev-php/webmozart-assert/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/webmozart-assert/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/webmozart-assert/webmozart-assert-1.10.0.ebuild b/dev-php/webmozart-assert/webmozart-assert-1.10.0.ebuild new file mode 100644 index 000000000000..7da5807d9e85 --- /dev/null +++ b/dev-php/webmozart-assert/webmozart-assert-1.10.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PN="${PN/webmozart-//}" + +DESCRIPTION="Assertions to validate method input/output with nice error messages" +HOMEPAGE="https://github.com/webmozart/assert" +SRC_URI="https://github.com/webmozart/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc64 ~s390 ~sparc x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-5.6:*[ctype]" + +src_install() { + insinto /usr/share/php/Webmozart/Assert + doins -r src/* + doins "${FILESDIR}/autoload.php" +} diff --git a/dev-php/xdebug-client/Manifest b/dev-php/xdebug-client/Manifest new file mode 100644 index 000000000000..db1f1927391f --- /dev/null +++ b/dev-php/xdebug-client/Manifest @@ -0,0 +1 @@ +DIST xdebug-2.9.8.tar.gz 438295 BLAKE2B 8645052faceb354817ddb448f46af5b849507d31255b43ac59bcef4ece7837ef835ae2ad624ed8a95f8f98d552ef0e7195a4ade7df9176bc300d855a0156f405 SHA512 c431d51a0d9c5ac1c7fc529c2819db480cbfff6f65c35c3c0dbef4e78427aa28ede164f397f92c409e58e386a6be34ecd2ded0ee35e01df1cbf92a49fd2f2aab diff --git a/dev-php/xdebug-client/metadata.xml b/dev-php/xdebug-client/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/xdebug-client/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/xdebug-client/xdebug-client-2.9.8.ebuild b/dev-php/xdebug-client/xdebug-client-2.9.8.ebuild new file mode 100644 index 000000000000..17810acf25b6 --- /dev/null +++ b/dev-php/xdebug-client/xdebug-client-2.9.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +KEYWORDS="amd64 ~hppa ppc64 x86" + +MY_PN="xdebug" +MY_PV="${PV/_/}" +MY_PV="${MY_PV/rc/RC}" + +inherit autotools toolchain-funcs + +DESCRIPTION="Xdebug client for the Common Debugger Protocol (DBGP)" +HOMEPAGE="https://xdebug.org/" +# Using tarball from GitHub for tests +#SRC_URI="http://pecl.php.net/get/xdebug-${MY_PV}.tgz" +SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" +LICENSE="Xdebug" +SLOT="0" +IUSE="libedit" + +S="${WORKDIR}/${MY_PN}-${MY_PV}/debugclient" + +DEPEND="libedit? ( dev-libs/libedit ) net-libs/libnsl:0=" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + tc-export CC LD + econf $(use_with libedit) +} + +src_install() { + newbin debugclient xdebug +} diff --git a/dev-php/xdebug-handler/Manifest b/dev-php/xdebug-handler/Manifest new file mode 100644 index 000000000000..82770a0cd130 --- /dev/null +++ b/dev-php/xdebug-handler/Manifest @@ -0,0 +1 @@ +DIST xdebug-handler-2.0.1.tar.gz 14212 BLAKE2B 01200a86794145132a4c8d1b851a3131d73c23ca33d27fa9da26988f48a6c0df3552322f8fad0559ac00adf1605f35a65aa21591bc221d239ad2d8cbf4c303cd SHA512 6cc1d336a82f1edf6fb9dd317d0275c79754eb7a01fa34e0cc85c24b0a02363ccb2ff42e8b692d90077745f4db8409e7e66bef64f30a89b364eff71a4af7f4f1 diff --git a/dev-php/xdebug-handler/files/autoload.php b/dev-php/xdebug-handler/files/autoload.php new file mode 100644 index 000000000000..387e9d01ac7d --- /dev/null +++ b/dev-php/xdebug-handler/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for composer/ca-bundle and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Composer\\XdebugHandler\\', __DIR__); diff --git a/dev-php/xdebug-handler/metadata.xml b/dev-php/xdebug-handler/metadata.xml new file mode 100644 index 000000000000..f588e3d41f3e --- /dev/null +++ b/dev-php/xdebug-handler/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/xdebug-handler/xdebug-handler-2.0.1.ebuild b/dev-php/xdebug-handler/xdebug-handler-2.0.1.ebuild new file mode 100644 index 000000000000..5a3df841ee37 --- /dev/null +++ b/dev-php/xdebug-handler/xdebug-handler-2.0.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Restart a CLI process without loading the xdebug extension" +HOMEPAGE="https://github.com/composer/xdebug-handler" +SRC_URI="https://github.com/composer/xdebug-handler/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader + >=dev-php/psr-log-1.0.2" + +src_install() { + insinto /usr/share/php/Composer/XdebugHandler + doins src/*.php "${FILESDIR}/autoload.php" + dodoc README.md +} diff --git a/dev-php/xdebug/Manifest b/dev-php/xdebug/Manifest new file mode 100644 index 000000000000..7714202692ca --- /dev/null +++ b/dev-php/xdebug/Manifest @@ -0,0 +1,2 @@ +DIST xdebug-3.2.1.tar.gz 450198 BLAKE2B 046120555bc6ff5b15380618c8126387eec213036299dfaefd2d8bca77c625c064dec938f56d665aae479c7fd76a9fdcc0304695f8ec44534d0a5265d9073159 SHA512 c7246e8cf7dc22b9c21ec1586fc5393817b1b5eefff9339652846340a6cc57fa72adb6c9229a87ac9849e8f5762aafbf140d99d0978950e93562e228d9da5a6b +DIST xdebug-3.5.0.tar.gz 521365 BLAKE2B d22996dc20dbffc636b927dd12f2e54c157b31f87d4967c3bcd082d049db1f23970af73a37775ced11772fcc5bcd74f0f446bcb8694497971ff6c4aed55288e0 SHA512 a7264404d66baff7d830c0aecb0d2d699e1fdf204850c63944292837b339176f4bdd3958d18acdb949366d029294fcf802a7619297a87b4171179ba5845301c7 diff --git a/dev-php/xdebug/files/3.0-xdebug.ini b/dev-php/xdebug/files/3.0-xdebug.ini new file mode 100644 index 000000000000..ed95a1214d97 --- /dev/null +++ b/dev-php/xdebug/files/3.0-xdebug.ini @@ -0,0 +1,41 @@ +;xdebug.cli_color = 0 +;xdebug.client_discovery_header = +;xdebug.client_host = localhost +;xdebug.client_port = 9003 +;xdebug.collect_params = 0 +;xdebug.collect_return = 0 +;xdebug.connect_timeout_ms = 200 +;xdebug.discover_client_host = 0 +;xdebug.dump.* = Empty +;xdebug.dump_globals = 1 +;xdebug.dump_once = 1 +;xdebug.dump_undefined = 0 +;xdebug.file_link_format = +;xdebug.filename_format = ...%s%n +;xdebug.force_display_errors = 0 +;xdebug.force_error_reporting = 0 +;xdebug.gc_stats_output_name = gcstats.%p +;xdebug.halt_level = 0 +;xdebug.idekey = *complex* +;xdebug.log = +;xdebug.log_level = 7 +;xdebug.max_nesting_level = 256 +;xdebug.max_stack_frames = -1 +xdebug.mode=off +;xdebug.output_dir = /tmp +;xdebug.profiler_append = 0 +;xdebug.profiler_output_name = cachegrind.out.%p +;xdebug.scream = 0 +;xdebug.show_error_trace = 0 +;xdebug.show_exception_trace = 0 +;xdebug.show_local_vars = 0 +;xdebug.start_upon_error = default +;xdebug.start_with_request = default +;xdebug.trace_format = 0 +;xdebug.trace_options = 0 +;xdebug.trace_output_dir = /tmp +;xdebug.trace_output_name = trace.%c +;xdebug.trigger_value = "" +;xdebug.var_display_max_children = 128 +;xdebug.var_display_max_data = 512 +;xdebug.var_display_max_depth = 3 diff --git a/dev-php/xdebug/metadata.xml b/dev-php/xdebug/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/xdebug/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/xdebug/xdebug-3.2.1.ebuild b/dev-php/xdebug/xdebug-3.2.1.ebuild new file mode 100644 index 000000000000..375151cc0b2c --- /dev/null +++ b/dev-php/xdebug/xdebug-3.2.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PHP_EXT_NAME="xdebug" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="yes" +PHP_EXT_INIFILE="3.0-xdebug.ini" + +USE_PHP="php8-2" +PHP_EXT_NEEDED_USE="-threads(-)" + +MY_PV="${PV/_/}" +MY_PV="${MY_PV/rc/RC}" + +S="${WORKDIR}/${PN}-${MY_PV}" + +inherit php-ext-source-r3 + +KEYWORDS="amd64 ~hppa ppc64 x86" + +DESCRIPTION="A PHP debugging and profiling extension" +HOMEPAGE="https://xdebug.org/" +# Using tarball from GitHub for tests +#SRC_URI="https://pecl.php.net/get/${PN}-${MY_PV}.tgz" +SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Xdebug" +SLOT="0" +IUSE="" + +# Tests are known to fail +RESTRICT="test" + +DEPEND="" +RDEPEND="${DEPEND}" +DOCS=( README.rst CREDITS ) +PHP_EXT_ECONF_ARGS=() + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + TEST_PHP_EXECUTABLE="${PHPCLI}" \ + TEST_PHP_CGI_EXECUTABLE="${PHPCGI}" \ + TEST_PHPDBG_EXECUTABLE="${PHPCLI}dbg" \ + "${PHPCLI}" run-xdebug-tests.php + done +} + +pkg_postinst() { + ewarn "We have set xdebug.mode to off, as xdebug can be" + ewarn "installed as a dependency, and not all users will want xdebug to be" + ewarn "enabled by default. If you want to enable it, you should edit the" + ewarn "ini file and set xdebug.mode to one or more modes e.g. develop,debug,trace" + elog "" + elog "The 3.0 major release changes many options." + elog "Review https://xdebug.org/docs/upgrade_guide for differences from 2.x" +} diff --git a/dev-php/xdebug/xdebug-3.5.0.ebuild b/dev-php/xdebug/xdebug-3.5.0.ebuild new file mode 100644 index 000000000000..37ffde476212 --- /dev/null +++ b/dev-php/xdebug/xdebug-3.5.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PHP_EXT_NAME="xdebug" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="yes" +PHP_EXT_INIFILE="3.0-xdebug.ini" + +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +MY_PV="${PV/_/}" +MY_PV="${MY_PV/rc/RC}" + +inherit php-ext-source-r3 + +DESCRIPTION="A PHP debugging and profiling extension" +HOMEPAGE="https://xdebug.org/" +# Using tarball from GitHub for tests +SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" +LICENSE="Xdebug" +SLOT="0" + +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND="${DEPEND}" +BDEPEND="test? ( dev-lang/php:*[cgi,phpdbg] )" +DOCS=( README.rst CREDITS ) +PHP_EXT_ECONF_ARGS=() + +src_test() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env "${slot}" + TEST_PHP_EXECUTABLE="${PHPCLI}" \ + TEST_PHP_CGI_EXECUTABLE="${PHPCGI}" \ + TEST_PHPDBG_EXECUTABLE="${PHPCLI}dbg" \ + TEST_PHP_ARGS="-n -d foo=yes -d session.save_path=/tmp -d zend_extension=${PHP_EXT_S}/modules/xdebug.so" \ + "${PHPCLI}" run-xdebug-tests.php -q -x -j4 --show-diff || die + done +} + +pkg_postinst() { + ewarn "We have set xdebug.mode to off, as xdebug can be" + ewarn "installed as a dependency, and not all users will want xdebug to be" + ewarn "enabled by default. If you want to enable it, you should edit the" + ewarn "ini file and set xdebug.mode to one or more modes e.g. develop,debug,trace" +} diff --git a/dev-php/xhprof/Manifest b/dev-php/xhprof/Manifest new file mode 100644 index 000000000000..56ad039e3032 --- /dev/null +++ b/dev-php/xhprof/Manifest @@ -0,0 +1,2 @@ +DIST xhprof-2.3.10.tgz 843156 BLAKE2B 35100d288f11744e716ea9c04e0bd83c762572231a97c8a9aa2409be084dbe59a56368dd4268d985850193c652909ef0e16c4025b93cc2b34935988ce14e37f3 SHA512 fcd96013222cfde9a5a26e818effc35fdc686e1aeec5040964af7672700938b1e6090b84090234ef05b7ae4deb9fa2869eb53ae5d7c6666fcb1c6e0b484a7a9c +DIST xhprof-2.3.9.tgz 843027 BLAKE2B be7c36d7b30f1efd1e3fb4d67f1d9ee8e23bb0e28f6bf9b8c00ee61154e753505e0935acf75c61d0806222a14d3203a4be1c0b4ef6b00f7d15aa9d35d99e410f SHA512 38a2609d961d908c6a4b5d1ff2085ffdad4a5f7d277705c826ae19e215660802528d606c5ee052f2e65255a7a85b2a9cb9038f4785c730ec468fc76dc7bcf5de diff --git a/dev-php/xhprof/metadata.xml b/dev-php/xhprof/metadata.xml new file mode 100644 index 000000000000..7ee69925d9aa --- /dev/null +++ b/dev-php/xhprof/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/xhprof/xhprof-2.3.10.ebuild b/dev-php/xhprof/xhprof-2.3.10.ebuild new file mode 100644 index 000000000000..88d89a911818 --- /dev/null +++ b/dev-php/xhprof/xhprof-2.3.10.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_S="${S}/extension" +PHP_EXT_ECONF_ARGS="" +USE_PHP="php8-2 php8-3 php8-4 php8-5" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A Hierarchical Profiler for PHP" +HOMEPAGE="https://pecl.php.net/package/xhprof" +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/xhprof/xhprof-2.3.9.ebuild b/dev-php/xhprof/xhprof-2.3.9.ebuild new file mode 100644 index 000000000000..ed8a12519327 --- /dev/null +++ b/dev-php/xhprof/xhprof-2.3.9.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PHP_EXT_S="${S}/extension" +PHP_EXT_ECONF_ARGS="" +USE_PHP="php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="A Hierarchical Profiler for PHP" +HOMEPAGE="https://pecl.php.net/package/xhprof" +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" diff --git a/dev-php/zetacomponents-Base/Manifest b/dev-php/zetacomponents-Base/Manifest new file mode 100644 index 000000000000..0f6a823ddc30 --- /dev/null +++ b/dev-php/zetacomponents-Base/Manifest @@ -0,0 +1 @@ +DIST zetacomponents-Base-1.9.3.tar.gz 253144 BLAKE2B 5e8e5188e67d06da2a4ed0d9cd1df86d15740390109f98028a71cf0aa0cbfaab1a47007095faf7ba8c7fd9b6bb3daae7b3d6fae76cae8b82751b3d67b3680614 SHA512 5718095cbfe657c08b9adf71e4cada49e2edf8518601e235070ac8fb8fc5793bc4ba8a0cb1a4202210fc23884960d06f502288a94cd624c96a53e2fcf395d492 diff --git a/dev-php/zetacomponents-Base/files/autoload.php b/dev-php/zetacomponents-Base/files/autoload.php new file mode 100644 index 000000000000..17bec81a6d2e --- /dev/null +++ b/dev-php/zetacomponents-Base/files/autoload.php @@ -0,0 +1,53 @@ +<?php +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +// this is an autogenerated file - do not edit +spl_autoload_register( + function($class) { + static $classes = null; + if ($classes === null) { + $classes = array( + 'ezcbase' => '/base.php', + 'ezcbaseautoloadexception' => '/exceptions/autoload.php', + 'ezcbaseautoloadoptions' => '/options/autoload.php', + 'ezcbaseconfigurationinitializer' => '/interfaces/configuration_initializer.php', + 'ezcbasedoubleclassrepositoryprefixexception' => '/exceptions/double_class_repository_prefix.php', + 'ezcbaseexception' => '/exceptions/exception.php', + 'ezcbaseexportable' => '/interfaces/exportable.php', + 'ezcbaseextensionnotfoundexception' => '/exceptions/extension_not_found.php', + 'ezcbasefeatures' => '/features.php', + 'ezcbasefile' => '/file.php', + 'ezcbasefileexception' => '/exceptions/file_exception.php', + 'ezcbasefilefindcontext' => '/structs/file_find_context.php', + 'ezcbasefileioexception' => '/exceptions/file_io.php', + 'ezcbasefilenotfoundexception' => '/exceptions/file_not_found.php', + 'ezcbasefilepermissionexception' => '/exceptions/file_permission.php', + 'ezcbasefunctionalitynotsupportedexception' => '/exceptions/functionality_not_supported.php', + 'ezcbaseinit' => '/init.php', + 'ezcbaseinitcallbackconfiguredexception' => '/exceptions/init_callback_configured.php', + 'ezcbaseinitinvalidcallbackclassexception' => '/exceptions/invalid_callback_class.php', + 'ezcbaseinvalidparentclassexception' => '/exceptions/invalid_parent_class.php', + 'ezcbasemetadata' => '/metadata.php', + 'ezcbasemetadatapearreader' => '/metadata/pear.php', + 'ezcbasemetadatatarballreader' => '/metadata/tarball.php', + 'ezcbaseoptions' => '/options.php', + 'ezcbasepersistable' => '/interfaces/persistable.php', + 'ezcbasepropertynotfoundexception' => '/exceptions/property_not_found.php', + 'ezcbasepropertypermissionexception' => '/exceptions/property_permission.php', + 'ezcbaserepositorydirectory' => '/structs/repository_directory.php', + 'ezcbasesettingnotfoundexception' => '/exceptions/setting_not_found.php', + 'ezcbasesettingvalueexception' => '/exceptions/setting_value.php', + 'ezcbasestruct' => '/struct.php', + 'ezcbasevalueexception' => '/exceptions/value.php', + 'ezcbasewhateverexception' => '/exceptions/whatever.php' + ); + } + $cn = strtolower($class); + if (isset($classes[$cn])) { + require __DIR__ . $classes[$cn]; + } + }, + true, + false +); +// @codeCoverageIgnoreEnd diff --git a/dev-php/zetacomponents-Base/metadata.xml b/dev-php/zetacomponents-Base/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/zetacomponents-Base/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.3.ebuild b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.3.ebuild new file mode 100644 index 000000000000..c300ca3fcca3 --- /dev/null +++ b/dev-php/zetacomponents-Base/zetacomponents-Base-1.9.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="Base" + +DESCRIPTION="Base package for any Zeta component" +HOMEPAGE="https://github.com/zetacomponents/Base" +SRC_URI="https://github.com/zetacomponents/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_install() { + insinto /usr/share/php/ezc/${MY_PN} + doins -r src/* + doins "${FILESDIR}"/autoload.php + + einstalldocs +} diff --git a/dev-php/zetacomponents-ConsoleTools/Manifest b/dev-php/zetacomponents-ConsoleTools/Manifest new file mode 100644 index 000000000000..d3ad8f4bf6f4 --- /dev/null +++ b/dev-php/zetacomponents-ConsoleTools/Manifest @@ -0,0 +1 @@ +DIST zetacomponents-ConsoleTools-1.7.2.tar.gz 932028 BLAKE2B 18469bb11af5f4facf7892df765c9511c699c2f362872da7db13dee3a380286a306809c90f28ad4bc4cfcfa99135e7d35b659a242f507afb91b84fee17d16f4a SHA512 871c9a6827c3cc77275b538dc09d21135affe1f06364e83a7a27b7a9eff4537b509e72fffe3d5f6b1ebb0086d489df2b29af276bdbc0276f163b1f9168f82253 diff --git a/dev-php/zetacomponents-ConsoleTools/files/autoload.php b/dev-php/zetacomponents-ConsoleTools/files/autoload.php new file mode 100644 index 000000000000..b2139b5f618b --- /dev/null +++ b/dev-php/zetacomponents-ConsoleTools/files/autoload.php @@ -0,0 +1,82 @@ +<?php +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +// this is an autogenerated file - do not edit +spl_autoload_register( + function($class) { + static $classes = null; + if ($classes === null) { + $classes = array( + 'ezcconsoleargument' => '/input/argument.php', + 'ezcconsoleargumentalreadyregisteredexception' => '/exceptions/argument_already_registered.php', + 'ezcconsoleargumentexception' => '/exceptions/argument.php', + 'ezcconsoleargumentmandatoryviolationexception' => '/exceptions/argument_mandatory_violation.php', + 'ezcconsolearguments' => '/input/arguments.php', + 'ezcconsoleargumenttypeviolationexception' => '/exceptions/argument_type_violation.php', + 'ezcconsoledialog' => '/interfaces/dialog.php', + 'ezcconsoledialogabortexception' => '/exceptions/dialog_abort.php', + 'ezcconsoledialogoptions' => '/options/dialog.php', + 'ezcconsoledialogvalidator' => '/interfaces/dialog_validator.php', + 'ezcconsoledialogviewer' => '/dialog_viewer.php', + 'ezcconsoleexception' => '/exceptions/exception.php', + 'ezcconsoleinput' => '/input.php', + 'ezcconsoleinputhelpgenerator' => '/interfaces/input_help_generator.php', + 'ezcconsoleinputstandardhelpgenerator' => '/input/help_generators/standard.php', + 'ezcconsoleinputvalidator' => '/interfaces/input_validator.php', + 'ezcconsoleinvalidoptionnameexception' => '/exceptions/invalid_option_name.php', + 'ezcconsoleinvalidoutputtargetexception' => '/exceptions/invalid_output_target.php', + 'ezcconsolemenudialog' => '/dialog/menu_dialog.php', + 'ezcconsolemenudialogdefaultvalidator' => '/dialog/validators/menu_dialog_default.php', + 'ezcconsolemenudialogoptions' => '/options/menu_dialog.php', + 'ezcconsolemenudialogvalidator' => '/interfaces/menu_dialog_validator.php', + 'ezcconsolenopositionstoredexception' => '/exceptions/no_position_stored.php', + 'ezcconsolenovaliddialogresultexception' => '/exceptions/no_valid_dialog_result.php', + 'ezcconsoleoption' => '/input/option.php', + 'ezcconsoleoptionalreadyregisteredexception' => '/exceptions/option_already_registered.php', + 'ezcconsoleoptionargumentsviolationexception' => '/exceptions/option_arguments_violation.php', + 'ezcconsoleoptiondependencyviolationexception' => '/exceptions/option_dependency_violation.php', + 'ezcconsoleoptionexception' => '/exceptions/option.php', + 'ezcconsoleoptionexclusionviolationexception' => '/exceptions/option_exclusion_violation.php', + 'ezcconsoleoptionmandatoryviolationexception' => '/exceptions/option_mandatory_violation.php', + 'ezcconsoleoptionmissingvalueexception' => '/exceptions/option_missing_value.php', + 'ezcconsoleoptionnoaliasexception' => '/exceptions/option_no_alias.php', + 'ezcconsoleoptionnotexistsexception' => '/exceptions/option_not_exists.php', + 'ezcconsoleoptionrule' => '/structs/option_rule.php', + 'ezcconsoleoptionstringnotwellformedexception' => '/exceptions/option_string_not_wellformed.php', + 'ezcconsoleoptiontoomanyvaluesexception' => '/exceptions/option_too_many_values.php', + 'ezcconsoleoptiontypeviolationexception' => '/exceptions/option_type_violation.php', + 'ezcconsoleoutput' => '/output.php', + 'ezcconsoleoutputformat' => '/structs/output_format.php', + 'ezcconsoleoutputformats' => '/structs/output_formats.php', + 'ezcconsoleoutputoptions' => '/options/output.php', + 'ezcconsoleprogressbar' => '/progressbar.php', + 'ezcconsoleprogressbaroptions' => '/options/progressbar.php', + 'ezcconsoleprogressmonitor' => '/progressmonitor.php', + 'ezcconsoleprogressmonitoroptions' => '/options/progressmonitor.php', + 'ezcconsolequestiondialog' => '/dialog/question_dialog.php', + 'ezcconsolequestiondialogcollectionvalidator' => '/dialog/validators/question_dialog_collection.php', + 'ezcconsolequestiondialogmappingvalidator' => '/dialog/validators/question_dialog_mapping.php', + 'ezcconsolequestiondialogoptions' => '/options/question_dialog.php', + 'ezcconsolequestiondialogregexvalidator' => '/dialog/validators/question_dialog_regex.php', + 'ezcconsolequestiondialogtypevalidator' => '/dialog/validators/question_dialog_type.php', + 'ezcconsolequestiondialogvalidator' => '/interfaces/question_dialog_validator.php', + 'ezcconsolestandardinputvalidator' => '/input/validators/standard.php', + 'ezcconsolestatusbar' => '/statusbar.php', + 'ezcconsolestatusbaroptions' => '/options/statusbar.php', + 'ezcconsolestringtool' => '/tools/string.php', + 'ezcconsoletable' => '/table.php', + 'ezcconsoletablecell' => '/table/cell.php', + 'ezcconsoletableoptions' => '/options/table.php', + 'ezcconsoletablerow' => '/table/row.php', + 'ezcconsoletoomanyargumentsexception' => '/exceptions/argument_too_many.php' + ); + } + $cn = strtolower($class); + if (isset($classes[$cn])) { + require __DIR__ . $classes[$cn]; + } + }, + true, + false +); +// @codeCoverageIgnoreEnd diff --git a/dev-php/zetacomponents-ConsoleTools/metadata.xml b/dev-php/zetacomponents-ConsoleTools/metadata.xml new file mode 100644 index 000000000000..ee884b080645 --- /dev/null +++ b/dev-php/zetacomponents-ConsoleTools/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-php/zetacomponents-ConsoleTools/zetacomponents-ConsoleTools-1.7.2-r1.ebuild b/dev-php/zetacomponents-ConsoleTools/zetacomponents-ConsoleTools-1.7.2-r1.ebuild new file mode 100644 index 000000000000..17598a898760 --- /dev/null +++ b/dev-php/zetacomponents-ConsoleTools/zetacomponents-ConsoleTools-1.7.2-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="ConsoleTools" + +DESCRIPTION="A set of classes to do different actions with the console" +HOMEPAGE="https://github.com/zetacomponents/ConsoleTools" +SRC_URI="https://github.com/zetacomponents/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 ~s390 ~sparc x86" + +RDEPEND="dev-lang/php:*[iconv(-)]" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_install() { + insinto /usr/share/php/ezc/${MY_PN} + doins -r src/* + doins "${FILESDIR}"/autoload.php + + einstalldocs +} |
