blob: accff4fd5e6821b468679b76df404c55d4f56745 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_4 )
inherit eutils python-r1
DESCRIPTION="A simple portage python wrapper which works like other package managers(apt-get/yum/dnf)"
HOMEPAGE="http://redcorelinux.org"
SRC_URI="https://github.com/redcorelinux/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+gui"
DEPEND="dev-lang/python:3.4[sqlite]"
RDEPEND="${DEPEND}
app-portage/gentoolkit[${PYTHON_USEDEP}]
dev-python/animation[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
sys-apps/portage[${PYTHON_USEDEP}]
gui? ( dev-python/PyQt5[designer,gui,widgets,${PYTHON_USEDEP}] )"
src_prepare() {
default
epatch ${FILESDIR}/${P}-r2.patch
}
src_install() {
default
dosym /usr/share/${PN}/${PN}-cli.py /usr/bin/${PN}
dodir /var/lib/${PN}/{csv,db}
if ! use gui; then
rm -rf ${ED}usr/bin/${PN}-gui
rm -rf ${ED}usr/bin/${PN}-gui-pkexec
rm -rf ${ED}usr/share/${PN}/*py
rm -rf ${ED}usr/share/${PN}/icon
rm -rf ${ED}usr/share/${PN}/ui
rm -rf ${ED}usr/share/applications
rm -rf ${ED}usr/share/pixmaps
rm -rf ${ED}usr/share/polkit-1
fi
}
pkg_postinst() {
sisyphus rescue
}
|