commit:     894954cd27938ff8189dca51519f3f634e6f514c
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sun Dec 21 21:35:18 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Jan  1 08:01:14 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=894954cd

www-apps/tt-rss: add 20251216

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45116
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-apps/tt-rss/Manifest               |   1 +
 www-apps/tt-rss/tt-rss-20251216.ebuild | 137 +++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)

diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
index 35b0f92d0ebb..c5ec3ca9b877 100644
--- a/www-apps/tt-rss/Manifest
+++ b/www-apps/tt-rss/Manifest
@@ -1,2 +1,3 @@
 DIST tt-rss-20241001.tar.xz 5436596 BLAKE2B 
0f913496d93c702eaf3d33b2bfe2ec623d7a215457296399483927ba4bd8cf0dc44915bbc950b0635d452e67373d0a365736d7916141eb6d2cccb2487900d02d
 SHA512 
fba5f5d18b855a299450d9659cd52d3c8d48995ab25778ae92ee8a5711a8afa5bf42cf21360fcd189664d3cd1ab12032bb67e688201b57e989bff1003cbea2ca
 DIST tt-rss-20250417.tar.xz 5468108 BLAKE2B 
3392b21c0cba08406146d376d3fcbb6e5b15ba1987fcef166f9334ea175042ac7e727b13d1107ae6d68a304533b61d8957d903a96868a94521fa63ab7c5b28ff
 SHA512 
dfa42662c94f55e3ddcacd795e27b2a8b2e383b874bfe3944c08068107d74503437457395788b1789925444de56d6d5343a15214687f337ebef4a3fc6f412fb4
+DIST tt-rss-20251216.tar.gz 4338604 BLAKE2B 
8476e14fae3efe60bf23350f0955809108f5039a24f50f590ef1bc7513aa2e653f1469270f84c326382399284410d66abc65d51b9de998371578a3fc8a6cbf25
 SHA512 
e4af6554324bb7a90a8f4663a3cac02a1a229caefc763a13cbd67c113aa223f9ec0a44cc8df4e424812eccc2608e0e8811e4c73aa85992db741c1263bbc9d903

diff --git a/www-apps/tt-rss/tt-rss-20251216.ebuild 
b/www-apps/tt-rss/tt-rss-20251216.ebuild
new file mode 100644
index 000000000000..97a94a4d52a2
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-20251216.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit webapp
+
+if [[ ${PV} == *9999999* ]]; then
+       SLOT="${PV}" # Single live slot.
+       EGIT_REPO_URI="https://github.com/tt-rss/${PN}.git";
+       inherit git-r3
+else
+       COMMIT="95f8941060076ebeccc4518e9fd3306f0a26b81e"
+       SRC_URI="https://github.com/tt-rss/${PN}/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}/${PN}-${COMMIT}"
+       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+fi
+
+DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using 
AJAX"
+HOMEPAGE="https://github.com/tt-rss/";
+LICENSE="GPL-3"
+IUSE="+acl daemon gd"
+
+PHP_SLOTS="8.5 8.4 8.3 8.2" # min_ver: PHP_VERSION classes/Config.php / 
current_ver: PHP_SUFFIX .docker/app/Dockerfile
+PHP_USE="gd?,postgres,ctype,curl,fileinfo,filter,intl,pdo,tokenizer,unicode,xml"
+
+php_rdepend() {
+       local slot
+       echo "|| ("
+       for slot in ${PHP_SLOTS}; do
+               echo "(
+                       virtual/httpd-php:${slot}
+                       dev-lang/php:${slot}[$1]
+               )"
+       done
+       echo ")"
+}
+
+DEPEND="
+       daemon? ( acl? ( sys-apps/acl ) )
+"
+
+RDEPEND="
+       ${DEPEND}
+       daemon? (
+               acct-user/ttrssd
+               acct-group/ttrssd
+               $(php_rdepend "${PHP_USE},cli,pcntl")
+       )
+       !daemon? (
+               $(php_rdepend "${PHP_USE}")
+       )
+"
+
+DEPEND="
+       !vhosts? ( ${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 the mysql backend."
+               ewarn
+               ewarn "THIS IS NOT SUPPORTED ANYMORE."
+               ewarn
+               ewarn "Since 2025-04-17, 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-20250417 
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://github.com/tt-rss/tt-rss-plugin-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
+}
+
+src_install() {
+       webapp_src_preinst
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r *
+
+       # When updating, grep the code for new DiskCache::instance occurrences 
as
+       # these directories cannot be created later due to permissions. Some
+       # of these directories are already present in the source tree.
+       keepdir "${MY_HTDOCSDIR}"/cache/{feed-icons,starred-images}
+
+       local dir
+       for dir in "${ED}${MY_HTDOCSDIR}"/{cache/*,feed-icons,lock}/; do
+               webapp_serverowned "${dir#${ED}}"
+       done
+
+       if use daemon; then
+               webapp_hook_script "${FILESDIR}"/permissions-r1
+               webapp_postinst_txt en 
"${FILESDIR}"/postinstall-en-with-daemon-r1.txt
+
+               newinitd "${FILESDIR}"/ttrssd.initd-r4 ttrssd
+               newconfd "${FILESDIR}"/ttrssd.confd-r2 ttrssd
+
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}"/ttrssd.logrotated-r1 ttrssd
+
+               elog "After upgrading, please restart ttrssd."
+       else
+               webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+       fi
+
+       webapp_src_install
+}
+
+pkg_postinst() {
+       if ! use vhosts && [[ -n ${REPLACING_VERSIONS} && ${PV} == *9999999* 
]]; then
+               elog
+               elog "The live ebuild does not automatically upgrade your 
installations so"
+               elog "don't forget to do so manually."
+       fi
+
+       webapp_pkg_postinst
+}

Reply via email to