Diff nftables-0.9.6 with a nftables-9999

/usr/portage/net-firewall/nftables/nftables-9999.ebuild 2020-07-23 05:39:00.000000000 +0300
9 9

  
10 10
DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
11 11
HOMEPAGE="https://netfilter.org/projects/nftables/"
12
SRC_URI="https://netfilter.org/projects/nftables/files/${P}.tar.bz2"
12

  
13
if [[ ${PV} =~ ^[9]{4,}$ ]]; then
14
	inherit git-r3
15
	EGIT_REPO_URI="https://git.netfilter.org/${PN}"
16

  
17
	BDEPEND="
18
		sys-devel/bison
19
		sys-devel/flex
20
	"
21
else
22
	SRC_URI="https://netfilter.org/projects/nftables/files/${P}.tar.bz2"
23
	KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~sparc ~x86"
24
fi
13 25

  
14 26
LICENSE="GPL-2"
15
SLOT="0"
16
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~sparc ~x86"
27
SLOT="0/1"
17 28
IUSE="debug doc +gmp json +modern-kernel python +readline static-libs xtables"
18 29

  
19 30
RDEPEND="
......
22 33
	json? ( dev-libs/jansson )
23 34
	python? ( ${PYTHON_DEPS} )
24 35
	readline? ( sys-libs/readline:0= )
25
	>=net-libs/libnftnl-1.1.7:0=
36
	>=net-libs/libnftnl-1.1.8:0=
26 37
	xtables? ( >=net-firewall/iptables-1.6.1 )
27 38
"
28 39

  
29 40
DEPEND="${RDEPEND}"
30 41

  
31
BDEPEND="
42
BDEPEND+="
32 43
	doc? (
33 44
		app-text/asciidoc
34 45
		>=app-text/docbook2X-0.8.8-r4
......
100 111
src_install() {
101 112
	default
102 113

  
103
	if ! use doc; then
114
	if ! use doc && [[ ! ${PV} =~ ^[9]{4,}$ ]]; then
104 115
		pushd doc >/dev/null || die
105 116
		doman *.?
106 117
		popd >/dev/null || die
Thank you!