Diff pekwm-0.1.18 with a pekwm-0.2.1

/usr/portage/x11-wm/pekwm/pekwm-0.2.1.ebuild 2023-10-09 14:52:36.004368514 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools desktop
6
inherit cmake desktop optfeature
7 7

  
8 8
DESCRIPTION="A lightweight window manager initially based on aewm++"
9 9
HOMEPAGE="
......
11 11
	https://github.com/pekwm/pekwm
12 12
"
13 13
SRC_URI="
14
	https://github.com/pekwm/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz
15
	themes? ( https://dev.gentoo.org/~jsmolic/distfiles/${PN}-themes.tar.bz2 )
14
	https://github.com/pekwm/${PN}/releases/download/release-${PV}/pekwm-${PV}.tar.gz
16 15
"
17
S="${WORKDIR}"/${PN}-release-${PV}
18 16

  
19 17
LICENSE="GPL-2"
20 18
SLOT="0"
21
KEYWORDS="amd64 ~mips ppc x86"
22
IUSE="contrib debug themes truetype xinerama"
19
KEYWORDS="amd64 ~mips ~ppc x86"
20
IUSE="debug +jpeg +png truetype xinerama +xpm"
23 21

  
24
RDEPEND="media-libs/libpng:0=
25
	virtual/jpeg:0
26
	x11-libs/libXpm
27
	x11-libs/libXrandr
28
	x11-libs/libXrender
22
RDEPEND="
23
	x11-libs/libX11
24
	x11-libs/libXext
25
	jpeg? ( virtual/jpeg:0 )
26
	png? ( media-libs/libpng:0 )
29 27
	truetype? ( x11-libs/libXft )
30
	xinerama? ( x11-libs/libXinerama )"
28
	xinerama? ( x11-libs/libXinerama )
29
	xpm? ( x11-libs/libXpm )"
30

  
31 31
DEPEND="${RDEPEND}"
32 32
BDEPEND="virtual/pkgconfig"
33 33

  
34
src_prepare() {
35
	default
36

  
37
	if use themes; then
38
		rm "${WORKDIR}"/themes/Ace/.theme.swp || die
39
	fi
34
src_configure() {
35
	local mycmakeargs=(
36
		-DENABLE_IMAGE_JPEG=$(usex jpeg)
37
		-DENABLE_IMAGE_PNG=$(usex png)
38
		-DENABLE_IMAGE_XPM=$(usex xpm)
39
		-DENABLE_XINERAMA=$(usex xinerama)
40
		-DENABLE_XFT=$(usex truetype)
41
	)
40 42

  
41
	eautoreconf
42
}
43
	CMAKE_BUILD_TYPE=$(usex debug Debug)
43 44

  
44
src_configure() {
45
	econf \
46
		$(use_enable debug) \
47
		$(use_enable truetype xft) \
48
		$(use_enable xinerama) \
49
		--enable-image-jpeg \
50
		--enable-image-png \
51
		--enable-image-xpm \
52
		--enable-shape \
53
		--enable-xrandr
45
	cmake_src_configure
54 46
}
55 47

  
56 48
src_install() {
57
	default
49

  
50
	cmake_src_install
58 51

  
59 52
	# Install contributor scripts into doc folder
60
	if use contrib; then
61
		docinto contrib
62
		dodoc contrib/lobo/{check.png,pekwm_autoprop.pl,pekwm_menu_config.pl} \
63
			contrib/lobo/{pekwm_menu_config.pl.vars,README,uncheck.png}
64
	fi
65

  
66
	if use themes; then
67
		insinto /usr/share/${PN}/themes
68
		doins -r "${WORKDIR}"/themes/*
69
	fi
53
	docinto contrib
54
	dodoc "${S}"/contrib/lobo/*.{pl,vars,png} "${S}"/contrib/lobo/README
70 55

  
71 56
	# Insert an Xsession
72
	echo -e "#!/bin/sh\n\n/usr/bin/${PN}" > "${T}"/${PN} || die
73 57
	exeinto /etc/X11/Sessions
74
	doexe "${T}"/${PN}
58
	newexe - pekwm <<- _EOF_
59
		#!/bin/sh
60
		/usr/bin/pekwm
61
	_EOF_
75 62

  
76 63
	# Insert a GDM/KDM xsession file
77 64
	make_session_desktop ${PN} ${PN}
78 65
}
79 66

  
80 67
pkg_postinst() {
81
	if use contrib ; then
82
		elog "User contributed scripts have been installed into:"
83
		elog "${EROOT}/usr/share/doc/${PF}/contrib"
84
	fi
68

  
69
	elog "Since pekwm 0.2.0 themes can be installed and maintained using "
70
	elog "pekwm_theme [install|uninstall|show|search|new|update]."
71
	elog "Check https://www.pekwm.se/themes/ for details."
72

  
73
	elog
74

  
75
	optfeature "themes management (pekwm_theme) support" dev-vcs/git
76

  
77
	elog
78

  
79
	elog "User contributed scripts have been installed into:"
80
	elog "${EROOT}/usr/share/doc/${PF}/contrib"
81

  
82
	elog "If updated from previous versions remove '&' from the "
83
	elog "'Exec ... &' in the menu configuration. Quote: "
84
	elog "\"Exec no longer use sh -c to run commands which will cause "
85
	elog "incompatabilites depending on /bin/sh configuration, if shell "
86
	elog "variables have been used or the command ends with &. ShellExec has "
87
	elog "been added implementing the legacy behaviour.\""
85 88
}
Thank you!