summaryrefslogtreecommitdiff
blob: b21a49749ade79b058a94787abbc443e00f94dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{6,7,8} )
inherit python-r1

SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
DESCRIPTION="A library for analysing python pickles safely"
HOMEPAGE="https://github.com/CensoredUsername/picklemagic"
LICENSE="WTFPL-2"
SLOT="0"
IUSE="doc"

BDEPEND="doc? ( dev-python/sphinx )"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

src_compile() {
	use doc && emake -C doc html
}

src_install() {
	default
	python_foreach_impl python_domodule *.py
	use doc && dodoc -r doc/build/html
}