diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 22:23:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 22:23:02 +0100 |
commit | 651f415b41664a0fd7f9e83ac1425ba3670c9518 (patch) | |
tree | 6edbaa4a890ab8fdc5dd63ad94f2f0e5d25259b0 /x11-wm/spectrwm | |
parent | 3529f1bf2739399905cd55b27c7609459bfc069f (diff) |
gentoo auto-resync : 27:10:2023 - 22:23:02
Diffstat (limited to 'x11-wm/spectrwm')
-rw-r--r-- | x11-wm/spectrwm/Manifest | 3 | ||||
-rw-r--r-- | x11-wm/spectrwm/files/spectrwm-3.5.0-fix-cflags-ldflags.patch | 26 | ||||
-rw-r--r-- | x11-wm/spectrwm/spectrwm-3.5.0.ebuild | 53 |
3 files changed, 82 insertions, 0 deletions
diff --git a/x11-wm/spectrwm/Manifest b/x11-wm/spectrwm/Manifest index 912bac304569..61885c8ba5c5 100644 --- a/x11-wm/spectrwm/Manifest +++ b/x11-wm/spectrwm/Manifest @@ -1,6 +1,9 @@ AUX spectrwm-3.4.1_p20221224-fix-cflags-ldflags.patch 1126 BLAKE2B 5be199ba5324db6d2420453c3e8f492933d11e07746e665d91c48db6fc32eadd0930935acb71ce41985159977afdcacaf5546f99de57d472ab4c493aaabec659 SHA512 37e39380d8b322c733ab8665a1f92526461ac29f78ce130d605792a0d0a7caf1bdffd174812d0eae4c694e338b1fb095c844630a2844e78efc77dfa7b06f624b +AUX spectrwm-3.5.0-fix-cflags-ldflags.patch 1149 BLAKE2B bedac9647ffca75f79d6ddfc66b13b3f6ddf0545df669cf79c8e1f5f18a2b3f9e5ac90abf69652c2954b3433e5071c6e627305bd8f06fa56bf2d99c315419d51 SHA512 915210bc84a4f563c6ddc5b05b3cf1dc5758d9060b2fb132dc25c41f08723b2e06c8baf443e23c27ced36ffbdf6e6ed28b7ffb5d83ce615e4ad2df33c633bbe2 DIST spectrwm-3.4.1_p20221224.tar.gz 166161 BLAKE2B 62dddfea9b80727d47bdfe61e4bf5ae5996e7bcdcaf76a37c29a3a448fcf4d19f6eeed75d7c13ca2c1e5c093c79503f00dfdde239d5022e700e27f75b7157e39 SHA512 424acf589ab137bdb8b7c010c757fde40a53b7bf70dc1c0ccf0df7e4a5ffce360cab02933f6eb7191e57ba594f4c8a6e732ac4bb8da0684d3889e9448e704edb +DIST spectrwm-3.5.0.tar.gz 194387 BLAKE2B f3a421466742dfce68d82408aec5d6db00502687d1ec6ce8aeae9ea21ef06ac79e5b682760a4e9bac0d5604ff7232b959d3ff67076447d713c9f4bbbd34c39b3 SHA512 a4cc86710b9367d8c39b8d22cd315db32a3e69bdcb9092620779fa17d660a8433aef3624708d6f348891eae08e07defa03eaa022ff4cce7a5f9f43cfe388af8e DIST spectrwm-efc458efa5730680a5ff3805f6cf9d88dc88748b.tar.gz 172141 BLAKE2B 0ae0f85dd40d170d3f68c8ab6763f251f3a901172a1bb39b0dbf45915c1f59044abd24c25f92b966efa0cee5824de6d4694012f98161438579891d70ee72faec SHA512 4e74585da0bfa65e83cc91786bf28ac5f61ddf1cbfb293064af802bd63c55e9bf9b78127e51ffc9348ea2ae77fc24503a6319e80438d9f72346c38636dcfb01a EBUILD spectrwm-3.4.1_p20221224.ebuild 1207 BLAKE2B 366ee716faf1ab3c6d9c9eaf472da1dbe91c683b0a9a4f2d30c78080dea7096d213da00a9b7295c51efb361624ef44efb32b22320531bdf5df7dc8a07e390bb1 SHA512 ea3ccff814a141cdd2b0dea45f423a0f4f4505f43e64f534019ed747c131f202b4f56f4c58c215199bf6b0c51cd051f326665b88f2da32fc95682282e94b7a7d EBUILD spectrwm-3.4.1_p20230310.ebuild 1277 BLAKE2B ca4ebb467de76bb04168d5848029bcd5b3d72908143674b8c6945f35d572341046e840cd621a0b72606ce479284d1680da353e857602c3f1a4bbbaa9cf2c3afc SHA512 ce7d598dc6b70a0bf97876349f26c6745561fdfd0286faca6a40c695f12a098ecf67470a83ee46663de83c9a67c5c321ea7eba8cf6215b026638538bf51073e4 +EBUILD spectrwm-3.5.0.ebuild 1230 BLAKE2B 9a70196021970334171ebbcd5e86e87a91ef2de0db51a911ba3366d6cf17f7b91a5b5c19b5cc63d0b0fd471fcfdce7db397b7ff1c83298603199a222184552cd SHA512 c806b04e5497b8301598af4ef53e25b359995fd8181d04802ae2287b5127bd26444f9dccdbc1b13407c6b22d2bbc9d9564406fbdef1483af9d5e350847420ac9 MISC metadata.xml 328 BLAKE2B 4f82bd35cf47d6791ea543bec20f7e510abba33f9de8bc8e0fe8176b0d3e908c30581a6083e90e6f0a2947ad3ffb6ff93d0e11030e68b8056451a017debfb377 SHA512 97e6057c3043db295d56ffd208c189cb5b575cf48f1cc9b78475f8055e59801fa8f7c8c1b8c9c090beb85e00365438c33831c87d9499e95495ee6287ecf7e4c4 diff --git a/x11-wm/spectrwm/files/spectrwm-3.5.0-fix-cflags-ldflags.patch b/x11-wm/spectrwm/files/spectrwm-3.5.0-fix-cflags-ldflags.patch new file mode 100644 index 000000000000..537e9f6d6e46 --- /dev/null +++ b/x11-wm/spectrwm/files/spectrwm-3.5.0-fix-cflags-ldflags.patch @@ -0,0 +1,26 @@ +diff --git a/linux/Makefile b/linux/Makefile +index e49cb2b..5e2a01b 100644 +--- a/linux/Makefile ++++ b/linux/Makefile +@@ -12,16 +12,16 @@ BUILDVERSION := $(shell sh $(CURDIR)/../buildver.sh) + LIBVERSION := $(shell . $(CURDIR)/../lib/shlib_version; echo $$major.$$minor) + LIBMAJORVERSION := $(shell . $(CURDIR)/../lib/shlib_version; echo $$major) + +-MAINT_CFLAGS := -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -g +-MAINT_LDFLAGS := -Wl,--as-needed ++MAINT_CFLAGS := -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow ++MAINT_LDFLAGS := + MAINT_CPPFLAGS := -I. -D_GNU_SOURCE -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LIBVERSION)\" + + ifneq ("${BUILDVERSION}", "") + MAINT_CPPFLAGS += -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\" + endif + +-BIN_CFLAGS := -fPIE +-BIN_LDFLAGS := -fPIE -pie ++BIN_CFLAGS := ++BIN_LDFLAGS := + BIN_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags x11 x11-xcb xcb-icccm xcb-keysyms xcb-randr xcb-util xcb-xinput xcb-xtest xcursor fontconfig xft) + BIN_LDLIBS := $(shell $(PKG_CONFIG) --libs x11 x11-xcb xcb-icccm xcb-keysyms xcb-randr xcb-util xcb-xinput xcb-xtest xcursor fontconfig xft) + LIB_CFLAGS := -fPIC + diff --git a/x11-wm/spectrwm/spectrwm-3.5.0.ebuild b/x11-wm/spectrwm/spectrwm-3.5.0.ebuild new file mode 100644 index 000000000000..721549a39ae1 --- /dev/null +++ b/x11-wm/spectrwm/spectrwm-3.5.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs + +DESCRIPTION="Small dynamic tiling window manager for X11" +HOMEPAGE="https://github.com/conformal/spectrwm" +SRC_URI="https://github.com/conformal/spectrwm/archive/${PN^^}_${PV//./_}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${PN^^}_${PV//./_}" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + elibc_musl? ( sys-libs/queue-standalone ) + x11-libs/libxcb + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXft + x11-libs/libXrandr + x11-libs/xcb-util + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-wm +" +RDEPEND=" + ${DEPEND} + x11-misc/dmenu +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/spectrwm-3.5.0-fix-cflags-ldflags.patch +) + +src_prepare() { + sed -i -e '/LICENSE.md/d' linux/Makefile || die + default +} + +src_compile() { + tc-export CC PKG_CONFIG + emake -C linux PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" +} + +src_install() { + emake -C linux PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + SYSCONFDIR="${EPREFIX}/etc" DOCDIR="${EPREFIX}/usr/share/doc/${P}" \ + DESTDIR="${D}" install + + dodoc README.md ${PN}_*.conf {initscreen,screenshot}.sh +} |