1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-03-23 04:53:33 +01:00

Windowmaker ebuild update.

Added patch for respecting window fixed size content (like terminals)
even in maximized state (basically rollback of 370adc94e commit).
Aligned ebuild with upstream.
This commit is contained in:
2023-03-12 11:17:11 +01:00
parent b20a64f106
commit 921c332ae9
3 changed files with 88 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3
inherit autotools desktop git-r3
DESCRIPTION="The fast and light GNUstep window manager - gryf's personal ebuild"
HOMEPAGE="http://www.windowmaker.org/"
@@ -13,7 +13,7 @@ EGIT_COMMIT="${EGIT_COMMIT:-}"
SLOT="0"
LICENSE="GPL-2"
IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr"
IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr -term"
KEYWORDS="~amd64 ~x86"
DEPEND="media-libs/fontconfig
@@ -24,14 +24,18 @@ DEPEND="media-libs/fontconfig
x11-libs/libXv
gif? ( >=media-libs/giflib-4.1.0-r3 )
imagemagick? ( >=media-gfx/imagemagick-7:0= )
jpeg? ( virtual/jpeg:0= )
nls? ( >=sys-devel/gettext-0.10.39 )
png? ( media-libs/libpng:0= )
tiff? ( media-libs/tiff:0 )
webp? ( media-libs/libwebp )
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 )"
DOCS=( AUTHORS BUGFORM BUGS ChangeLog INSTALL-WMAKER FAQ
NEWS README README.definable-cursor README.i18n TODO )
src_unpack() {
# wm-extras
@@ -41,48 +45,62 @@ src_unpack() {
}
src_prepare() {
# Add info about commit in About window
local git_revision=$(git log --pretty=format:'%h' -n 1)
sed -i -e "s/\(AC_INIT(\[WindowMaker\],\[[^]]*\)\]/\1, rev.${git_revision}\]/" configure.ac || die
# 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
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
if use term; then
epatch "${FILESDIR}"/wmaker-ignore-max-for-terminals.patch
fi
default
eautoreconf
}
src_configure() {
local myconf
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)
# image format types
myconf="$(use_enable imagemagick magick) $(use_enable jpeg) $(use_enable gif) $(use_enable png) $(use_enable tiff) $(use_enable webp) $(use_enable xpm)"
# non required X capabilities
myconf="${myconf} $(use_enable modelock) $(use_enable xrandr randr) $(use_enable xinerama)"
# optional X capabilities
$(use_enable modelock)
$(use_enable xinerama)
$(use_enable xrandr randr)
)
# NLS depends on whether LINGUAS is empty
if use nls; then
[[ -z $LINGUAS ]] && export LINGUAS="$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:' | xargs)"
myeconfargs+=( LINGUAS="${LINGUAS:-$(cd po; x=(*.po); echo ${x[*]%.po})}" )
else
myconf="${myconf} --disable-locale"
myeconfargs+=( LINGUAS= )
fi
# default settings with $myconf appended
econf \
--localedir="${EPREFIX}"/usr/share/locale \
--sysconfdir="${EPREFIX}"/etc/X11 \
--with-x \
--enable-debug \
--enable-usermenu \
--with-{incs,libs}-from= \
--with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
--localedir="${EPREFIX}"/usr/share/locale \
${myconf}
--with-x \
"${myeconfargs[@]}"
pushd ../WindowMaker-extra-0.1 || die
pushd ../WindowMaker-extra-0.1 &>/dev/null || die
econf
}
@@ -90,18 +108,15 @@ src_compile() {
emake
# WindowMaker Extra Package (themes and icons)
pushd ../WindowMaker-extra-0.1 || die
emake
emake -C ../WindowMaker-extra-0.1
}
src_install() {
default
# WindowMaker Extra
pushd ../WindowMaker-extra-0.1 || die
emake DESTDIR="${D}" install
newdoc README README.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