diff options
author | Matthew S. Turnbull <sparky@bluefang-logic.com> | 2021-06-25 17:35:42 -0400 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-07-15 14:32:17 +0300 |
commit | 56b25cca29730c5cd06e46982836aeb2d595c27c (patch) | |
tree | 4eeb3569f6fa69ab2d2a598925f5e30885603103 /x11-libs | |
parent | dev-db/oracle-instantclient: version bump to 19.11.0.0.0 (diff) | |
download | gentoo-56b25cca29730c5cd06e46982836aeb2d595c27c.tar.gz gentoo-56b25cca29730c5cd06e46982836aeb2d595c27c.tar.bz2 gentoo-56b25cca29730c5cd06e46982836aeb2d595c27c.zip |
x11-libs/xapps: 2.2.2 version bump
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Matthew S. Turnbull <sparky@bluefang-logic.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/xapps/Manifest | 1 | ||||
-rw-r--r-- | x11-libs/xapps/xapps-2.2.2.ebuild | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/x11-libs/xapps/Manifest b/x11-libs/xapps/Manifest index f654f6def9ea..87cf97e69f05 100644 --- a/x11-libs/xapps/Manifest +++ b/x11-libs/xapps/Manifest @@ -1 +1,2 @@ DIST xapps-2.2.1.tar.gz 239789 BLAKE2B ee7f3f2b3c54b0b40158dff6abbe2233c0d1a1fa4e134ce4bd6ee48842335b16e0d94ad430cb59301529dd85e2705cbb1c1f5ba10844b6fb85f598ca0c42d1db SHA512 412f5c207d81d2507f2aa5cc69beed2036db07058f08613793aa7c277bac30191a02d9aff4eca0aeb8829e3e39d5f3a87e34232bf51220c4d4bc7c8ee37b9e65 +DIST xapps-2.2.2.tar.gz 239823 BLAKE2B a45b2707c505c9ed69b9748c846f69ef7668600619bc3d0f86c693c99e536afb9994ff4ed10cbf0efc194a1e861cf0911af50170e97a7b858b1363c370551799 SHA512 ab37714849365a81b2a500ed38ada9bf6b52edc17d3b3bfa6d41551a18af1b983f8fe084dee94939e81647814a77d2c219b87694349ac5d0d0ac59ba5ad79aa7 diff --git a/x11-libs/xapps/xapps-2.2.2.ebuild b/x11-libs/xapps/xapps-2.2.2.ebuild new file mode 100644 index 000000000000..a7434062a552 --- /dev/null +++ b/x11-libs/xapps/xapps-2.2.2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +VALA_USE_DEPEND="vapigen" + +inherit gnome2-utils vala meson python-r1 xdg-utils + +DESCRIPTION="Cross-desktop libraries and common resources" +HOMEPAGE="https://github.com/linuxmint/xapp/" +LICENSE="GPL-3" + +SRC_URI="https://github.com/linuxmint/xapp/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/xapp-${PV}" +KEYWORDS="~amd64 ~arm64 ~x86" + +SLOT="0" +IUSE="gtk-doc introspection static-libs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/glib-2.44.0:2 + dev-libs/gobject-introspection:0= + dev-libs/libdbusmenu[gtk3] + gnome-base/libgnomekbd + x11-libs/cairo + >=x11-libs/gdk-pixbuf-2.22.0:2[introspection?] + >=x11-libs/gtk+-3.16.0:3[introspection?] + x11-libs/libxkbfile +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} + $(vala_depend) + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-util/gdbus-codegen + dev-util/glib-utils + >=dev-util/intltool-0.40.6 + sys-devel/gettext + + gtk-doc? ( dev-util/gtk-doc ) +" + +src_prepare() { + vala_src_prepare + default + + # don't install distro specific tools + sed -i "/subdir('scripts')/d" meson.build || die + + # Fix meson helpers + python_setup + python_fix_shebang meson-scripts +} + +src_configure() { + local emesonargs=( + $(meson_use gtk-doc docs) + -Dpy-overrides-dir="/pygobject" + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # copy pygobject files to each active python target + # work-around for "py-overrides-dir" only supporting a single target + install_pygobject_override() { + PYTHON_GI_OVERRIDESDIR=$("${EPYTHON}" -c 'import gi;print(gi._overridesdir)' || die) + einfo "gobject overrides directory: ${PYTHON_GI_OVERRIDESDIR}" + mkdir -p "${D}/${PYTHON_GI_OVERRIDESDIR}/" || die + cp -r "${D}"/pygobject/* "${D}/${PYTHON_GI_OVERRIDESDIR}/" || die + python_optimize "${D}/${PYTHON_GI_OVERRIDESDIR}/" + } + python_foreach_impl install_pygobject_override + rm -r "${D}/pygobject" || die +} + +pkg_postinst() { + xdg_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + xdg_icon_cache_update + gnome2_schemas_update +} |