src_prepare-overlay/media-gfx/drawing/drawing-0.6.1.ebuild
Maciej Barć 15af7b3d8f
*/*: update copyright
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-07-07 18:20:27 +02:00

60 lines
1.1 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit gnome2-utils meson python-single-r1 xdg
DESCRIPTION="A drawing application for the GNOME desktop"
HOMEPAGE="https://github.com/maoschanz/drawing"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/maoschanz/${PN}.git"
else
SRC_URI="https://github.com/maoschanz/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="
mirror
test
"
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
dev-libs/appstream-glib[introspection]
dev-libs/glib
dev-python/pygobject[cairo]
dev-util/desktop-file-utils
"
RDEPEND="
${DEPEND}
"
pkg_preinst() {
gnome2_schemas_savelist
xdg_environment_reset
}
pkg_postinst() {
gnome2_gconf_install
gnome2_schemas_update
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
gnome2_gconf_uninstall
gnome2_schemas_update
xdg_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}