[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/

2023-08-05 Thread Sam James
commit: d81dc9697b969a8ae9f0dd1ff0f77a1584795eb0
Author: Sam James  gentoo  org>
AuthorDate: Sat Aug  5 22:27:10 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Aug  5 22:28:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d81dc969

x11-wm/matwm2: fix shebang in /etc/X11/Sessions file

A file in /etc/X11/Sessions with just the path that's *not* executable is fine,
but if it's executable, it's reasonably treated as a script. Oops.

Bug: https://bugs.gentoo.org/911787
Signed-off-by: Sam James  gentoo.org>

 x11-wm/matwm2/matwm2-0.1.2_pre3-r3.ebuild | 65 +++
 1 file changed, 65 insertions(+)

diff --git a/x11-wm/matwm2/matwm2-0.1.2_pre3-r3.ebuild 
b/x11-wm/matwm2/matwm2-0.1.2_pre3-r3.ebuild
new file mode 100644
index ..2ed16e0d950a
--- /dev/null
+++ b/x11-wm/matwm2/matwm2-0.1.2_pre3-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs
+
+MY_PV="${PV//_/}"
+
+DESCRIPTION="Simple EWMH compatible window manager with titlebars and frames"
+HOMEPAGE="https://github.com/segin/matwm2;
+SRC_URI="https://github.com/segin/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}/${PN}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug xft xinerama"
+
+RDEPEND="
+   x11-libs/libXext
+   x11-libs/libX11
+   xft? ( x11-libs/libXft )
+   xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-destdir-fix.patch )
+
+src_prepare() {
+   default
+
+   # Let the package manager handle stripping
+   sed -e 's/install -s/install/g' -i Makefile.in || die
+}
+
+src_configure() {
+   # configure is not autotools based
+   local myconfigureargs=(
+   --prefix="${EPREFIX}/usr"
+   --mandir="${EPREFIX}/usr/share/man"
+   --cc="$(tc-getCC)"
+   $(usev debug --enable-debug)
+   $(usev !xft --disable-xft)
+   $(usev !xinerama --disable-xinerama)
+   )
+
+   edo ./configure "${myconfigureargs[@]}"
+}
+
+src_install() {
+   default
+
+   docompress -x /usr/share/doc/${PF}/default_matwmrc
+   dodoc default_matwmrc
+
+   insinto /usr/share/xsessions
+   doins "${FILESDIR}"/${PN}.desktop
+
+   exeinto /etc/X11/Sessions
+   newexe - ${PN} <<-EOF
+   #!/bin/sh
+   ${PN}
+   EOF
+}



[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/

2022-06-29 Thread David Seifert
commit: f1a9b2784876f4e62ac2f79f00f44821921d2dcd
Author: David Seifert  gentoo  org>
AuthorDate: Wed Jun 29 09:07:12 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Wed Jun 29 09:07:12 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a9b278

x11-wm/matwm2: update EAPI 6 -> 8

Signed-off-by: David Seifert  gentoo.org>

 ..._pre3-r1.ebuild => matwm2-0.1.2_pre3-r2.ebuild} | 35 +++---
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild 
b/x11-wm/matwm2/matwm2-0.1.2_pre3-r2.ebuild
similarity index 65%
rename from x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild
rename to x11-wm/matwm2/matwm2-0.1.2_pre3-r2.ebuild
index c6e017074c9d..468d8e602220 100644
--- a/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild
+++ b/x11-wm/matwm2/matwm2-0.1.2_pre3-r2.ebuild
@@ -1,33 +1,31 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit toolchain-funcs
+EAPI=8
+
+inherit edo toolchain-funcs
 
 MY_PV="${PV//_/}"
 
 DESCRIPTION="Simple EWMH compatible window manager with titlebars and frames"
 HOMEPAGE="https://github.com/segin/matwm2;
 SRC_URI="https://github.com/segin/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}/${PN}"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug xft xinerama"
-S="${WORKDIR}/${PN}-${MY_PV}/${PN}"
 
 RDEPEND="
x11-libs/libXext
x11-libs/libX11
xft? ( x11-libs/libXft )
-   xinerama? ( x11-libs/libXinerama )
-"
-DEPEND="
-   ${RDEPEND}
-   virtual/pkgconfig
-"
+   xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
-PATCHES=( "${FILESDIR}/${P}-destdir-fix.patch" )
+PATCHES=( "${FILESDIR}"/${P}-destdir-fix.patch )
 
 src_prepare() {
default
@@ -42,24 +40,25 @@ src_configure() {
--prefix="${EPREFIX}/usr"
--mandir="${EPREFIX}/usr/share/man"
--cc="$(tc-getCC)"
-   $(usex debug "--enable-debug" "")
-   $(usex xft "" "--disable-xft")
-   $(usex xinerama "" "--disable-xinerama")
+   $(usev debug --enable-debug)
+   $(usev !xft --disable-xft)
+   $(usev !xinerama --disable-xinerama)
)
 
-   ./configure "${myconfigureargs[@]}" || die
+   edo ./configure "${myconfigureargs[@]}"
 }
 
 src_install() {
default
 
-   docompress -x "${EPREFIX}/usr/share/doc/${PF}"/default_matwmrc
+   docompress -x /usr/share/doc/${PF}/default_matwmrc
dodoc default_matwmrc
 
insinto /usr/share/xsessions
doins "${FILESDIR}"/${PN}.desktop
 
-   echo ${PN} > "${T}"/${PN} || die
exeinto /etc/X11/Sessions
-   doexe "${T}"/${PN}
+   newexe - matwm2 <<- _EOF_
+   matwm2
+   _EOF_
 }



[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/

2018-04-27 Thread Matt Turner
commit: ad0f12a8f148257b799f45a7e16a4f98602ca94e
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Apr 28 01:14:28 2018 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Apr 28 01:14:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad0f12a8

x11-wm/matwm2: Drop unnecessary x11-proto dep

 .../matwm2/{matwm2-0.1.2_pre3.ebuild => matwm2-0.1.2_pre3-r1.ebuild}   | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild 
b/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild
similarity index 93%
rename from x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild
rename to x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild
index 0f564a80660..c6e017074c9 100644
--- a/x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild
+++ b/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild
@@ -19,15 +19,12 @@ S="${WORKDIR}/${PN}-${MY_PV}/${PN}"
 RDEPEND="
x11-libs/libXext
x11-libs/libX11
-   debug? ( x11-proto/xproto )
xft? ( x11-libs/libXft )
xinerama? ( x11-libs/libXinerama )
 "
 DEPEND="
${RDEPEND}
virtual/pkgconfig
-   x11-proto/xextproto
-   xinerama? ( x11-proto/xineramaproto )
 "
 
 PATCHES=( "${FILESDIR}/${P}-destdir-fix.patch" )



[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/

2017-03-26 Thread Michael Orlitzky
commit: eb47d9ba8395609fb929f326d1bea5e9d1db2d7a
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sun Mar 26 18:02:26 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sun Mar 26 18:02:26 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb47d9ba

x11-wm/matwm2: remove unused version 0.1.1.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 x11-wm/matwm2/Manifest|  1 -
 x11-wm/matwm2/matwm2-0.1.1.ebuild | 55 ---
 2 files changed, 56 deletions(-)

diff --git a/x11-wm/matwm2/Manifest b/x11-wm/matwm2/Manifest
index a0f6182f7cb..c18a041cd20 100644
--- a/x11-wm/matwm2/Manifest
+++ b/x11-wm/matwm2/Manifest
@@ -1,2 +1 @@
-DIST matwm2-0.1.1.tar.gz 64552 SHA256 
b85de9adc2118a7305a9015b57183117a4dbebf52b1ae4ac688e8f276319beb7 SHA512 
27968759e2c58272a9594a5af738161f6b963cea8ef110cf18b4519725ad3d0402776bf715ac16cc5d98ca6498a18085d953c8c5eea23d889f003e963c97787a
 WHIRLPOOL 
78ff6252f205d0e8cddea459d7368934a6a7d820ce90575b6acea3ea8c25e402dbe6fe6e5af92c9ce45faa2d09f527dbf5dff97d6a5d6c955ccb7c59bad931c8
 DIST matwm2-0.1.2_pre3.tar.gz 860231 SHA256 
c6fc2b4cbe278e5b85035a9019d27e3ad964cab3b5862c442652679ab85523d0 SHA512 
30c55c6090015432bf99853f136baebb5b4c1301d5f922dc933e0141caf18d6891a982bd89e22e065c146c0c5c570d0e8aebb7e4c708e9b0570b7ed5f9ba
 WHIRLPOOL 
05b651783232ca46f03c5cd018379770749b2ff93d87cd24f297f3ce55677917c1f6980e2e5be8d8e53ff1e6020f07d4bacafdbc7189a9de9133b8147048f78c

diff --git a/x11-wm/matwm2/matwm2-0.1.1.ebuild 
b/x11-wm/matwm2/matwm2-0.1.1.ebuild
deleted file mode 100644
index 60322a6fe4a..000
--- a/x11-wm/matwm2/matwm2-0.1.1.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-inherit toolchain-funcs
-
-DESCRIPTION="Simple EWMH compatible window manager with titlebars and frames"
-HOMEPAGE="http://squidjam.com/matwm/;
-SRC_URI="http://squidjam.com/matwm/pub/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug xft xinerama"
-
-RDEPEND="
-   x11-libs/libXext
-   x11-libs/libX11
-   debug? ( x11-proto/xproto )
-   xft? ( x11-libs/libXft )
-   xinerama? ( x11-libs/libXinerama )
-"
-DEPEND="
-   ${RDEPEND}
-   virtual/pkgconfig
-   x11-proto/xextproto
-   xinerama? ( x11-proto/xineramaproto )
-"
-
-src_configure() {
-   # configure is not autotools based
-   # --disable-shape left out because the code is broken
-   ./configure \
-   $( use debug && echo --enable-debug ) \
-   $( use xft || echo --disable-xft ) \
-   $( use xinerama || echo --disable-xinerama ) \
-   || die
-}
-
-src_compile() {
-   emake CC="$(tc-getCC)"
-}
-
-src_install() {
-   dobin ${PN}
-   doman ${PN}.1
-   dodoc BUGS ChangeLog default_matwmrc README TODO
-
-   insinto /usr/share/xsessions
-   doins "${FILESDIR}"/${PN}.desktop
-
-   echo ${PN} > "${T}"/${PN}
-   exeinto /etc/X11/Sessions
-   doexe "${T}"/${PN}
-}



[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/files/

2017-02-18 Thread David Seifert
commit: 5bffe73377246e9cafa3487f212d988b5f746d68
Author: Michael Mair-Keimberger (asterix)  gmail 
 com>
AuthorDate: Sat Feb 18 15:27:03 2017 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Feb 18 22:07:35 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bffe733

x11-wm/matwm2: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/4015

 x11-wm/matwm2/files/matwm2-0.0.96-Makefile.patch | 23 ---
 1 file changed, 23 deletions(-)

diff --git a/x11-wm/matwm2/files/matwm2-0.0.96-Makefile.patch 
b/x11-wm/matwm2/files/matwm2-0.0.96-Makefile.patch
deleted file mode 100644
index 16d86a036d..00
--- a/x11-wm/matwm2/files/matwm2-0.0.96-Makefile.patch
+++ /dev/null
@@ -1,23 +0,0 @@
 Makefile
-+++ Makefile
-@@ -4,10 +4,8 @@
- CC= cc
- RM= rm -f
- 
--CFLAGS+= -I$(XROOT)/include # remove the + for this and the next line if 
make complains about being unable to add to a non-existing macro
--LDFLAGS   += -lX11 -L$(XROOT)/lib
- CFLAGS+= -DSHAPE # comment out this line to disable shape support
--LDFLAGS   += -lXext # if shape support is disabled, this normally is no 
longer necessary and schould probally be commented out too
-+LIBS  += -lXext -lX11 # if shape support is disabled, this normally is no 
longer necessary and schould probally be commented out too
- 
- #CFLAGS+= -DDEBUG -ggdb3 # -DDEBUG_EVENTS -DSYNC # for debugging
- CFLAGS+= -Wall -Wextra -Wno-unused-parameter
-@@ -19,7 +17,7 @@
- all: matwm2
- 
- matwm2: $(OBJFILES) $(HEADERS)
--  $(CC) -o $@ $(OBJFILES) $(LDFLAGS)
-+  $(CC) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS)
- 
- clean:
-   $(RM) matwm2 *.o



[gentoo-commits] repo/gentoo:master commit in: x11-wm/matwm2/files/, x11-wm/matwm2/

2017-02-07 Thread Göktürk Yüksek
commit: be6b30a76179b7e62da83a88c20ffe6960975b11
Author: Göktürk Yüksek  gentoo  org>
AuthorDate: Wed Feb  8 07:16:25 2017 +
Commit: Göktürk Yüksek  gentoo  org>
CommitDate: Wed Feb  8 07:17:07 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be6b30a7

x11-wm/matwm2: bump to 0.1.2_pre3

Package-Manager: portage-2.3.0

 x11-wm/matwm2/Manifest |  1 +
 .../files/matwm2-0.1.2_pre3-destdir-fix.patch  | 34 +++
 x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild | 69 ++
 3 files changed, 104 insertions(+)

diff --git a/x11-wm/matwm2/Manifest b/x11-wm/matwm2/Manifest
index 7a45618..a0f6182 100644
--- a/x11-wm/matwm2/Manifest
+++ b/x11-wm/matwm2/Manifest
@@ -1 +1,2 @@
 DIST matwm2-0.1.1.tar.gz 64552 SHA256 
b85de9adc2118a7305a9015b57183117a4dbebf52b1ae4ac688e8f276319beb7 SHA512 
27968759e2c58272a9594a5af738161f6b963cea8ef110cf18b4519725ad3d0402776bf715ac16cc5d98ca6498a18085d953c8c5eea23d889f003e963c97787a
 WHIRLPOOL 
78ff6252f205d0e8cddea459d7368934a6a7d820ce90575b6acea3ea8c25e402dbe6fe6e5af92c9ce45faa2d09f527dbf5dff97d6a5d6c955ccb7c59bad931c8
+DIST matwm2-0.1.2_pre3.tar.gz 860231 SHA256 
c6fc2b4cbe278e5b85035a9019d27e3ad964cab3b5862c442652679ab85523d0 SHA512 
30c55c6090015432bf99853f136baebb5b4c1301d5f922dc933e0141caf18d6891a982bd89e22e065c146c0c5c570d0e8aebb7e4c708e9b0570b7ed5f9ba
 WHIRLPOOL 
05b651783232ca46f03c5cd018379770749b2ff93d87cd24f297f3ce55677917c1f6980e2e5be8d8e53ff1e6020f07d4bacafdbc7189a9de9133b8147048f78c

diff --git a/x11-wm/matwm2/files/matwm2-0.1.2_pre3-destdir-fix.patch 
b/x11-wm/matwm2/files/matwm2-0.1.2_pre3-destdir-fix.patch
new file mode 100644
index ..8bd9663
--- /dev/null
+++ b/x11-wm/matwm2/files/matwm2-0.1.2_pre3-destdir-fix.patch
@@ -0,0 +1,34 @@
+From a752f42ebdc0b3cb7c7246c96fdb1601a4d1eae4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= 
+Date: Wed, 8 Feb 2017 02:00:08 -0500
+Subject: [PATCH] Makefile.in: use DESTDIR for install and deinstall targets
+
+Distinguish between PREFIX and DESTDIR.
+---
+ Makefile.in | 8 
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index fd3e299..5ec1471 100644
+--- a/Makefile.in
 b/Makefile.in
+@@ -23,12 +23,12 @@ clean:
+   $(RM) matwm2 *.o
+ 
+ install: matwm2
+-  mkdir -p $(PREFIX)/bin $(MANDIR)/man1
+-  install -s matwm2 $(PREFIX)/bin
+-  install matwm2.1 $(MANDIR)/man1
++  mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(MANDIR)/man1
++  install -s matwm2 $(DESTDIR)$(PREFIX)/bin
++  install matwm2.1 $(DESTDIR)$(MANDIR)/man1
+ 
+ deinstall:
+-  $(RM) $(PREFIX)/bin/matwm2 $(MANDIR)/man1/matwm2.1* 
$(MANDIR)/cat1/matwm2.1*
++  $(RM) $(DESTDIR)$(PREFIX)/bin/matwm2 $(DESTDIR)$(MANDIR)/man1/matwm2.1* 
$(DESTDIR)$(MANDIR)/cat1/matwm2.1*
+ 
+ # converts default_matwmrc into C code that can be compiled into the binary
+ defcfg:
+-- 
+2.10.2
+

diff --git a/x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild 
b/x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild
new file mode 100644
index ..3a590d0
--- /dev/null
+++ b/x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs
+
+MY_PV="${PV//_/}"
+
+DESCRIPTION="Simple EWMH compatible window manager with titlebars and frames"
+HOMEPAGE="https://github.com/segin/matwm2;
+SRC_URI="https://github.com/segin/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug xft xinerama"
+S="${WORKDIR}/${PN}-${MY_PV}/${PN}"
+
+RDEPEND="
+   x11-libs/libXext
+   x11-libs/libX11
+   debug? ( x11-proto/xproto )
+   xft? ( x11-libs/libXft )
+   xinerama? ( x11-libs/libXinerama )
+"
+DEPEND="
+   ${RDEPEND}
+   virtual/pkgconfig
+   x11-proto/xextproto
+   xinerama? ( x11-proto/xineramaproto )
+"
+
+PATCHES=( "${FILESDIR}/${P}-destdir-fix.patch" )
+
+src_prepare() {
+   default
+
+   # Let the package manager handle stripping
+   sed -e 's/install -s/install/g' -i Makefile.in || die
+}
+
+src_configure() {
+   # configure is not autotools based
+   local myconfigureargs=(
+   --prefix="${EPREFIX}/usr"
+   --mandir="${EPREFIX}/usr/share/man"
+   --cc="$(tc-getCC)"
+   $(usex debug "--enable-debug" "")
+   $(usex xft "" "--disable-xft")
+   $(usex xinerama "" "--disable-xinerama")
+   )
+
+   ./configure "${myconfigureargs[@]}" || die
+}
+
+src_install() {
+   default
+
+   docompress -x "${EPREFIX}/usr/share/doc/${PF}"/default_matwmrc
+   dodoc default_matwmrc
+
+   insinto /usr/share/xsessions
+   doins "${FILESDIR}"/${PN}.desktop
+
+   echo ${PN} > "${T}"/${PN} || die
+   exeinto /etc/X11/Sessions
+   doexe "${T}"/${PN}
+}