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-wm/pekwm/
Date: Thu, 03 Mar 2022 10:59:24
Message-Id: 1646305159.3274ca3cb9c734dec4a74c1900376d47338c1ecd.juippis@gentoo
1 commit: 3274ca3cb9c734dec4a74c1900376d47338c1ecd
2 Author: Vlastimil Krejčíř <vlastimil.krejcir <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 24 21:49:03 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 3 10:59:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3274ca3c
7
8 x11-wm/pekwm: version bump 0.2.1
9
10 A new ebuild for pekwm version 0.2.1. Pekwm moved to Cmake since version
11 0.2.0, so the older ebuilds based on autotools can't be used and this
12 one was created from scratch.
13
14 Changes:
15
16 - Themes are handled by pekwm_theme app (requires git) and not need to be
17 installed by ebuild.
18 - Significant change to pekwm menu config (Exec vs. ShellExec and '&'
19 usage) that causes some apps doesn't start (e.g. thunderbird-bin).
20 - Remove contrib USE flag and install contrib scripts unconditionally and
21 post the postinst message unconditionally.
22
23 Package-Manager: Portage-3.0.30, Repoman-3.0.3
24 Signed-off-by: Vlastimil Krejčíř <vlastimil.krejcir <AT> gmail.com>
25 Closes: https://github.com/gentoo/gentoo/pull/24340
26 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
27
28 x11-wm/pekwm/Manifest | 1 +
29 x11-wm/pekwm/pekwm-0.2.1.ebuild | 88 +++++++++++++++++++++++++++++++++++++++++
30 2 files changed, 89 insertions(+)
31
32 diff --git a/x11-wm/pekwm/Manifest b/x11-wm/pekwm/Manifest
33 index 3e6d8f6527fd..26578e86af6c 100644
34 --- a/x11-wm/pekwm/Manifest
35 +++ b/x11-wm/pekwm/Manifest
36 @@ -1,3 +1,4 @@
37 DIST pekwm-0.1.17.tar.gz 429100 BLAKE2B 2b467539ef47f4404411f25146f9f945f9a63b7e4c85c997ed2cd0bf76ea713758e3a09dc9648064c02ab29818399623d12d78394f250c79f8f667a6e057281c SHA512 1950888402f11c5cd72c9d82de976c472d4a0443da206629a039d19a1729660fd7cd09535d35984d554dcdb366918d9e29536b1272521f36f7e54499df0c14af
38 DIST pekwm-0.1.18.tar.gz 441810 BLAKE2B 8c3e98490681eed68e0f127c38c1653f8d643ceca2ddf8388f6b434d16daeb376fc9337de71786a658e9d9e7a080de922207173edb624b78732bc14da5d42eeb SHA512 31fe291b245b6e13fdfe27878162fd405fd60a766e9a7e762e817391179e7f82c41b664fba568af91e009582729e4633d23f76db95302f6f702cb74c2571db15
39 +DIST pekwm-0.2.1.tar.gz 943072 BLAKE2B 61a278a42517de4b2924c6e0cffdd0b112c3a1a52b70e24d6ed852a8e5005f76b4eb9a342af073481404fae68265452b140ea19539723733ec860f7cbd615598 SHA512 cefb5abb43f88cff874f12586f0f2c0b88d30fd0ce22c6e18731b11055abea389819a08a4e85a9290021ffe30708ea210c66a0f3f8c263717c05abd798fdf297
40 DIST pekwm-themes.tar.bz2 138599 BLAKE2B b0c103d7ade6f9bb1ed19b7e12cfcf00fb48be7e1ed141a4b52aee404ebf9c7af5d29af166ff7265a720ca8d122ad7eddb6eaf42a0a8e18b6c1ff3af7b5e12d0 SHA512 c95bc980b5aeeb4f4832cb2dbbf82adf72e4a784fcd46432fd6e6a6577ef02823ec1c4b861d07747c066050fc5040aca975e2cdc78342abab99a3d486888a25d
41
42 diff --git a/x11-wm/pekwm/pekwm-0.2.1.ebuild b/x11-wm/pekwm/pekwm-0.2.1.ebuild
43 new file mode 100644
44 index 000000000000..8f6cd45e0704
45 --- /dev/null
46 +++ b/x11-wm/pekwm/pekwm-0.2.1.ebuild
47 @@ -0,0 +1,88 @@
48 +# Copyright 1999-2022 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=8
52 +
53 +inherit cmake desktop optfeature
54 +
55 +DESCRIPTION="A lightweight window manager initially based on aewm++"
56 +HOMEPAGE="
57 + https://www.pekwm.se/
58 + https://github.com/pekdon/pekwm
59 +"
60 +SRC_URI="
61 + https://github.com/pekdon/${PN}/releases/download/release-${PV}/pekwm-${PV}.tar.gz
62 +"
63 +
64 +LICENSE="GPL-2"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~mips ~ppc ~x86"
67 +IUSE="debug +jpeg +png truetype xinerama +xpm"
68 +
69 +RDEPEND="
70 + x11-libs/libX11
71 + x11-libs/libXext
72 + jpeg? ( virtual/jpeg:0 )
73 + png? ( media-libs/libpng:0 )
74 + truetype? ( x11-libs/libXft )
75 + xinerama? ( x11-libs/libXinerama )
76 + xpm? ( x11-libs/libXpm )"
77 +
78 +DEPEND="${RDEPEND}"
79 +BDEPEND="virtual/pkgconfig"
80 +
81 +src_configure() {
82 + local mycmakeargs=(
83 + -DENABLE_IMAGE_JPEG=$(usex jpeg)
84 + -DENABLE_IMAGE_PNG=$(usex png)
85 + -DENABLE_IMAGE_XPM=$(usex xpm)
86 + -DENABLE_XINERAMA=$(usex xinerama)
87 + -DENABLE_XFT=$(usex truetype)
88 + )
89 +
90 + CMAKE_BUILD_TYPE=$(usex debug Debug)
91 +
92 + cmake_src_configure
93 +}
94 +
95 +src_install() {
96 +
97 + cmake_src_install
98 +
99 + # Install contributor scripts into doc folder
100 + docinto contrib
101 + dodoc "${S}"/contrib/lobo/*.{pl,vars,png} "${S}"/contrib/lobo/README
102 +
103 + # Insert an Xsession
104 + exeinto /etc/X11/Sessions
105 + newexe - pekwm <<- _EOF_
106 + #!/bin/sh
107 + /usr/bin/pekwm
108 + _EOF_
109 +
110 + # Insert a GDM/KDM xsession file
111 + make_session_desktop ${PN} ${PN}
112 +}
113 +
114 +pkg_postinst() {
115 +
116 + elog "Since pekwm 0.2.0 themes can be installed and maintained using "
117 + elog "pekwm_theme [install|uninstall|show|search|new|update]."
118 + elog "Check https://www.pekwm.se/themes/ for details."
119 +
120 + elog
121 +
122 + optfeature "themes management (pekwm_theme) support" dev-vcs/git
123 +
124 + elog
125 +
126 + elog "User contributed scripts have been installed into:"
127 + elog "${EROOT}/usr/share/doc/${PF}/contrib"
128 +
129 + elog "If updated from previous versions remove '&' from the "
130 + elog "'Exec ... &' in the menu configuration. Quote: "
131 + elog "\"Exec no longer use sh -c to run commands which will cause "
132 + elog "incompatabilites depending on /bin/sh configuration, if shell "
133 + elog "variables have been used or the command ends with &. ShellExec has "
134 + elog "been added implementing the legacy behaviour.\""
135 +}