2019-04-18 08:49:42 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2016-07-10 20:53:20 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2018-04-06 21:48:53 +03:00
|
|
|
EAPI=6
|
2016-07-10 20:53:20 +03:00
|
|
|
|
2019-04-18 08:49:42 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
2016-07-10 20:53:20 +03:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Access the libmagic file type identification library"
|
|
|
|
HOMEPAGE="https://github.com/ahupp/python-magic"
|
2018-07-18 23:34:13 +03:00
|
|
|
SRC_URI="https://github.com/ahupp/python-magic/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
2016-07-10 20:53:20 +03:00
|
|
|
|
2017-09-29 08:47:49 +03:00
|
|
|
LICENSE="MIT"
|
2016-07-10 20:53:20 +03:00
|
|
|
SLOT="0"
|
2018-07-02 08:44:55 +03:00
|
|
|
KEYWORDS="amd64 ~hppa ia64 x86"
|
2016-07-10 20:53:20 +03:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="sys-apps/file[-python]"
|
|
|
|
DEPEND="${DEPEND}
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
|
|
|
|
|
|
python_test() {
|
2018-07-18 23:34:13 +03:00
|
|
|
"${EPYTHON}" test/test.py -v || die "Tests fail with ${EPYTHON}"
|
2016-07-10 20:53:20 +03:00
|
|
|
}
|