blob: a3cb69c8675c80caf64669b0193a253bdb91aacf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="The fast and light GNUstep window manager"
HOMEPAGE="https://www.windowmaker.org/"
SRC_URI="https://windowmaker.org/pub/source/release/${P/windowm/WindowM}.tar.gz
https://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz"
SLOT="0"
LICENSE="GPL-2"
IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr"
KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
DEPEND="media-libs/fontconfig
>=x11-libs/libXft-2.1.0
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt
x11-libs/libXv
gif? ( >=media-libs/giflib-4.1.0-r3 )
imagemagick? ( >=media-gfx/imagemagick-7:0= )
jpeg? ( media-libs/libjpeg-turbo:= )
nls? ( virtual/libintl )
png? ( media-libs/libpng:= )
tiff? ( media-libs/tiff:= )
webp? ( media-libs/libwebp:= )
xinerama? ( x11-libs/libXinerama )
xrandr? ( x11-libs/libXrandr )"
RDEPEND="${DEPEND}"
BDEPEND="nls? ( >=sys-devel/gettext-0.10.39 )"
S=${WORKDIR}/${P/windowm/WindowM}
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL-WMAKER FAQ
NEWS README README.definable-cursor README.i18n TODO )
PATCHES=( "${FILESDIR}"/${PN}-0.95.8-configure_default_search_paths.patch )
src_prepare() {
# Fix some paths
for file in WindowMaker/*menu* util/wmgenmenu.c; do
if [[ -r $file ]] ; then
sed -i -e "s|/usr/local/GNUstep/Applications/WPrefs.app|${EPREFIX}/usr/bin/|g;" "$file" || die
sed -i -e "s|/usr/local/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
sed -i -e "s|/opt/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
fi
done
default
eautoreconf
}
src_configure() {
local -a myeconfargs=(
# image format types
$(use_enable gif)
$(use_enable imagemagick magick)
$(use_enable jpeg)
$(use_enable png)
$(use_enable tiff)
$(use_enable webp)
$(use_enable xpm)
# optional X capabilities
$(use_enable modelock)
$(use_enable xinerama)
$(use_enable xrandr randr)
)
# NLS depends on whether LINGUAS is empty
if use nls; then
myeconfargs+=( LINGUAS="${LINGUAS:-$(cd po; x=(*.po); echo ${x[*]%.po})}" )
else
myeconfargs+=( LINGUAS= )
fi
econf \
--localedir="${EPREFIX}"/usr/share/locale \
--sysconfdir="${EPREFIX}"/etc/X11 \
--disable-static \
--enable-usermenu \
--with-{incs,libs}-from= \
--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
--with-x \
"${myeconfargs[@]}"
pushd ../WindowMaker-extra-0.1 &>/dev/null || die
econf
}
src_compile() {
emake
# WindowMaker Extra Package (themes and icons)
emake -C ../WindowMaker-extra-0.1
}
src_install() {
default
# WindowMaker Extra
emake -C ../WindowMaker-extra-0.1 DESTDIR="${D}" install
newdoc ../WindowMaker-extra-0.1/README README.extra
# create wmaker session shell script
echo "#!/usr/bin/env bash" > wmaker
echo "${EPREFIX}/usr/bin/wmaker" >> wmaker
exeinto /etc/X11/Sessions/
doexe wmaker
insinto /usr/share/xsessions
doins "${FILESDIR}"/wmaker.desktop
make_desktop_entry /usr/bin/wmaker
find "${ED}" -type f -name '*.la' -delete || die
}
|