18 |
18 |
DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
|
19 |
19 |
HOMEPAGE="https://tt-rss.org/"
|
20 |
20 |
LICENSE="GPL-3"
|
21 |
|
IUSE="+acl daemon gd +mysqli postgres"
|
22 |
|
REQUIRED_USE="|| ( mysqli postgres )"
|
|
21 |
IUSE="+acl daemon gd"
|
23 |
22 |
|
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"
|
|
23 |
PHP_SLOTS="8.4 8.3 8.2" # Check with: grep PHP_VERSION classes/Config.php
|
|
24 |
PHP_USE="gd?,postgres,ctype,curl,fileinfo,filter,intl,pdo,tokenizer,unicode,xml"
|
26 |
25 |
|
27 |
26 |
php_rdepend() {
|
28 |
27 |
local slot
|
... | ... | |
58 |
57 |
|
59 |
58 |
need_httpd_cgi # From webapp.eclass
|
60 |
59 |
|
61 |
|
PATCHES=(
|
62 |
|
"${FILESDIR}"/${PN}-no-chmod.patch
|
63 |
|
)
|
|
60 |
pkg_pretend() {
|
|
61 |
if has_version www-apps/tt-rss[mysqli]; then
|
|
62 |
ewarn
|
|
63 |
ewarn "You are currently using tt-rss with the mysql backend."
|
|
64 |
ewarn
|
|
65 |
ewarn "THIS IS NOT SUPPORTED ANYMORE."
|
|
66 |
ewarn
|
|
67 |
ewarn "Since 2025-04-17, tt-rss has dropped support for MySQL."
|
|
68 |
ewarn
|
|
69 |
ewarn "To upgrade, you need to migrate to PostgreSQL first."
|
|
70 |
ewarn
|
|
71 |
ewarn "Migrating between different tt-rss versions might work but is not recommended."
|
|
72 |
ewarn "It's recommended to switch to =www-apps/tt-rss-20250417 for migration."
|
|
73 |
ewarn
|
|
74 |
ewarn "Export/Import articles could be done with an official plugin:"
|
|
75 |
ewarn "ttrss-data-migration"
|
|
76 |
ewarn "For plugin installation and export/import, see:"
|
|
77 |
ewarn "https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-data-migration"
|
|
78 |
ewarn
|
|
79 |
ewarn "Example of migration steps:"
|
|
80 |
ewarn "0. Setup PostgreSQL (dev-db/postgresql)"
|
|
81 |
ewarn "1. Backup !"
|
|
82 |
ewarn "2. Export settings/feeds (OPML)"
|
|
83 |
ewarn "3. Export articles (JSON) via ttrss-data-migration"
|
|
84 |
ewarn "4. Migrate to PostgreSQL backend changing USE flag mysqli to postgres"
|
|
85 |
ewarn "5. Emerge www-apps/tt-rss with new USE flag"
|
|
86 |
ewarn "6. Setup fresh install of tt-rss with PostgreSQL backend"
|
|
87 |
ewarn "7. Import settings/feeds (OPML)"
|
|
88 |
ewarn "8. Import articles"
|
|
89 |
ewarn
|
|
90 |
die "MySQL backend not supported anymore"
|
|
91 |
fi
|
|
92 |
}
|
64 |
93 |
|
65 |
94 |
src_install() {
|
66 |
95 |
webapp_src_preinst
|