commit:     2623ec73cbe7bedd5289d2a3b722fded2c36c21f
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Apr  7 20:28:20 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Apr  7 20:28:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2623ec73

www-apps/freshrss: add patch to disable network tests

Closes: https://bugs.gentoo.org/928082
Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 .../freshrss/files/disable-network-tests.patch     | 31 ++++++++++++++++++++++
 www-apps/freshrss/freshrss-1.23.1.ebuild           |  4 +++
 2 files changed, 35 insertions(+)

diff --git a/www-apps/freshrss/files/disable-network-tests.patch 
b/www-apps/freshrss/files/disable-network-tests.patch
new file mode 100644
index 0000000000..c708cbda27
--- /dev/null
+++ b/www-apps/freshrss/files/disable-network-tests.patch
@@ -0,0 +1,31 @@
+diff --git a/Makefile b/Makefile
+index 1759c7d7..3a450b5b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -69,10 +69,6 @@ lint: vendor/bin/phpcs ## Run the linter on the PHP files
+ lint-fix: vendor/bin/phpcbf ## Fix the errors detected by the linter
+       $(PHP) vendor/bin/phpcbf . -p -s
+ 
+-bin/composer:
+-      mkdir -p bin/
+-      wget 
'https://raw.githubusercontent.com/composer/getcomposer.org/a19025d6c0a1ff9fc1fac341128b2823193be462/web/installer'
 -O - -q | php -- --quiet --install-dir='./bin/' --filename='composer'
+-
+ vendor/bin/phpunit: bin/composer
+       bin/composer install --prefer-dist --no-progress
+       ln -s ../vendor/bin/phpunit bin/phpunit
+@@ -85,15 +81,6 @@ vendor/bin/phpcbf: bin/composer
+       bin/composer install --prefer-dist --no-progress
+       ln -s ../vendor/bin/phpcbf bin/phpcbf
+ 
+-bin/typos:
+-      mkdir -p bin/
+-      cd bin ; \
+-      wget -q 
'https://github.com/crate-ci/typos/releases/download/v1.16.21/typos-v1.16.21-x86_64-unknown-linux-musl.tar.gz'
 && \
+-      tar -xvf *.tar.gz './typos' && \
+-      chmod +x typos && \
+-      rm *.tar.gz ; \
+-      cd ..
+-
+ node_modules/.bin/eslint:
+       npm install
+ 

diff --git a/www-apps/freshrss/freshrss-1.23.1.ebuild 
b/www-apps/freshrss/freshrss-1.23.1.ebuild
index e599f8e58c..0aff7597da 100644
--- a/www-apps/freshrss/freshrss-1.23.1.ebuild
+++ b/www-apps/freshrss/freshrss-1.23.1.ebuild
@@ -26,6 +26,10 @@ DEPEND="${RDEPEND}"
 
 need_httpd_fastcgi
 
+PATCHES=(
+       "${FILESDIR}"/disable-network-tests.patch
+)
+
 src_compile() {
        :
 }

Reply via email to