Diff file-5.37-r1 with a file-9999

/usr/portage/sys-apps/file/file-9999.ebuild 2019-12-02 17:39:00.000000000 +0300
13 13
	inherit autotools git-r3
14 14
else
15 15
	SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz"
16
	KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 17
fi
18 18

  
19 19
DESCRIPTION="identify a file's format by scanning binary data for patterns"
......
21 21

  
22 22
LICENSE="BSD-2"
23 23
SLOT="0"
24
IUSE="python static-libs zlib"
24
IUSE="python seccomp static-libs zlib"
25 25
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
26 26

  
27 27
DEPEND="
......
31 31
	)
32 32
	zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
33 33
RDEPEND="${DEPEND}
34
	python? ( !dev-python/python-magic )"
35

  
36
PATCHES=( "${FILESDIR}"/${P}-CVE-2019-18218.patch )
34
	python? ( !dev-python/python-magic )
35
	seccomp? ( sys-libs/libseccomp[${MULTILIB_USEDEP}] )"
37 36

  
38 37
src_prepare() {
39 38
	default
......
48 47

  
49 48
multilib_src_configure() {
50 49
	local myeconfargs=(
51
		--disable-libseccomp
52 50
		--enable-fsect-man5
51
		$(use_enable seccomp libseccomp)
53 52
		$(use_enable static-libs static)
54 53
		$(use_enable zlib)
55 54
	)
......
74 73
		LDFLAGS="${BUILD_LDFLAGS} -static" \
75 74
		CC=${BUILD_CC} \
76 75
		CXX=${BUILD_CXX} \
77
		econf --disable-shared --disable-libseccomp
76
		econf --disable-shared $(use_enable seccomp libseccomp)
78 77
	fi
79 78

  
80 79
	multilib-minimal_src_configure
Thank you!