Diff tt-rss-20241001 with a tt-rss-99999999

/usr/portage/www-apps/tt-rss/tt-rss-99999999.ebuild 2025-10-31 18:18:06.576763688 +0300
10 10
	EGIT_REPO_URI="https://github.com/tt-rss/${PN}.git"
11 11
	inherit git-r3
12 12
else
13
	SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${P}.tar.xz"
14
	S="${WORKDIR}/${PN}"
13
	COMMIT=""
14
	SRC_URI="https://github.com/tt-rss/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
15
	S="${WORKDIR}/${PN}-${COMMIT}"
15 16
	KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
16 17
fi
17 18

  
18 19
DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
19 20
HOMEPAGE="https://github.com/tt-rss/"
20 21
LICENSE="GPL-3"
21
IUSE="+acl daemon gd +mysqli postgres"
22
REQUIRED_USE="|| ( mysqli postgres )"
22
IUSE="+acl daemon gd"
23 23

  
24
PHP_SLOTS="8.3 8.2 8.1" # Check with: grep PHP_VERSION classes/Config.php
25
PHP_USE="gd?,mysqli?,postgres?,curl,fileinfo,intl,json(+),pdo,unicode,xml"
24
PHP_SLOTS="8.4 8.3 8.2" # Check with: grep PHP_VERSION classes/Config.php
25
PHP_USE="gd?,postgres,ctype,curl,fileinfo,filter,intl,pdo,tokenizer,unicode,xml"
26 26

  
27 27
php_rdepend() {
28 28
	local slot
......
58 58

  
59 59
need_httpd_cgi # From webapp.eclass
60 60

  
61
PATCHES=(
62
	"${FILESDIR}"/${PN}-no-chmod.patch
63
)
61
pkg_pretend() {
62
	if has_version www-apps/tt-rss[mysqli]; then
63
		ewarn
64
		ewarn "You are currently using tt-rss with the mysql backend."
65
		ewarn
66
		ewarn "THIS IS NOT SUPPORTED ANYMORE."
67
		ewarn
68
		ewarn "Since 2025-04-17, tt-rss has dropped support for MySQL."
69
		ewarn
70
		ewarn "To upgrade, you need to migrate to PostgreSQL first."
71
		ewarn
72
		ewarn "Migrating between different tt-rss versions might work but is not recommended."
73
		ewarn "It's recommended to switch to =www-apps/tt-rss-20250417 for migration."
74
		ewarn
75
		ewarn "Export/Import articles could be done with an official plugin:"
76
		ewarn "ttrss-data-migration"
77
		ewarn "For plugin installation and export/import, see:"
78
		ewarn "https://github.com/tt-rss/tt-rss-plugin-data-migration"
79
		ewarn
80
		ewarn "Example of migration steps:"
81
		ewarn "0. Setup PostgreSQL (dev-db/postgresql)"
82
		ewarn "1. Backup !"
83
		ewarn "2. Export settings/feeds (OPML)"
84
		ewarn "3. Export articles (JSON) via ttrss-data-migration"
85
		ewarn "4. Migrate to PostgreSQL backend changing USE flag mysqli to postgres"
86
		ewarn "5. Emerge www-apps/tt-rss with new USE flag"
87
		ewarn "6. Setup fresh install of tt-rss with PostgreSQL backend"
88
		ewarn "7. Import settings/feeds (OPML)"
89
		ewarn "8. Import articles"
90
		ewarn
91
		die "MySQL backend not supported anymore"
92
	fi
93
}
64 94

  
65 95
src_install() {
66 96
	webapp_src_preinst
Thank you!