Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/menulibre/
Date: Wed, 29 Nov 2017 06:24:23
Message-Id: 1511936648.9c0669b1885b70c3b1acb8920497ca7763749019.jer@gentoo
1 commit: 9c0669b1885b70c3b1acb8920497ca7763749019
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 29 06:20:12 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 29 06:24:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0669b1
7
8 Revert "x11-misc/menulibre: Old."
9
10 This reverts commit f532ef52b3f9cd1749c6ba86cc13e9f43947b9ef.
11
12 x11-misc/menulibre/Manifest | 2 +
13 x11-misc/menulibre/menulibre-2.0.7.ebuild | 68 +++++++++++++++++++++++++++++++
14 x11-misc/menulibre/menulibre-2.1.3.ebuild | 68 +++++++++++++++++++++++++++++++
15 3 files changed, 138 insertions(+)
16
17 diff --git a/x11-misc/menulibre/Manifest b/x11-misc/menulibre/Manifest
18 index 40af0a788e9..9ebee3685b0 100644
19 --- a/x11-misc/menulibre/Manifest
20 +++ b/x11-misc/menulibre/Manifest
21 @@ -1,2 +1,4 @@
22 +DIST menulibre-2.0.7.tar.gz 179919 SHA256 29ce8bc117b5aff3bc535f1cb94b356351442e0199f1e94d906f9b234d9c0f66 SHA512 bb0d78b9feaaf6e5c52f339b9174158d819201a0418234f9fcba2783068c56f58ba1c2b0d9d943df7ce47b41d3ef76389691d74031d2283e22526e01db06692c WHIRLPOOL 63b94f88606f15fb64e84860011e0034067356e731fd957fcd75e4e384e26dbc84ef34b8bb7c0215bebfd60157a77cae1bb8f505a5ef6e484250396f78fbd886
23 +DIST menulibre-2.1.3.tar.gz 231336 SHA256 bdd69740119902f1b1f8c7831155f4428403792a0a6c4287bcbb395c4e71fb31 SHA512 0a9040bcb311fe993238e5d1fc459db2400466c538c729ecd5bf2ff20cf9c7300ef2543c56ae4ef7cfa44cd66768ee9a9001ab997fd2507d8d74a246b2029c7a WHIRLPOOL 9d5086659914edda86063844e052078ea96c731d8fc900b50b9f06ecf8286621020afbd60743dcfc4494ee544f3395855cef929d267d726891bc067f09e12c4d
24 DIST menulibre_13.01.4.tar.gz 322686 SHA256 2329b426af55936dc40c7d1bcae99f98b674d06e3757657bd47dcb93d1ac45f3 SHA512 c3311443d00901d0c80078e4f51f81cc2bafbb8048a8eb1f0594e4430e9d8d1c563f4ec6b423952d3e8523f921220bb9d6fa0e4a62453d07011ae781070750d4 WHIRLPOOL b419f3285a97918796c08d0cb7681ada8f6bd19297bdfaea603c2e6256c06d775369d683f150f9c708d26ff2220fceb97d37541143bbcd9d08387e5ebd2967d5
25 DIST menulibre_13.04.17.tar.gz 337166 SHA256 84cd21d92bb16cc221d7fa7ebf801a7493cce8743dd15b65d72af23d4b421a99 SHA512 7e0a2c3d765612a1c9ae9f82206fc180d7edc06dbe294bd200d699ecdb243a28ba58030b94084bc0525540f514642914b4224d766d4c9817ee7ee9ac9074b627 WHIRLPOOL d8d87c4180623a956f3c799b506c8718f1b42dcc7554df20d7e21b612f3134451250f5e5b07db0f672df40b1478b8e4189be94ea1850a8008800fe5c07ad051c
26
27 diff --git a/x11-misc/menulibre/menulibre-2.0.7.ebuild b/x11-misc/menulibre/menulibre-2.0.7.ebuild
28 new file mode 100644
29 index 00000000000..ac7afaa8dcc
30 --- /dev/null
31 +++ b/x11-misc/menulibre/menulibre-2.0.7.ebuild
32 @@ -0,0 +1,68 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python3_4 )
39 +PYTHON_REQ_USE="xml"
40 +DISTUTILS_IN_SOURCE_BUILD=1
41 +inherit distutils-r1 eutils gnome2-utils versionator
42 +
43 +DESCRIPTION="Advanced freedesktop.org compliant menu editor"
44 +HOMEPAGE="http://www.smdavis.us/projects/menulibre/"
45 +SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +DEPEND="
52 + dev-python/python-distutils-extra[${PYTHON_USEDEP}]
53 +"
54 +RDEPEND="
55 + dev-libs/gobject-introspection
56 + dev-python/psutil[${PYTHON_USEDEP}]
57 + dev-python/pygobject:3[${PYTHON_USEDEP}]
58 + dev-python/pyxdg[${PYTHON_USEDEP}]
59 + gnome-base/gnome-menus[introspection]
60 + x11-libs/gdk-pixbuf[X,introspection]
61 + x11-libs/gtk+:3[X,introspection]
62 + x11-libs/gtksourceview:3.0[introspection]
63 + x11-themes/hicolor-icon-theme
64 +"
65 +
66 +python_prepare_all() {
67 + # too many categories
68 + sed -i \
69 + -e 's/X-GNOME-Settings-Panel;X-GNOME-PersonalSettings;DesktopSettings;X-XFCE;//' \
70 + menulibre.desktop.in || die
71 +
72 + local i
73 + # fix incorrect behavior when LINGUAS is set to an empty string
74 + # https://bugs.launchpad.net/python-distutils-extra/+bug/1133594
75 + if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set
76 + for i in $(cd "${S}"/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language
77 + if ! has ${i} ${LINGUAS} ; then # if language is disabled
78 + rm po/${i}.po || die
79 + fi
80 + done
81 + fi
82 +
83 + distutils-r1_python_prepare_all
84 +}
85 +
86 +python_install_all() {
87 + distutils-r1_python_install_all
88 +}
89 +
90 +pkg_preinst() {
91 + gnome2_icon_savelist
92 +}
93 +
94 +pkg_postinst() {
95 + gnome2_icon_cache_update
96 +}
97 +
98 +pkg_postrm() {
99 + gnome2_icon_cache_update
100 +}
101
102 diff --git a/x11-misc/menulibre/menulibre-2.1.3.ebuild b/x11-misc/menulibre/menulibre-2.1.3.ebuild
103 new file mode 100644
104 index 00000000000..ac7afaa8dcc
105 --- /dev/null
106 +++ b/x11-misc/menulibre/menulibre-2.1.3.ebuild
107 @@ -0,0 +1,68 @@
108 +# Copyright 1999-2016 Gentoo Foundation
109 +# Distributed under the terms of the GNU General Public License v2
110 +
111 +EAPI=5
112 +
113 +PYTHON_COMPAT=( python3_4 )
114 +PYTHON_REQ_USE="xml"
115 +DISTUTILS_IN_SOURCE_BUILD=1
116 +inherit distutils-r1 eutils gnome2-utils versionator
117 +
118 +DESCRIPTION="Advanced freedesktop.org compliant menu editor"
119 +HOMEPAGE="http://www.smdavis.us/projects/menulibre/"
120 +SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
121 +
122 +LICENSE="GPL-3"
123 +SLOT="0"
124 +KEYWORDS="~amd64 ~x86"
125 +
126 +DEPEND="
127 + dev-python/python-distutils-extra[${PYTHON_USEDEP}]
128 +"
129 +RDEPEND="
130 + dev-libs/gobject-introspection
131 + dev-python/psutil[${PYTHON_USEDEP}]
132 + dev-python/pygobject:3[${PYTHON_USEDEP}]
133 + dev-python/pyxdg[${PYTHON_USEDEP}]
134 + gnome-base/gnome-menus[introspection]
135 + x11-libs/gdk-pixbuf[X,introspection]
136 + x11-libs/gtk+:3[X,introspection]
137 + x11-libs/gtksourceview:3.0[introspection]
138 + x11-themes/hicolor-icon-theme
139 +"
140 +
141 +python_prepare_all() {
142 + # too many categories
143 + sed -i \
144 + -e 's/X-GNOME-Settings-Panel;X-GNOME-PersonalSettings;DesktopSettings;X-XFCE;//' \
145 + menulibre.desktop.in || die
146 +
147 + local i
148 + # fix incorrect behavior when LINGUAS is set to an empty string
149 + # https://bugs.launchpad.net/python-distutils-extra/+bug/1133594
150 + if [[ -n "${LINGUAS+x}" ]] ; then # if LINGUAS is set
151 + for i in $(cd "${S}"/po ; for p in *.po ; do echo ${p%.po} ; done) ; do # for every supported language
152 + if ! has ${i} ${LINGUAS} ; then # if language is disabled
153 + rm po/${i}.po || die
154 + fi
155 + done
156 + fi
157 +
158 + distutils-r1_python_prepare_all
159 +}
160 +
161 +python_install_all() {
162 + distutils-r1_python_install_all
163 +}
164 +
165 +pkg_preinst() {
166 + gnome2_icon_savelist
167 +}
168 +
169 +pkg_postinst() {
170 + gnome2_icon_cache_update
171 +}
172 +
173 +pkg_postrm() {
174 + gnome2_icon_cache_update
175 +}