net-libs/tox: convert to GLEP 81.
authorJosiah Mullins <jomull01@protonmail.com>
Fri, 10 Jan 2020 15:54:11 +0000 (10:54 -0500)
committerJoonas Niilola <juippis@gentoo.org>
Mon, 13 Jan 2020 06:09:44 +0000 (08:09 +0200)
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@protonmail.com>
Closes: https://bugs.gentoo.org/694686
Closes: https://github.com/gentoo/gentoo/pull/14288
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-libs/tox/tox-0.2.9-r1.ebuild

index 1cf998eed71f38b7811331e59cae0f2653c94309..5307394b1288bd5bc16ef2b1940ee5580672456c 100644 (file)
@@ -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:"