mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-14 10:51:10 +02:00
app-misc/dangerzone: add openrc support
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Yury Martynov <email@linxon.ru>
This commit is contained in:
parent
e957cea6ca
commit
201c2ef67e
1 changed files with 59 additions and 0 deletions
59
app-misc/dangerzone/dangerzone-0.1.2-r1.ebuild
Normal file
59
app-misc/dangerzone/dangerzone-0.1.2-r1.ebuild
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# 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 eutils distutils-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Take potentially dangerous PDFs or images and convert them to a safe PDF"
|
||||
HOMEPAGE="https://github.com/firstlookmedia/dangerzone"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/firstlookmedia/dangerzone"
|
||||
else
|
||||
SRC_URI="https://github.com/firstlookmedia/dangerzone/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="policykit systemd"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
dev-python/appdirs[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
app-emulation/docker
|
||||
policykit? ( sys-auth/polkit )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if ! use systemd; then
|
||||
cat > share/enable_docker_service.sh <<-_EOF_ || die
|
||||
#!/bin/sh
|
||||
/sbin/rc-service docker start --ifstopped
|
||||
_EOF_
|
||||
else
|
||||
cat > share/enable_docker_service.sh <<-_EOF_ || die
|
||||
#!/bin/sh
|
||||
/bin/systemctl restart docker.service
|
||||
_EOF_
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
Loading…
Reference in a new issue