commit:     1e28361863d191d17006e1e5c26a210564cbcfb6
Author:     Josiah Mullins <jomull01 <AT> protonmail <DOT> com>
AuthorDate: Fri Jan 10 15:54:11 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jan 13 06:09:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e283618

net-libs/tox: convert to GLEP 81.

This commit fixes tox-0.2.9-r1 to use
the acct-group/tox and acct-user/tox
packages. It also reverts the package
to unstable due to the above changes.

Signed-off-by: Josiah Mullins <JoMull01 <AT> protonmail.com>

Closes: https://bugs.gentoo.org/694686
Closes: https://github.com/gentoo/gentoo/pull/14288
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-libs/tox/tox-0.2.9-r1.ebuild | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/net-libs/tox/tox-0.2.9-r1.ebuild b/net-libs/tox/tox-0.2.9-r1.ebuild
index 1cf998eed71..5307394b128 100644
--- a/net-libs/tox/tox-0.2.9-r1.ebuild
+++ b/net-libs/tox/tox-0.2.9-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit cmake-utils systemd user
+inherit cmake-utils systemd
 
 MY_P="c-toxcore-${PV}"
 DESCRIPTION="Encrypted P2P, messaging, and audio/video calling platform"
@@ -12,19 +12,21 @@ 
SRC_URI="https://github.com/TokTok/c-toxcore/archive/v${PV}.tar.gz -> ${MY_P}.ta
 
 LICENSE="GPL-3+"
 SLOT="0/0.2"
-KEYWORDS="amd64 ~arm x86"
+KEYWORDS="~amd64 ~arm ~x86"
 IUSE="+av daemon dht-node ipv6 log-debug +log-error log-info log-trace 
log-warn static-libs test"
-RESTRICT="!test? ( test )"
 
 REQUIRED_USE="?? ( log-debug log-error log-info log-trace log-warn )
                daemon? ( dht-node )"
+RESTRICT="!test? ( test )"
 
-RDEPEND="
-       av? ( media-libs/libvpx:=
-               media-libs/opus )
-       daemon? ( dev-libs/libconfig )
-       >=dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal]"
 BDEPEND="virtual/pkgconfig"
+DEPEND=">=dev-libs/libsodium-0.6.1:=[asm,urandom,-minimal]
+       av? ( media-libs/libvpx
+               media-libs/opus )
+       daemon? ( dev-libs/libconfig )"
+RDEPEND="${DEPEND}
+       daemon? ( acct-group/tox
+                 acct-user/tox )"
 
 S="${WORKDIR}/${MY_P}"
 
@@ -97,8 +99,6 @@ pkg_postinst() {
                ewarn "consider disabling the DHT-node use flag."
        fi
        if use daemon; then
-               enewgroup tox
-               enewuser tox -1 -1 -1 tox
                if [[ -f ${EROOT}/var/lib/tox-dht-bootstrap/key ]]; then
                        ewarn "Backwards compatability with the bootstrap 
daemon might have been"
                        ewarn "broken a while ago. To resolve this issue, 
REMOVE the following files:"

Reply via email to