diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-26 19:53:06 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-26 20:35:09 +0200 |
commit | ce5c0c6e75b32b546ade4fc42ef44f14be5ee0ea (patch) | |
tree | f5b345be7c1d1cab846adec5c70870651ecdc069 /x11-misc/appmenu-gtk-module | |
parent | dev-php/composer: bump to v1.10.9 (diff) | |
download | gentoo-ce5c0c6e75b32b546ade4fc42ef44f14be5ee0ea.tar.gz gentoo-ce5c0c6e75b32b546ade4fc42ef44f14be5ee0ea.tar.bz2 gentoo-ce5c0c6e75b32b546ade4fc42ef44f14be5ee0ea.zip |
x11-misc/appmenu-gtk-module: New Package
Initial ebuild by Gino McCarty, improvements by Marco Genasci and myself.
See also: https://github.com/gentoo/gentoo/pull/11951
Bug: https://bugs.gentoo.org/341757
Thanks-to: Gino McCarty <onigino@protonmail.com>
Thanks-to: Marco Genasci <fedeliallalinea@gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-misc/appmenu-gtk-module')
-rw-r--r-- | x11-misc/appmenu-gtk-module/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/appmenu-gtk-module/appmenu-gtk-module-0.7.3.ebuild | 48 | ||||
-rw-r--r-- | x11-misc/appmenu-gtk-module/files/appmenu-gtk-module | 12 | ||||
-rw-r--r-- | x11-misc/appmenu-gtk-module/metadata.xml | 11 |
4 files changed, 72 insertions, 0 deletions
diff --git a/x11-misc/appmenu-gtk-module/Manifest b/x11-misc/appmenu-gtk-module/Manifest new file mode 100644 index 000000000000..2ab8f70f6a51 --- /dev/null +++ b/x11-misc/appmenu-gtk-module/Manifest @@ -0,0 +1 @@ +DIST appmenu-gtk-module-0.7.3.tar.xz 48460 BLAKE2B b7008aa618e643a95445aad25bc19eed5b887810891318a891f088284f8f128e6392671226742a8b0c70699a9455739ee61ed56aec32129532ba53dc69809913 SHA512 d7df7e3cea3ccb66d013b23ae8796b8cbb0e0787f37f54078715c4863797c28d44ff38d7ac965b6eb0fd5cb327c1a4b891c74c66ba95b9b9a06e2c06ba5b2ad8 diff --git a/x11-misc/appmenu-gtk-module/appmenu-gtk-module-0.7.3.ebuild b/x11-misc/appmenu-gtk-module/appmenu-gtk-module-0.7.3.ebuild new file mode 100644 index 000000000000..cf681273b6a8 --- /dev/null +++ b/x11-misc/appmenu-gtk-module/appmenu-gtk-module-0.7.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake gnome2-utils systemd + +DESCRIPTION="Application menu module for GTK" +HOMEPAGE="https://gitlab.com/vala-panel-project/vala-panel-appmenu" +SRC_URI="https://gitlab.com/vala-panel-project/vala-panel-appmenu/uploads/570a2d1a65e77d42cb19e5972d0d1b84/${P}.tar.xz" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + dev-libs/glib[dbus] + >=x11-libs/gtk+-2.24.0:2 + >=x11-libs/gtk+-3.22.0:3 +" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare + sed -i -e "/^pkg_check_modules(SYSTEMD/d" data/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DGSETTINGS_COMPILE=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_VCM=ON + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + exeinto /etc/X11/xinit/xinitrc.d + newexe "${FILESDIR}"/${PN} 85-${PN} + + systemd_dounit "${BUILD_DIR}"/data/appmenu-gtk-module.service +} + +pkg_postinst() { + gnome2_schemas_update +} diff --git a/x11-misc/appmenu-gtk-module/files/appmenu-gtk-module b/x11-misc/appmenu-gtk-module/files/appmenu-gtk-module new file mode 100644 index 000000000000..d506c77a1215 --- /dev/null +++ b/x11-misc/appmenu-gtk-module/files/appmenu-gtk-module @@ -0,0 +1,12 @@ +if [[ -n "$GTK_MODULES" }]; then + GTK_MODULES="${GTK_MODULES}:appmenu-gtk-module" +else + GTK_MODULES="appmenu-gtk-module" +fi + +if [[ -z "$UBUNTU_MENUPROXY" ]]; then + UBUNTU_MENUPROXY=1 +fi + +export GTK_MODULES +export UBUNTU_MENUPROXY diff --git a/x11-misc/appmenu-gtk-module/metadata.xml b/x11-misc/appmenu-gtk-module/metadata.xml new file mode 100644 index 000000000000..bbffdc112335 --- /dev/null +++ b/x11-misc/appmenu-gtk-module/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <remote-id type="github">shlomif/rinutils</remote-id> + </upstream> +</pkgmetadata> |