Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (af8b9499077ad6d01d8e678c2508fcac45ea93c7)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (af8b9499077ad6d01d8e678c2508fcac45ea93c7)
  • Date: Mon, 4 Apr 2022 06:32:00 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 4 ++
wm-addons/devilspie2/BUILD | 1
wm-addons/devilspie2/CONFIGURE | 3 +
wm-addons/devilspie2/DEPENDS | 17 ++++++++
wm-addons/devilspie2/DETAILS | 26 +++++++++++++
wm-addons/devilspie2/HISTORY | 3 +
wm-addons/devilspie2/INSTALL | 1
wm-addons/devilspie2/PRE_BUILD | 6 +++
wm-addons/devilspie2/devilspie2.gpg |binary
wm-addons/devilspie2/gcc46.patch | 70
++++++++++++++++++++++++++++++++++++
wm-addons/xob/BUILD | 2 -
wm-addons/xob/HISTORY | 3 +
12 files changed, 135 insertions(+), 1 deletion(-)

New commits:
commit af8b9499077ad6d01d8e678c2508fcac45ea93c7
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

devilspie2: new spell, window matching utility, based on original
devilspie

commit 5a6ba9e9885c3140fec8d8d1faf8921410587bce
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

xob: correct INSTALL_ROOT var

diff --git a/ChangeLog b/ChangeLog
index 0350bc3..18901f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-04-03 Vlad Glagolev <stealth AT sourcemage.org>
+ * wm-addons/devilspie2: new spell, window matching utility, based on
+ original devilspie
+
2022-04-03 Ismael Luceno <ismael AT sourcemage.org>
* utils/iotop-c: new spell, A top utility for IO

diff --git a/wm-addons/devilspie2/BUILD b/wm-addons/devilspie2/BUILD
new file mode 100755
index 0000000..f25028e
--- /dev/null
+++ b/wm-addons/devilspie2/BUILD
@@ -0,0 +1 @@
+make PREFIX="${INSTALL_ROOT}/usr" ${OPTS}
diff --git a/wm-addons/devilspie2/CONFIGURE b/wm-addons/devilspie2/CONFIGURE
new file mode 100755
index 0000000..ef4f0be
--- /dev/null
+++ b/wm-addons/devilspie2/CONFIGURE
@@ -0,0 +1,3 @@
+config_query_list DEVILSPIE2_GTK "Which GTK+ version to build against?" \
+ gtk+3 \
+ gtk+2
diff --git a/wm-addons/devilspie2/DEPENDS b/wm-addons/devilspie2/DEPENDS
new file mode 100755
index 0000000..ad660dd
--- /dev/null
+++ b/wm-addons/devilspie2/DEPENDS
@@ -0,0 +1,17 @@
+depends libx11 &&
+depends libxinerama &&
+depends lua &&
+depends gettext &&
+depends pkgconfig &&
+depends glib2 &&
+
+case $DEVILSPIE2_GTK in
+ gtk+2)
+ depends gtk+2 "GTK2=on" &&
+ depends libwnck
+ ;;
+ gtk+3)
+ depends gtk+3 &&
+ depends libwnck3
+ ;;
+esac
diff --git a/wm-addons/devilspie2/DETAILS b/wm-addons/devilspie2/DETAILS
new file mode 100755
index 0000000..d37bc19
--- /dev/null
+++ b/wm-addons/devilspie2/DETAILS
@@ -0,0 +1,26 @@
+ SPELL=devilspie2
+ VERSION=0.44
+ SOURCE=${SPELL}-${VERSION}.tar.xz
+ SOURCE2=${SOURCE}.sig
+
SOURCE_URL[0]=http://download.savannah.nongnu.org/releases/${SPELL}/${SOURCE}
+ SOURCE2_URL[0]=${SOURCE_URL[0]}.sig
+ SOURCE_GPG=devilspie2.gpg:${SOURCE2}:UPSTREAM_KEY
+ SOURCE2_IGNORE=signature
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=https://www.nongnu.org/devilspie2/
+ LICENSE[0]=GPL
+ ENTERED=20220403
+ SHORT="window matching utility, based on original devilspie"
+cat << EOF
+Devilspie2 is a window-matching utility, allowing the user to perform
scripted
+actions on windows as they are created. For example, you can script a
terminal
+program to always be positioned at a specific screen position, or position a
+window on a specific workspace.
+
+Devilspie2 is based on the program Devilspie by Ross Burton. The difference
is
+that Devilspie2 has replaced the symbolic expressions of the original with a
+Lua interpreter, making it much easier to maintain and extend.
+
+Please note that the rules of Devilspie2 are not compatible with the symbolic
+expressions of the original Devilspie.
+EOF
diff --git a/wm-addons/devilspie2/HISTORY b/wm-addons/devilspie2/HISTORY
new file mode 100644
index 0000000..dd624fb
--- /dev/null
+++ b/wm-addons/devilspie2/HISTORY
@@ -0,0 +1,3 @@
+2022-04-03 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS, DETAILS, {PRE_,}BUILD, CONFIGURE, INSTALL, devilspie2.gpg,
+ gcc46.patch: created spell, version 0.44
diff --git a/wm-addons/devilspie2/INSTALL b/wm-addons/devilspie2/INSTALL
new file mode 100755
index 0000000..06233f4
--- /dev/null
+++ b/wm-addons/devilspie2/INSTALL
@@ -0,0 +1 @@
+make PREFIX="${INSTALL_ROOT}/usr" ${OPTS} install
diff --git a/wm-addons/devilspie2/PRE_BUILD b/wm-addons/devilspie2/PRE_BUILD
new file mode 100755
index 0000000..04dc7a8
--- /dev/null
+++ b/wm-addons/devilspie2/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+if spell_ok gcc && is_version_less $(installed_version gcc) 4.8; then
+ patch -p0 < "${SPELL_DIRECTORY}/gcc46.patch"
+fi
diff --git a/wm-addons/devilspie2/devilspie2.gpg
b/wm-addons/devilspie2/devilspie2.gpg
new file mode 100644
index 0000000..e01d7f5
Binary files /dev/null and b/wm-addons/devilspie2/devilspie2.gpg differ
diff --git a/wm-addons/devilspie2/gcc46.patch
b/wm-addons/devilspie2/gcc46.patch
new file mode 100644
index 0000000..d606bde
--- /dev/null
+++ b/wm-addons/devilspie2/gcc46.patch
@@ -0,0 +1,70 @@
+--- src/script_functions.c.orig 2022-01-29 11:26:21.000000000 -0800
++++ src/script_functions.c 2022-04-03 23:17:14.783898389 -0700
+@@ -19,6 +19,7 @@
+ */
+ #include <stdlib.h>
+ #include <sys/types.h>
++#include <errno.h>
+
+ #define WNCK_I_KNOW_THIS_IS_UNSTABLE
+ #include <libwnck/libwnck.h>
+@@ -374,7 +375,8 @@
+ #else
+ int32_t struts[12] = {};
+ #endif
+- for (int i = 0; i < top; i++) {
++ int i;
++ for (i = 0; i < top; i++) {
+ struts[i] = lua_tonumber(lua, i + 1);
+ }
+
+@@ -489,7 +491,8 @@
+ int n = lua_gettop(lua); /* number of arguments */
+ lua_getglobal(lua, "tostring");
+
+- for (int i = 1; i <= n; i++) {
++ int i;
++ for (i = 1; i <= n; i++) {
+ lua_pushvalue(lua, -1); /* function to be called */
+ lua_pushvalue(lua, i); /* value to print */
+ lua_call(lua, 1, 1);
+@@ -1792,7 +1795,8 @@
+ int monitor_no = MONITOR_ALL;
+ enum { CENTRE_NONE, CENTRE_H, CENTRE_V, CENTRE_HV } centre =
CENTRE_HV;
+
+- for (int i = 1; i <= top; ++i) {
++ int i;
++ for (i = 1; i <= top; ++i) {
+ int type = lua_type(lua, i);
+ gchar *indata;
+
+--- src/xutils.c.orig 2022-01-29 11:26:21.000000000 -0800
++++ src/xutils.c 2022-04-03 23:20:56.640986813 -0700
+@@ -24,6 +24,7 @@
+ #include <gdk/gdkx.h>
+ #include <X11/Xlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ // FIXME: retrieve screen position via wnck
+ #include <X11/extensions/Xinerama.h>
+@@ -622,7 +623,8 @@
+
+ GdkPoint centre = { window_r.x + window_r.width / 2, window_r.y +
window_r.height / 2 };
+
+- for (int i = 0; i < monitor_count; ++i) {
++ int i;
++ for (i = 0; i < monitor_count; ++i) {
+ if (centre.x >= monitor_list[i].x_org &&
+ centre.x < monitor_list[i].x_org + monitor_list[i].width
&&
+ centre.y >= monitor_list[i].y_org &&
+@@ -636,7 +638,8 @@
+ // just use the first matching
+ // FIXME?: should find whichever shows most of the window (if tied,
closest to window centre)
+ if (id < 0) {
+- for (int i = 0; i < monitor_count; ++i) {
++ int i;
++ for (i = 0; i < monitor_count; ++i) {
+ GdkRectangle r = {
+ monitor_list[i].x_org, monitor_list[i].y_org,
+ monitor_list[i].x_org + monitor_list[i].width,
diff --git a/wm-addons/xob/BUILD b/wm-addons/xob/BUILD
index ea73300..dd6ddc9 100755
--- a/wm-addons/xob/BUILD
+++ b/wm-addons/xob/BUILD
@@ -1 +1 @@
-make prefix="${INSTALL}/usr" sysconfdir="${INSTALL_ROOT}/etc"
+make prefix="${INSTALL_ROOT}/usr" sysconfdir="${INSTALL_ROOT}/etc"
diff --git a/wm-addons/xob/HISTORY b/wm-addons/xob/HISTORY
index 82a9777..0420065 100644
--- a/wm-addons/xob/HISTORY
+++ b/wm-addons/xob/HISTORY
@@ -1,3 +1,6 @@
+2022-04-03 Vlad Glagolev <stealth AT sourcemage.org>
+ * BUILD: corrected INSTALL_ROOT var
+
2021-07-24 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 0.3




  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (af8b9499077ad6d01d8e678c2508fcac45ea93c7), Vlad Glagolev, 04/04/2022

Archive powered by MHonArc 2.6.24.

Top of Page