kamene: EAPI bump, replace BSD -> GPL-2 and update deps (More: https://github.com/pentoo/pentoo-overlay/issues/535)

This commit is contained in:
Yury Martynov 2019-12-09 14:43:06 +03:00
parent 96888c6736
commit c59d9fcfb9
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 64 additions and 34 deletions

View file

@ -1 +1 @@
DIST kamene-0.32.tar.gz 2215536 BLAKE2B 4c7d71a338f9810d7d3273f168537d4964082e706e999c269a36aa5bf51c80b3900654bb1a9be5f04e308d5d5c448d82edfb12a74d1238f59a4821208d36307a SHA512 456d2fae41126de089bc5ef278a567a45392c648d45c633cd587a9215c317ff4796cae89c341fdfdcc21c4d7d7047eaa3084511b4d4893f423a42e4193b54e0f
DIST kamene-0.32.tar.gz 1198207 BLAKE2B 4e1f263c2e1c6083e43329ba04892b7c233e4c5755d7c4841ecda099bbc2fc424dbe29d28915064076d873d91058228ae83b94d19abc50e5bbdfdb7faba257d8 SHA512 ba0e7ceb41e0687a8b8deb743f4cc8dc00021200ae028faac0afc3a1f202ac2c2cfdc7ebd7ea6ab3af4790e8393c9d1ed5b8f80f16bf0783e5058f29d2038ea6

View file

@ -0,0 +1,44 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
inherit distutils-r1
DESCRIPTION="Network packet and pcap processing tool, forked from scapy"
HOMEPAGE="https://github.com/phaethon/kamene"
SRC_URI="https://github.com/phaethon/kamene/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="crypt graphs pyx"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
crypt? ( dev-python/cryptography[idna,${PYTHON_USEDEP}] )
graphs? ( dev-python/networkx[${PYTHON_USEDEP}] )
dev-python/dill[${PYTHON_USEDEP}]
dev-python/ipaddress[${PYTHON_USEDEP}]
dev-python/ipython[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/netifaces[${PYTHON_USEDEP}]
pyx? ( dev-python/pyx[${PYTHON_USEDEP}] )"
src_unpack() {
default
unpack "${S}/doc/kamene.1.gz"
}
python_prepare_all() {
#do not install compressed man
sed -e '/data_files/d' -i setup.py || die
distutils-r1_python_prepare_all
}
python_install_all() {
distutils-r1_python_install_all
doman "${WORKDIR}"/kamene.1
}

View file

@ -1,33 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6,7} )
IUSE="test"
inherit distutils-r1
DESCRIPTION="Network packet and pcap processing tool, forked from scapy"
HOMEPAGE="https://github.com/phaethon/kamene"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
python_prepare_all() {
#do not install compressed man
sed -e '/data_files/d' -i setup.py || die
distutils-r1_python_prepare_all
}
python_install_all() {
distutils-r1_python_install_all
unpack "./doc/kamene.1.gz"
doman kamene.1
}

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="graphs">Enable <pkg>dev-python/networkx</pkg> support for draw network graphs</flag>
<flag name="pyx">Enable <pkg>dev-python/pyx</pkg> support for psdump/pdfdump commands</flag>
</use>
<upstream>
<remote-id type="github">phaethon/kamene</remote-id>
</upstream>
</pkgmetadata>