summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2017-02-08 02:16:25 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2017-02-08 02:17:07 -0500
commitbe6b30a76179b7e62da83a88c20ffe6960975b11 (patch)
tree589a92dfbc31c0a14f1f092f4455764976273625 /x11-wm
parentapp-text/calibre: version bump to 2.78.0 (diff)
downloadgentoo-be6b30a76179b7e62da83a88c20ffe6960975b11.tar.gz
gentoo-be6b30a76179b7e62da83a88c20ffe6960975b11.tar.bz2
gentoo-be6b30a76179b7e62da83a88c20ffe6960975b11.zip
x11-wm/matwm2: bump to 0.1.2_pre3
Package-Manager: portage-2.3.0
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/matwm2/Manifest1
-rw-r--r--x11-wm/matwm2/files/matwm2-0.1.2_pre3-destdir-fix.patch34
-rw-r--r--x11-wm/matwm2/matwm2-0.1.2_pre3.ebuild69
3 files changed, 104 insertions, 0 deletions
diff --git a/x11-wm/matwm2/Manifest b/x11-wm/matwm2/Manifest
index 7a4561868342..a0f6182f7cbb 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 30c55c6090015432bf99853f136baebb5b4c1301d5f922dc933e0141caf18d6891a982bd89e22e065c146c0c5c570d0e8aebb7e4c708dddde9b0570b7ed5f9ba 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 000000000000..8bd966301f88
--- /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?= <gokturk@gentoo.org>
+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 000000000000..3a590d08d69b
--- /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}
+}