Diff windowmaker-0.96.0 with a windowmaker-0.96.0-r1

/usr/portage/x11-wm/windowmaker/windowmaker-0.96.0-r1.ebuild 2025-11-18 18:18:07.584754390 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5
inherit desktop
5

  
6
inherit autotools desktop
6 7

  
7 8
DESCRIPTION="The fast and light GNUstep window manager"
8 9
HOMEPAGE="https://www.windowmaker.org/"
9
SRC_URI="
10
https://github.com/window-maker/wmaker/releases/download/wmaker-${PV}/${P/windowm/WindowM}.tar.gz
11
	https://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz"
10
if [[ ${PV} == 9999 ]]; then
11
	inherit git-r3
12
	EGIT_REPO_URI="https://repo.or.cz/wmaker-crm.git"
13
	SRC_URI="https://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz"
14
else
15
	MY_P="WindowMaker-${PV}"
16
	SRC_URI="
17
		https://github.com/window-maker/wmaker/releases/download/wmaker-${PV}/${MY_P}.tar.gz
18
		https://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz
19
	"
20
	S="${WORKDIR}/${MY_P}"
21
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
22
fi
12 23

  
13
SLOT="0"
24
# WRASTER_CURRENT-WRASTER_AGE.WINGS_CURRENT-WINGS_AGE.WUTIL_CURRENT-WUTIL_AGE from configure.ac
14 25
LICENSE="GPL-2"
26
SLOT="0/6.3.5"
27

  
15 28
IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr"
16
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
17 29

  
18
DEPEND="media-libs/fontconfig
30
DEPEND="
31
	media-libs/fontconfig
32
	media-libs/libexif
33
	x11-libs/libX11
34
	x11-libs/libXext
35
	x11-libs/libXres
19 36
	>=x11-libs/libXft-2.1.0
20 37
	x11-libs/libXmu
21 38
	x11-libs/libXpm
22 39
	x11-libs/libXt
23 40
	x11-libs/libXv
24
	gif? ( >=media-libs/giflib-4.1.0-r3 )
41
	x11-libs/pango
42
	gif? ( >=media-libs/giflib-4.1.0-r3:= )
25 43
	imagemagick? ( >=media-gfx/imagemagick-7:0= )
26 44
	jpeg? ( media-libs/libjpeg-turbo:= )
27 45
	nls? ( virtual/libintl )
......
29 47
	tiff? ( media-libs/tiff:= )
30 48
	webp? ( media-libs/libwebp:= )
31 49
	xinerama? ( x11-libs/libXinerama )
32
	xrandr? ( x11-libs/libXrandr )"
50
	xrandr? ( x11-libs/libXrandr )
51
"
33 52
RDEPEND="${DEPEND}"
34 53
BDEPEND="nls? ( >=sys-devel/gettext-0.10.39 )"
35 54

  
36
S=${WORKDIR}/${P/windowm/WindowM}
37

  
38 55
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL-WMAKER FAQ
39 56
	NEWS README README.definable-cursor README.i18n TODO )
40 57

  
58
src_unpack() {
59
	if [[ ${PV} == 9999 ]]; then
60
		git-r3_src_unpack
61
	fi
62
	default
63
}
64

  
41 65
src_prepare() {
42 66
	# Fix some paths
43 67
	for file in WindowMaker/*menu* util/wmgenmenu.c; do
......
48 72
		fi
49 73
	done
50 74

  
75
	# Not relevant downstram
76
	sed -e '/check-local/d' -i Makefile.am || die
77

  
51 78
	default
79

  
80
	# Fix issues with ignored cflags and mystery linkage to glib, freetype and harfbuzz
81
	eautoreconf
52 82
}
53 83

  
54 84
src_configure() {
85
	# sanity check subslot to kick would be drive by bumpers
86
	local detected_abi
87
	for lib in WRASTER WINGS WUTIL; do
88
		# On Linux libtool will decide soname as CURRENT-AGE rather than just CURRENT
89
		local current="$(sed -n -e "s/${lib}_CURRENT=\([0-9]*\)/\1/p" configure.ac)"
90
		local age="$(sed -n -e "s/${lib}_AGE=\([0-9]*\)/\1/p" configure.ac)"
91
		detected_abi+="$((current-age))."
92
	done
93
	detected_abi="${detected_abi%.}"
94
	if [[ "${SLOT}" != "0/${detected_abi}" ]]; then
95
		if [[ ${PV} == 9999 ]]; then
96
			eerror "SLOT ${SLOT} doesn't match upstream specified ABI ${detected_abi}."
97
		else
98
			die "SLOT ${SLOT} doesn't match upstream specified ABI ${detected_abi}."
99
		fi
100
	fi
101

  
55 102
	local -a myeconfargs=(
103
		--localedir="${EPREFIX}"/usr/share/locale
104
		--sysconfdir="${EPREFIX}"/etc/X11
105
		--disable-static
106
		--enable-usermenu
107
		--with-incs-from=
108
		--with-libs-from=
109
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps
110
		--with-x
111

  
56 112
		# image format types
57 113
		$(use_enable gif)
58 114
		$(use_enable imagemagick magick)
......
75 131
		myeconfargs+=( LINGUAS= )
76 132
	fi
77 133

  
78
	econf \
79
		--localedir="${EPREFIX}"/usr/share/locale \
80
		--sysconfdir="${EPREFIX}"/etc/X11 \
81
		--disable-static \
82
		--enable-usermenu \
83
		--with-{incs,libs}-from= \
84
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
85
		--with-x \
86
		"${myeconfargs[@]}"
134
	econf "${myeconfargs[@]}"
87 135

  
88 136
	pushd ../WindowMaker-extra-0.1 &>/dev/null || die
89 137
	econf
Thank you!