commit: 8921d5b7e35825aa02ecb05642fc793963bf9473
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:49 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 09:25:23 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8921d5b7
net-p2p/amule: Port to ver_replacing
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
net-p2p/amule/amule-2.3.3-r4.ebuild | 26 ++++++++++----------------
net-p2p/amule/amule-9999.ebuild | 30 +++++++++++-------------------
2 files changed, 21 insertions(+), 35 deletions(-)
diff --git a/net-p2p/amule/amule-2.3.3-r4.ebuild
b/net-p2p/amule/amule-2.3.3-r4.ebuild
index cadfc1d4efb0..5e5e87a0bdaf 100644
--- a/net-p2p/amule/amule-2.3.3-r4.ebuild
+++ b/net-p2p/amule/amule-2.3.3-r4.ebuild
@@ -4,7 +4,7 @@
EAPI=8
WX_GTK_VER="3.2-gtk3"
-inherit autotools flag-o-matic wxwidgets xdg-utils
+inherit autotools eapi9-ver flag-o-matic wxwidgets xdg-utils
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/amule-project/amule"
@@ -135,21 +135,15 @@ src_install() {
pkg_postinst() {
local ver
- if use daemon || use remote; then
- for ver in ${REPLACING_VERSIONS}; do
- if ver_test ${ver} -lt "2.3.2-r4"; then
- elog "Default user under which amuled and
amuleweb daemons are started"
- elog "have been changed from p2p to amule.
Default home directory have been"
- elog "changed as well."
- echo
- elog "If you want to preserve old
download/share location, you can create"
- elog "symlink /var/lib/amule/.aMule pointing to
the old location and adjust"
- elog "files ownership *or* restore AMULEUSER
and AMULEHOME variables in"
- elog "/etc/conf.d/{amuled,amuleweb} to the old
values."
-
- break
- fi
- done
+ if use daemon || use remote && ver_replacing -lt "2.3.2-r4"; then
+ elog "Default user under which amuled and amuleweb daemons are
started"
+ elog "have been changed from p2p to amule. Default home
directory have been"
+ elog "changed as well."
+ echo
+ elog "If you want to preserve old download/share location, you
can create"
+ elog "symlink /var/lib/amule/.aMule pointing to the old
location and adjust"
+ elog "files ownership *or* restore AMULEUSER and AMULEHOME
variables in"
+ elog "/etc/conf.d/{amuled,amuleweb} to the old values."
fi
use X && xdg_desktop_database_update
diff --git a/net-p2p/amule/amule-9999.ebuild b/net-p2p/amule/amule-9999.ebuild
index 35d9d3390ddf..4ca517b252db 100644
--- a/net-p2p/amule/amule-9999.ebuild
+++ b/net-p2p/amule/amule-9999.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
WX_GTK_VER="3.2-gtk3"
-inherit autotools flag-o-matic wxwidgets xdg-utils
+inherit autotools eapi9-ver flag-o-matic wxwidgets xdg-utils
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/amule-project/amule"
@@ -130,23 +130,15 @@ src_install() {
}
pkg_postinst() {
- local ver
-
- if use daemon || use remote; then
- for ver in ${REPLACING_VERSIONS}; do
- if ver_test ${ver} -lt "2.3.2-r4"; then
- elog "Default user under which amuled and
amuleweb daemons are started"
- elog "have been changed from p2p to amule.
Default home directory have been"
- elog "changed as well."
- echo
- elog "If you want to preserve old
download/share location, you can create"
- elog "symlink /var/lib/amule/.aMule pointing to
the old location and adjust"
- elog "files ownership *or* restore AMULEUSER
and AMULEHOME variables in"
- elog "/etc/conf.d/{amuled,amuleweb} to the old
values."
-
- break
- fi
- done
+ if use daemon || use remote && ver_replacing -lt "2.3.2-r4"; then
+ elog "Default user under which amuled and amuleweb daemons are
started"
+ elog "have been changed from p2p to amule. Default home
directory have been"
+ elog "changed as well."
+ echo
+ elog "If you want to preserve old download/share location, you
can create"
+ elog "symlink /var/lib/amule/.aMule pointing to the old
location and adjust"
+ elog "files ownership *or* restore AMULEUSER and AMULEHOME
variables in"
+ elog "/etc/conf.d/{amuled,amuleweb} to the old values."
fi
use X && xdg_desktop_database_update