-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
+
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="xml"
-
inherit autotools flag-o-matic gnome2-utils xdg toolchain-funcs python-single-r1
MY_P="${P/_/}"
-DESCRIPTION="A SVG based generic vector-drawing program"
+DESCRIPTION="SVG based generic vector-drawing program"
HOMEPAGE="https://inkscape.org/"
SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-COMMON_DEPEND="
- ${PYTHON_DEPS}
+COMMON_DEPEND="${PYTHON_DEPS}
>=app-text/poppler-0.26.0:=[cairo]
>=dev-cpp/glibmm-2.48
>=dev-cpp/gtkmm-2.18.0:2.4
>=x11-libs/gtk+-2.10.7:2
>=x11-libs/pango-1.24
cdr? (
- media-libs/libcdr
app-text/libwpg:0.3
dev-libs/librevenge
+ media-libs/libcdr
)
dbus? ( dev-libs/dbus-glib )
exif? ( media-libs/libexif )
dev-libs/librevenge
)
"
-
# These only use executables provided by these packages
# See share/extensions for more details. inkscape can tell you to
# install these so we could of course just not depend on those and rely
)
postscript? ( app-text/ghostscript-gpl )
"
-
DEPEND="${COMMON_DEPEND}
>=dev-libs/boost-1.36
+ dev-util/glib-utils
>=dev-util/intltool-0.40
>=sys-devel/gettext-0.17
virtual/pkgconfig
python_optimize "${ED%/}"/usr/share/${PN}/extensions
}
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
pkg_postinst() {
gnome2_icon_cache_update
xdg_mimeinfo_database_update