commit:     cdd2154bb9402250ad8f1624972a7033810de649
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun May 25 21:28:01 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun May 25 21:39:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdd2154b

www-apps/tt-rss: Bump snapshot to 20250414 with MySQL migration warning

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-apps/tt-rss/Manifest                           |  1 +
 ...-rss-99999999.ebuild => tt-rss-20250414.ebuild} | 71 +++++++++++-----------
 www-apps/tt-rss/tt-rss-99999999.ebuild             |  4 +-
 3 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
index bce6907b48bd..044502ecbc0f 100644
--- a/www-apps/tt-rss/Manifest
+++ b/www-apps/tt-rss/Manifest
@@ -1 +1,2 @@
 DIST tt-rss-20241001.tar.xz 5436596 BLAKE2B 
0f913496d93c702eaf3d33b2bfe2ec623d7a215457296399483927ba4bd8cf0dc44915bbc950b0635d452e67373d0a365736d7916141eb6d2cccb2487900d02d
 SHA512 
fba5f5d18b855a299450d9659cd52d3c8d48995ab25778ae92ee8a5711a8afa5bf42cf21360fcd189664d3cd1ab12032bb67e688201b57e989bff1003cbea2ca
+DIST tt-rss-20250414.tar.xz 5466944 BLAKE2B 
62857a0244c406e9540bb56105a006cf8768223b02aeb35b0d01d0eb21f5cf6826c82f3ccc700d12a5c01b7d6b463a28f86cec3921be89171c082088aed4c7df
 SHA512 
d924d59ff57b00c21cfd6f32e17023a29b4659991cd9c136f7b6a290e2116a14f431c8fe7d939e6197329397e8f26f68bb498a6323ba82b0d75f9b8e86b849f3

diff --git a/www-apps/tt-rss/tt-rss-99999999.ebuild 
b/www-apps/tt-rss/tt-rss-20250414.ebuild
similarity index 59%
copy from www-apps/tt-rss/tt-rss-99999999.ebuild
copy to www-apps/tt-rss/tt-rss-20250414.ebuild
index 70c2c4a3e487..126d04482208 100644
--- a/www-apps/tt-rss/tt-rss-99999999.ebuild
+++ b/www-apps/tt-rss/tt-rss-20250414.ebuild
@@ -18,10 +18,11 @@ fi
 DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using 
AJAX"
 HOMEPAGE="https://tt-rss.org/";
 LICENSE="GPL-3"
-IUSE="+acl daemon gd"
+IUSE="+acl daemon gd +mysqli postgres"
+REQUIRED_USE="|| ( mysqli postgres )"
 
-PHP_SLOTS="8.4 8.3 8.2" # Check with: grep PHP_VERSION classes/Config.php
-PHP_USE="gd?,postgres,ctype,curl,fileinfo,filter,intl,pdo,tokenizer,unicode,xml"
+PHP_SLOTS="8.3 8.2" # Check with: grep PHP_VERSION classes/Config.php
+PHP_USE="gd?,mysqli?,postgres?,curl,fileinfo,intl,json(+),pdo,unicode,xml"
 
 php_rdepend() {
        local slot
@@ -57,39 +58,9 @@ DEPEND="
 
 need_httpd_cgi # From webapp.eclass
 
-pkg_pretend() {
-       if has_version www-apps/tt-rss[mysqli]; then
-               ewarn
-               ewarn "You are currently using tt-rss with mysql backend."
-               ewarn
-               ewarn "THIS IS NOT SUPPORTED ANYMORE."
-               ewarn
-               ewarn "Since 2025-04-14 tt-rss has dropped support for MySQL."
-               ewarn
-               ewarn "To upgrade, you need to migrate to PostgreSQL first."
-               ewarn
-               ewarn "Migrating between different tt-rss versions might work 
but is not recommended."
-               ewarn "It's recommended to switch to =www-apps/tt-rss-20250414 
for migration."
-               ewarn
-               ewarn "Export/Import articles could be done with an official 
plugin:"
-               ewarn "ttrss-data-migration"
-               ewarn "For plugin installation and export/import, see:"
-               ewarn 
"https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-data-migration";
-               ewarn
-               ewarn "Example of migration steps:"
-               ewarn "0. Setup PostgreSQL (dev-db/postgresql)"
-               ewarn "1. Backup !"
-               ewarn "2. Export settings/feeds (OPML)"
-               ewarn "3. Export articles (JSON) via ttrss-data-migration"
-               ewarn "4. Migrate to PostgreSQL backend changing USE flag 
mysqli to postgres"
-               ewarn "5. Emerge www-apps/tt-rss with new USE flag"
-               ewarn "6. Setup fresh install of tt-rss with PostgreSQL backend"
-               ewarn "7. Import settings/feeds (OPML)"
-               ewarn "8. Import articles"
-               ewarn
-               die "MySQL backend not supported anymore"
-       fi
-}
+PATCHES=(
+       "${FILESDIR}"/${PN}-no-chmod.patch
+)
 
 src_install() {
        webapp_src_preinst
@@ -133,4 +104,32 @@ pkg_postinst() {
        fi
 
        webapp_pkg_postinst
+
+       if use mysqli; then
+               elog
+               elog "You are currently using tt-rss with the mysql backend."
+               elog
+               elog "THIS IS NOT SUPPORTED BEYOND THIS VERSION."
+               elog
+               elog "Since 2025-04-14, tt-rss has dropped support for MySQL."
+               elog
+               elog "To upgrade, you need to migrate to PostgreSQL using this 
version first."
+               elog
+               elog "Export/Import articles could be done with an official 
plugin:"
+               elog "ttrss-data-migration"
+               elog "For plugin installation and export/import, see:"
+               elog 
"https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-data-migration";
+               elog
+               elog "Example of migration steps:"
+               elog "0. Setup PostgreSQL (dev-db/postgresql)"
+               elog "1. Backup !"
+               elog "2. Export settings/feeds (OPML)"
+               elog "3. Export articles (JSON) via ttrss-data-migration"
+               elog "4. Migrate to PostgreSQL backend changing USE flag mysqli 
to postgres"
+               elog "5. Emerge www-apps/tt-rss with new USE flag"
+               elog "6. Setup fresh install of tt-rss with PostgreSQL backend"
+               elog "7. Import settings/feeds (OPML)"
+               elog "8. Import articles"
+               elog
+       fi
 }

diff --git a/www-apps/tt-rss/tt-rss-99999999.ebuild 
b/www-apps/tt-rss/tt-rss-99999999.ebuild
index 70c2c4a3e487..4733eed2b51d 100644
--- a/www-apps/tt-rss/tt-rss-99999999.ebuild
+++ b/www-apps/tt-rss/tt-rss-99999999.ebuild
@@ -60,11 +60,11 @@ need_httpd_cgi # From webapp.eclass
 pkg_pretend() {
        if has_version www-apps/tt-rss[mysqli]; then
                ewarn
-               ewarn "You are currently using tt-rss with mysql backend."
+               ewarn "You are currently using tt-rss with the mysql backend."
                ewarn
                ewarn "THIS IS NOT SUPPORTED ANYMORE."
                ewarn
-               ewarn "Since 2025-04-14 tt-rss has dropped support for MySQL."
+               ewarn "Since 2025-04-14, tt-rss has dropped support for MySQL."
                ewarn
                ewarn "To upgrade, you need to migrate to PostgreSQL first."
                ewarn

Reply via email to