net-wireless/hostapd: 9999: add snapshot versions logic
authorAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 2 Sep 2018 02:39:50 +0000 (03:39 +0100)
committerAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 2 Sep 2018 02:43:25 +0000 (03:43 +0100)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-wireless/hostapd/hostapd-9999.ebuild

index e7978ed1696b05506b2318e6c9daf1bc65ad6113..342d0151c2d8d68efd1580bd11738995531a0b8d 100644 (file)
@@ -15,7 +15,12 @@ if [[ $PV == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://w1.fi/hostap.git"
 else
-       SRC_URI+=" https://w1.fi/releases/${P}.tar.gz"
+       if [[ $PV =~ ^.*_p[0-9]{8}$ ]]; then
+               SRC_URI+=" https://dev.gentoo.org/~andrey_utkin/distfiles/${P}.tar.xz"
+       else
+               SRC_URI+=" https://w1.fi/releases/${P}.tar.gz"
+       fi
+       # Never stabilize snapshot ebuilds please
        KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
 fi