Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 763558
Collapse All | Expand All

(-)a/x11-wm/windowmaker/windowmaker-0.95.9-r1.ebuild (-32 / +43 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=7
4
EAPI=7
5
inherit autotools desktop eutils
5
inherit autotools desktop
6
6
7
DESCRIPTION="The fast and light GNUstep window manager"
7
DESCRIPTION="The fast and light GNUstep window manager"
8
HOMEPAGE="https://www.windowmaker.org/"
8
HOMEPAGE="https://www.windowmaker.org/"
Lines 23-39 DEPEND="media-libs/fontconfig Link Here
23
	gif? ( >=media-libs/giflib-4.1.0-r3 )
23
	gif? ( >=media-libs/giflib-4.1.0-r3 )
24
	imagemagick? ( >=media-gfx/imagemagick-7:0= )
24
	imagemagick? ( >=media-gfx/imagemagick-7:0= )
25
	jpeg? ( virtual/jpeg:0= )
25
	jpeg? ( virtual/jpeg:0= )
26
	nls? ( virtual/libintl )
26
	png? ( media-libs/libpng:0= )
27
	png? ( media-libs/libpng:0= )
27
	tiff? ( media-libs/tiff:0 )
28
	tiff? ( media-libs/tiff:0 )
28
	webp? ( media-libs/libwebp )
29
	webp? ( media-libs/libwebp )
29
	xinerama? ( x11-libs/libXinerama )
30
	xinerama? ( x11-libs/libXinerama )
30
	xrandr? ( x11-libs/libXrandr )"
31
	xrandr? ( x11-libs/libXrandr )"
31
RDEPEND="${DEPEND}
32
RDEPEND="${DEPEND}"
32
	nls? ( >=sys-devel/gettext-0.10.39 )"
33
BDEPEND="nls? ( >=sys-devel/gettext-0.10.39 )"
33
34
34
S=${WORKDIR}/${P/windowm/WindowM}
35
S=${WORKDIR}/${P/windowm/WindowM}
35
36
36
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL INSTALL-WMAKER FAQ
37
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL-WMAKER FAQ
37
	NEWS README README.definable-cursor README.i18n TODO )
38
	NEWS README README.definable-cursor README.i18n TODO )
38
PATCHES=( "${FILESDIR}"/${PN}-0.95.8-configure_default_search_paths.patch )
39
PATCHES=( "${FILESDIR}"/${PN}-0.95.8-configure_default_search_paths.patch )
39
40
Lines 44-81 src_prepare() { Link Here
44
			sed -i -e "s|/usr/local/GNUstep/Applications/WPrefs.app|${EPREFIX}/usr/bin/|g;" "$file" || die
45
			sed -i -e "s|/usr/local/GNUstep/Applications/WPrefs.app|${EPREFIX}/usr/bin/|g;" "$file" || die
45
			sed -i -e "s|/usr/local/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
46
			sed -i -e "s|/usr/local/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
46
			sed -i -e "s|/opt/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
47
			sed -i -e "s|/opt/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
47
		fi;
48
		fi
48
	done;
49
	done
49
50
50
	default
51
	default
51
	eautoreconf
52
	eautoreconf
52
}
53
}
53
54
54
src_configure() {
55
src_configure() {
55
	local myconf
56
	local -a myeconfargs=(
56
57
		# image format types
57
	# image format types
58
		$(use_enable gif)
58
	myconf="$(use_enable imagemagick magick) $(use_enable jpeg) $(use_enable gif) $(use_enable png) $(use_enable tiff) $(use_enable webp) $(use_enable xpm)"
59
		$(use_enable imagemagick magick)
59
60
		$(use_enable jpeg)
60
	# non required X capabilities
61
		$(use_enable png)
61
	myconf="${myconf} $(use_enable modelock) $(use_enable xrandr randr) $(use_enable xinerama)"
62
		$(use_enable tiff)
62
63
		$(use_enable webp)
64
		$(use_enable xpm)
65
66
		# optional X capabilities
67
		$(use_enable modelock)
68
		$(use_enable xinerama)
69
		$(use_enable xrandr randr)
70
	)
71
72
	# NLS depends on whether LINGUAS is empty
63
	if use nls; then
73
	if use nls; then
64
		[[ -z $LINGUAS ]] && export LINGUAS="$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:' | xargs)"
74
		myeconfargs+=( LINGUAS="${LINGUAS:-$(cd po; x=(*.po); echo ${x[*]%.po})}" )
65
	else
75
	else
66
		myconf="${myconf} --disable-locale"
76
		myeconfargs+=( LINGUAS= )
67
	fi
77
	fi
68
78
69
	# default settings with $myconf appended
70
	econf \
79
	econf \
80
		--localedir="${EPREFIX}"/usr/share/locale \
71
		--sysconfdir="${EPREFIX}"/etc/X11 \
81
		--sysconfdir="${EPREFIX}"/etc/X11 \
72
		--with-x \
82
		--disable-static \
73
		--enable-usermenu \
83
		--enable-usermenu \
84
		--with-{incs,libs}-from= \
74
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
85
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
75
		--localedir="${EPREFIX}"/usr/share/locale \
86
		--with-x \
76
		${myconf}
87
		"${myeconfargs[@]}"
77
88
78
	pushd ../WindowMaker-extra-0.1 || die
89
	pushd ../WindowMaker-extra-0.1 &>/dev/null || die
79
	econf
90
	econf
80
}
91
}
81
92
Lines 83-108 src_compile() { Link Here
83
	emake
94
	emake
84
95
85
	# WindowMaker Extra Package (themes and icons)
96
	# WindowMaker Extra Package (themes and icons)
86
	pushd ../WindowMaker-extra-0.1 || die
97
	emake -C ../WindowMaker-extra-0.1
87
	emake
88
}
98
}
89
99
90
src_install() {
100
src_install() {
91
	default
101
	default
92
102
93
	# WindowMaker Extra
103
	# WindowMaker Extra
94
	pushd ../WindowMaker-extra-0.1 || die
104
	emake -C ../WindowMaker-extra-0.1 DESTDIR="${D}" install
95
	emake DESTDIR="${D}" install
105
	newdoc ../WindowMaker-extra-0.1/README README.extra
96
97
	newdoc README README.extra
98
106
99
	# create wmaker session shell script
107
	# create wmaker session shell script
100
	echo "#!/usr/bin/env bash" > wmaker
108
	exeinto /etc/X11/Sessions
101
	echo "${EPREFIX}/usr/bin/wmaker" >> wmaker
109
	newexe - wmaker <<- EOF
102
	exeinto /etc/X11/Sessions/
110
	#!/usr/bin/env bash
103
	doexe wmaker
111
	${EPREFIX}/usr/bin/wmaker
112
	EOF
104
113
105
	insinto /usr/share/xsessions
114
	insinto /usr/share/xsessions
106
	doins "${FILESDIR}"/wmaker.desktop
115
	doins "${FILESDIR}"/wmaker.desktop
107
	make_desktop_entry /usr/bin/wmaker
116
	make_desktop_entry /usr/bin/wmaker
117
118
	find "${ED}" -type f -name '*.la' -delete || die
108
}
119
}
(-)a/x11-wm/windowmaker/windowmaker-9999.ebuild (-33 / +43 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=7
4
EAPI=7
5
inherit autotools desktop eutils git-r3
5
inherit autotools desktop git-r3
6
6
7
DESCRIPTION="The fast and light GNUstep window manager"
7
DESCRIPTION="The fast and light GNUstep window manager"
8
HOMEPAGE="https://www.windowmaker.org/"
8
HOMEPAGE="https://www.windowmaker.org/"
Lines 24-38 DEPEND="media-libs/fontconfig Link Here
24
	gif? ( >=media-libs/giflib-4.1.0-r3 )
24
	gif? ( >=media-libs/giflib-4.1.0-r3 )
25
	imagemagick? ( >=media-gfx/imagemagick-7:0= )
25
	imagemagick? ( >=media-gfx/imagemagick-7:0= )
26
	jpeg? ( virtual/jpeg:0= )
26
	jpeg? ( virtual/jpeg:0= )
27
	nls? ( virtual/libintl )
27
	png? ( media-libs/libpng:0= )
28
	png? ( media-libs/libpng:0= )
28
	tiff? ( media-libs/tiff:0 )
29
	tiff? ( media-libs/tiff:0 )
29
	webp? ( media-libs/libwebp )
30
	webp? ( media-libs/libwebp )
30
	xinerama? ( x11-libs/libXinerama )
31
	xinerama? ( x11-libs/libXinerama )
31
	xrandr? ( x11-libs/libXrandr )"
32
	xrandr? ( x11-libs/libXrandr )"
32
RDEPEND="${DEPEND}
33
RDEPEND="${DEPEND}"
33
	nls? ( >=sys-devel/gettext-0.10.39 )"
34
BDEPEND="nls? ( >=sys-devel/gettext-0.10.39 )"
34
35
35
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL INSTALL-WMAKER FAQ
36
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL-WMAKER FAQ
36
	NEWS README README.definable-cursor README.i18n TODO )
37
	NEWS README README.definable-cursor README.i18n TODO )
37
38
38
src_unpack() {
39
src_unpack() {
Lines 49-86 src_prepare() { Link Here
49
			sed -i -e "s|/usr/local/GNUstep/Applications/WPrefs.app|${EPREFIX}/usr/bin/|g;" "$file" || die
50
			sed -i -e "s|/usr/local/GNUstep/Applications/WPrefs.app|${EPREFIX}/usr/bin/|g;" "$file" || die
50
			sed -i -e "s|/usr/local/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
51
			sed -i -e "s|/usr/local/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
51
			sed -i -e "s|/opt/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
52
			sed -i -e "s|/opt/share/WindowMaker|${EPREFIX}/usr/share/WindowMaker|g;" "$file" || die
52
		fi;
53
		fi
53
	done;
54
	done
54
55
55
	default
56
	default
56
	eautoreconf
57
	eautoreconf
57
}
58
}
58
59
59
src_configure() {
60
src_configure() {
60
	local myconf
61
	local -a myeconfargs=(
61
62
		# image format types
62
	# image format types
63
		$(use_enable gif)
63
	myconf="$(use_enable imagemagick magick) $(use_enable jpeg) $(use_enable gif) $(use_enable png) $(use_enable tiff) $(use_enable webp) $(use_enable xpm)"
64
		$(use_enable imagemagick magick)
64
65
		$(use_enable jpeg)
65
	# non required X capabilities
66
		$(use_enable png)
66
	myconf="${myconf} $(use_enable modelock) $(use_enable xrandr randr) $(use_enable xinerama)"
67
		$(use_enable tiff)
67
68
		$(use_enable webp)
69
		$(use_enable xpm)
70
71
		# optional X capabilities
72
		$(use_enable modelock)
73
		$(use_enable xinerama)
74
		$(use_enable xrandr randr)
75
	)
76
77
	# NLS depends on whether LINGUAS is empty
68
	if use nls; then
78
	if use nls; then
69
		[[ -z $LINGUAS ]] && export LINGUAS="$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:' | xargs)"
79
		myeconfargs+=( LINGUAS="${LINGUAS:-$(cd po; x=(*.po); echo ${x[*]%.po})}" )
70
	else
80
	else
71
		myconf="${myconf} --disable-locale"
81
		myeconfargs+=( LINGUAS= )
72
	fi
82
	fi
73
83
74
	# default settings with $myconf appended
75
	econf \
84
	econf \
85
		--localedir="${EPREFIX}"/usr/share/locale \
76
		--sysconfdir="${EPREFIX}"/etc/X11 \
86
		--sysconfdir="${EPREFIX}"/etc/X11 \
77
		--with-x \
87
		--disable-static \
78
		--enable-usermenu \
88
		--enable-usermenu \
89
		--with-{incs,libs}-from= \
79
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
90
		--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
80
		--localedir="${EPREFIX}"/usr/share/locale \
91
		--with-x \
81
		${myconf}
92
		"${myeconfargs[@]}"
82
93
83
	pushd ../WindowMaker-extra-0.1 || die
94
	pushd ../WindowMaker-extra-0.1 &>/dev/null || die
84
	econf
95
	econf
85
}
96
}
86
97
Lines 88-113 src_compile() { Link Here
88
	emake
99
	emake
89
100
90
	# WindowMaker Extra Package (themes and icons)
101
	# WindowMaker Extra Package (themes and icons)
91
	pushd ../WindowMaker-extra-0.1 || die
102
	emake -C ../WindowMaker-extra-0.1
92
	emake
93
}
103
}
94
104
95
src_install() {
105
src_install() {
96
	default
106
	default
97
107
98
	# WindowMaker Extra
108
	# WindowMaker Extra
99
	pushd ../WindowMaker-extra-0.1 || die
109
	emake -C ../WindowMaker-extra-0.1 DESTDIR="${D}" install
100
	emake DESTDIR="${D}" install
110
	newdoc ../WindowMaker-extra-0.1/README README.extra
101
102
	newdoc README README.extra
103
111
104
	# create wmaker session shell script
112
	# create wmaker session shell script
105
	echo "#!/usr/bin/env bash" > wmaker
113
	exeinto /etc/X11/Sessions
106
	echo "${EPREFIX}/usr/bin/wmaker" >> wmaker
114
	newexe - wmaker <<- EOF
107
	exeinto /etc/X11/Sessions/
115
	#!/usr/bin/env bash
108
	doexe wmaker
116
	${EPREFIX}/usr/bin/wmaker
117
	EOF
109
118
110
	insinto /usr/share/xsessions
119
	insinto /usr/share/xsessions
111
	doins "${FILESDIR}"/wmaker.desktop
120
	doins "${FILESDIR}"/wmaker.desktop
112
	make_desktop_entry /usr/bin/wmaker
121
	make_desktop_entry /usr/bin/wmaker
122
123
	find "${ED}" -type f -name '*.la' -delete || die
113
}
124
}
114
- 

Return to bug 763558