Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/menumaker/files/, x11-misc/menumaker/
Date: Sun, 28 Jun 2020 10:41:24
Message-Id: 1593340858.ae59c31266e4b61d6d78ad3dde1eba6f7ba4b833.juippis@gentoo
1 commit: ae59c31266e4b61d6d78ad3dde1eba6f7ba4b833
2 Author: Chris Mayo <aklhfex <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 14 18:16:45 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 28 10:40:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae59c312
7
8 x11-misc/menumaker: bump to 0.99.12
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 x11-misc/menumaker/Manifest | 1 +
15 .../files/menumaker-0.99.12-AM_PATH_PYTHON.patch | 101 +++++++++++++++++++++
16 x11-misc/menumaker/menumaker-0.99.12.ebuild | 49 ++++++++++
17 3 files changed, 151 insertions(+)
18
19 diff --git a/x11-misc/menumaker/Manifest b/x11-misc/menumaker/Manifest
20 index 5bd926640a2..075a2e4b8c1 100644
21 --- a/x11-misc/menumaker/Manifest
22 +++ b/x11-misc/menumaker/Manifest
23 @@ -1,2 +1,3 @@
24 DIST menumaker-0.99.10.tar.gz 202580 BLAKE2B 2fb53359a6e4b14fe8966c3fbb6d0f381a3ad9e52463d37edbef47a409b0ecf4f17bd7221395987d4cd49f363007aa97f0d6182595a571f1baab4e7977c06bff SHA512 e7a731ac848089cbdb845fdb0e344b48e70d3bb7220870127d3616549d31fa62b61a48e3efff52d7767b597a4407a8548e776c16976072d0aa7f5c96740cd207
25 DIST menumaker-0.99.11.tar.gz 205196 BLAKE2B 5f1fa9cbf4fd739499db86f9173fbbea2c96900597d13185f2a2f2b5746a0a2c05d12b115782488cb5b1df1f48638bb831dbee4bb14c414fc11328f43d241c46 SHA512 b45b8f2de4e63bad673bf4463ac074b068d4889cf37644962d51e1514d07bef827679d060d1503e59ea4bfc460fdc643d850921b3a02babd1ea57249511ffa5a
26 +DIST menumaker-0.99.12.tar.gz 206208 BLAKE2B c909a103bd031f385a1b7c19c8f17ac97310b3f19b2cf3eeb4b77ebfa82ac388cb9d76b1c88523942ce9d20016ba86bd4fa3741b31e3f6cd9ca63e10c8cab65e SHA512 dceef85da4d68a7f13bb59e1d93a51632d4134e55c59fa9cdf4ec4497eb502959c1b65ccaa56c2410f2fc5a770a9b023ddec05e80d186c88cdc1a351e1869af6
27
28 diff --git a/x11-misc/menumaker/files/menumaker-0.99.12-AM_PATH_PYTHON.patch b/x11-misc/menumaker/files/menumaker-0.99.12-AM_PATH_PYTHON.patch
29 new file mode 100644
30 index 00000000000..4df6939ce01
31 --- /dev/null
32 +++ b/x11-misc/menumaker/files/menumaker-0.99.12-AM_PATH_PYTHON.patch
33 @@ -0,0 +1,101 @@
34 +diff --git a/Makefile.am b/Makefile.am
35 +index b00b7bc..e1395ac 100644
36 +--- a/Makefile.am
37 ++++ b/Makefile.am
38 +@@ -1,15 +1,54 @@
39 +-ACLOCAL_AMFLAGS = -I m4
40 +-
41 + SUBDIRS = doc
42 +
43 + dist_bin_SCRIPTS = mmaker
44 +
45 +-nobase_dist_pkgdata_DATA = *.py MenuMaker/*.py Prophet/*.py Prophet/Desktop/*.py Prophet/Legacy/*.py Prophet/Debian/*.py Prophet/Debian/menu/*
46 ++python_PYTHON = \
47 ++ Config.py \
48 ++ Keywords.py \
49 ++ Paths.py
50 ++
51 ++pythonMenuMakerdir = $(pythondir)/MenuMaker
52 ++pythonMenuMaker_PYTHON = \
53 ++ MenuMaker/BlackBox.py \
54 ++ MenuMaker/CLI.py \
55 ++ MenuMaker/Deskmenu.py \
56 ++ MenuMaker/FluxBox.py \
57 ++ MenuMaker/IceWM.py \
58 ++ MenuMaker/__init__.py \
59 ++ MenuMaker/JWM.py \
60 ++ MenuMaker/OpenBox3.py \
61 ++ MenuMaker/PekWM.py \
62 ++ MenuMaker/WindowMaker.py \
63 ++ MenuMaker/xBox.py \
64 ++ MenuMaker/Xfce4.py
65 ++
66 ++pythonProphetdir = $(pythondir)/Prophet
67 ++pythonProphet_PYTHON = \
68 ++ Prophet/Categories.py \
69 ++ Prophet/__init__.py
70 ++
71 ++pythonProphetDesktopdir = $(pythondir)/Prophet/Desktop
72 ++pythonProphetDesktop_PYTHON = \
73 ++ Prophet/Desktop/__init__.py
74 ++
75 ++pythonProphetLegacydir = $(pythondir)/Prophet/Legacy
76 ++pythonProphetLegacy_PYTHON = \
77 ++ Prophet/Legacy/Development.py \
78 ++ Prophet/Legacy/Editor.py \
79 ++ Prophet/Legacy/Emulator.py \
80 ++ Prophet/Legacy/Graphics.py \
81 ++ Prophet/Legacy/__init__.py \
82 ++ Prophet/Legacy/Multimedia.py \
83 ++ Prophet/Legacy/Network.py \
84 ++ Prophet/Legacy/Shell.py
85 +
86 +-install-exec-local :
87 +- echo "#!/usr/bin/env $(PYTHON_BIN)" > $(DESTDIR)/$(bindir)/mmaker
88 +- echo "import sys; sys.path = ['$(pkgdatadir)'] + sys.path" >> $(DESTDIR)/$(bindir)/mmaker
89 +- echo "import MenuMaker.CLI" >> $(DESTDIR)/$(bindir)/mmaker
90 ++pythonProphetDebiandir = $(pythondir)/Prophet/Debian
91 ++pythonProphetDebian_PYTHON = \
92 ++ Prophet/Debian/__init__.py
93 +
94 +-install-data-local :
95 +- $(PYTHON) -c 'import compileall; compileall.compile_dir(dir="$(DESTDIR)/$(pkgdatadir)", ddir="$(pkgdatadir)")'
96 ++pythonProphetDebianMenudir = $(pythondir)/Prophet/Debian/menu
97 ++dist_pythonProphetDebianMenu_DATA = \
98 ++ Prophet/Debian/menu/debian-2.2r5 \
99 ++ Prophet/Debian/menu/debian-8.1 \
100 ++ Prophet/Debian/menu/ubuntu-5.04 \
101 ++ Prophet/Debian/menu/ubuntu-5.10
102 +diff --git a/configure.ac b/configure.ac
103 +index 9ffeee7..604af4e 100644
104 +--- a/configure.ac
105 ++++ b/configure.ac
106 +@@ -2,22 +2,12 @@ AC_INIT(MenuMaker, 0.99.12)
107 +
108 + AM_INIT_AUTOMAKE
109 +
110 +-#AZ_PYTHON_DEFAULT
111 ++AM_PATH_PYTHON
112 +
113 +-#AZ_PYTHON_WITH
114 +-
115 +-#if test -z "$PYTHON"; then
116 +-# AZ_PYTHON_PATH
117 +-#fi
118 +-
119 +-#AZ_PYTHON_VERSION_ENSURE([2.7])
120 +-
121 +-#AZ_PYTHON_RUN
122 +-
123 +-AX_PYTHON
124 +-
125 +-AC_CONFIG_FILES([Makefile])
126 +-AC_CONFIG_FILES([doc/Makefile])
127 +-AC_CONFIG_FILES([Config.py])
128 ++AC_CONFIG_FILES([
129 ++ Makefile
130 ++ doc/Makefile
131 ++ Config.py
132 ++])
133 +
134 + AC_OUTPUT
135
136 diff --git a/x11-misc/menumaker/menumaker-0.99.12.ebuild b/x11-misc/menumaker/menumaker-0.99.12.ebuild
137 new file mode 100644
138 index 00000000000..311238de918
139 --- /dev/null
140 +++ b/x11-misc/menumaker/menumaker-0.99.12.ebuild
141 @@ -0,0 +1,49 @@
142 +# Copyright 1999-2020 Gentoo Authors
143 +# Distributed under the terms of the GNU General Public License v2
144 +
145 +EAPI=7
146 +
147 +PYTHON_COMPAT=( python3_{6,7,8} )
148 +
149 +inherit autotools python-single-r1
150 +
151 +DESCRIPTION="Utility that scans through the system and generates a menu of installed programs"
152 +HOMEPAGE="http://menumaker.sourceforge.net/"
153 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
154 +
155 +LICENSE="BSD"
156 +SLOT="0"
157 +KEYWORDS="~amd64 ~ppc ~x86"
158 +
159 +IUSE="doc"
160 +
161 +RDEPEND="${PYTHON_DEPS}"
162 +DEPEND="${RDEPEND}
163 + doc? ( sys-apps/texinfo )"
164 +
165 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
166 +
167 +PATCHES=(
168 + "${FILESDIR}"/${P}-AM_PATH_PYTHON.patch
169 +)
170 +
171 +src_prepare() {
172 + default
173 + eautoreconf
174 +}
175 +
176 +src_configure() {
177 + ECONF_SOURCE="${S}" econf PYTHON="${EPYTHON}"
178 +}
179 +
180 +src_compile() {
181 + default
182 + use doc && emake html
183 +}
184 +
185 +src_install() {
186 + default
187 + use doc && emake DESTDIR="${D}" install-html
188 + python_optimize
189 + python_fix_shebang "${ED}"/usr/bin/mmaker
190 +}