portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

Commit: 47b274d4353ba93c0555a6499c5a77da903215f4
Parent: 1d76a4420a953658a729d3a5fb05a0f81797ae68
Author: Randy Palamar
Date:   Sat, 12 Aug 2023 21:32:43 -0600

x11-wm/dwm: only install deps

Diffstat:
Ax11-wm/dwm/dwm-6.4-r99.ebuild | 24++++++++++++++++++++++++
Dx11-wm/dwm/dwm-9999.ebuild | 59-----------------------------------------------------------
2 files changed, 24 insertions(+), 59 deletions(-)

diff --git a/x11-wm/dwm/dwm-6.4-r99.ebuild b/x11-wm/dwm/dwm-6.4-r99.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="a dynamic window manager for X11 (dependencies only)" +HOMEPAGE="https://dwm.suckless.org/" + +KEYWORDS="amd64 ~arm arm64 ppc ppc64 ~riscv x86" + +LICENSE="MIT" +SLOT="0" +IUSE="xinerama static-libs" + +RDEPEND=" + media-libs/fontconfig + x11-libs/libX11 + >=x11-libs/libXft-2.3.5 + xinerama? ( x11-libs/libXinerama ) +" +DEPEND=" + ${RDEPEND} + xinerama? ( x11-base/xorg-proto ) +" diff --git a/x11-wm/dwm/dwm-9999.ebuild b/x11-wm/dwm/dwm-9999.ebuild @@ -1,59 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit git-r3 savedconfig - -DESCRIPTION="a dynamic window manager for X11" -HOMEPAGE="https://dwm.suckless.org/" -EGIT_REPO_URI="https://github.com/rnpnr/dwm.git" - -LICENSE="MIT" -SLOT="0" -IUSE="xinerama savedconfig static" - -RDEPEND=" - media-libs/fontconfig - x11-libs/libX11 - x11-libs/libXft - xinerama? ( x11-libs/libXinerama ) -" -DEPEND=" - ${RDEPEND} - xinerama? ( x11-base/xorg-proto ) -" - -src_prepare() { - default - - sed -e '/^CC/d' \ - -e '/^X11INC/{s:X11R6/include:include/X11:}' \ - -e '/^X11LIB/{s:/X11R6::}' \ - -e '/^CFLAGS/{s:=:+=:}' \ - -e '/^LDFLAGS/{s:=:+=:}' \ - < config.mk > config.mk.new || die - mv config.mk.new config.mk - - if ! use xinerama; then - sed -e '/^XINERAMALIBS/d' \ - -e '/^XINERAMAFLAGS/d' \ - < config.mk > config.mk.new || die - mv config.mk.new config.mk - fi - - if use static; then - export LDFLAGS="${LDFLAGS} -static" - fi - - restore_config config.h -} - -src_compile() { - emake CC=${CC} dwm -} - -src_install() { - emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install - - save_config config.h -}