mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-06 15:54:54 +01:00
dev-python/pyminifier: drop python2_7
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Yury Martynov <email@linxon.ru>
This commit is contained in:
parent
78c656f86b
commit
25cf8b74ce
2 changed files with 30 additions and 18 deletions
8
dev-python/pyminifier/metadata.xml
Normal file
8
dev-python/pyminifier/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,33 +1,37 @@
|
|||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_PN=github.com/liftoff/${PN}
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/liftoff/pyminifier.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
# KEYWORDS="~amd64 ~x86"
|
||||
EGIT_COMMIT="087ea7b0c8c964f1f907c3f350f5ce281798db86"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Pyminifier is a Python code minifier, obfuscator, and compressor."
|
||||
HOMEPAGE="https://github.com/liftoff/pyminifier"
|
||||
|
||||
if [[ ${PV} = *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/liftoff/pyminifier.git"
|
||||
else
|
||||
HASH_COMMIT="087ea7b0c8c964f1f907c3f350f5ce281798db86"
|
||||
SRC_URI="https://github.com/liftoff/pyminifier/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_optimize "${ED}/usr"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue