commit:     4b5a6c484afdefc9f5933d4c9e56c1d3ce30494d
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Wed Jun 18 09:08:59 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Jun 22 07:11:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5a6c48

www-apps/rutorrent: clean up useless files

The archives contain metadata from version control and an editor. We
always deleted that but now adding ".vscode" and moving things to
src_prepare. Same goes for the "tests" directory which is not for
end-users.
We now move documentation out of the webapp with dodoc.

Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Part-of: https://github.com/gentoo/gentoo/pull/42652
Closes: https://github.com/gentoo/gentoo/pull/42652
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 www-apps/rutorrent/rutorrent-9999.ebuild | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/www-apps/rutorrent/rutorrent-9999.ebuild 
b/www-apps/rutorrent/rutorrent-9999.ebuild
index 97453fadf5c8..eb1658177e79 100644
--- a/www-apps/rutorrent/rutorrent-9999.ebuild
+++ b/www-apps/rutorrent/rutorrent-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -29,15 +29,25 @@ pkg_setup() {
        webapp_pkg_setup
 }
 
-src_install() {
-       webapp_src_preinst
-
+src_prepare() {
        rm -r .github || die
+       rm -r .vscode || die
+       rm -r tests || die
        find . \( -name .gitignore -o -name .gitmodules \) -type f -delete || 
die
        if [[ ${PV} == 9999 ]]; then
                rm -r .git .gitattributes || die
        fi
 
+       default
+}
+
+src_install() {
+       webapp_src_preinst
+
+       local docs="LICENSE.md README.md htaccess-example"
+       dodoc ${docs}
+       rm ${docs} || die
+
        insinto "${MY_HTDOCSDIR}"
        doins -r .
 

Reply via email to