added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,94 @@
From 941d5ff3426e68cb9bcb4ae86066124cb2535b69 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Sep 2022 12:32:20 -0700
Subject: [PATCH] Fix function protype visibility
Include ctye.h for toupper
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/appearance.c | 1 +
src/desktops.c | 2 +-
src/desktops.h | 2 +-
src/main.c | 1 +
src/moveresize.c | 2 +-
src/moveresize.h | 2 +-
6 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/appearance.c b/src/appearance.c
index 4fb3f0c..ee55661 100644
--- a/src/appearance.c
+++ b/src/appearance.c
@@ -20,6 +20,7 @@
#include "main.h"
#include "tree.h"
#include "preview_update.h"
+#include <ctype.h> /* for toupper */
static gboolean mapping = FALSE;
diff --git a/src/desktops.c b/src/desktops.c
index 8297f00..27ca514 100644
--- a/src/desktops.c
+++ b/src/desktops.c
@@ -38,7 +38,7 @@ static void on_desktop_names_cell_edited(GtkCellRendererText *cell,
gpointer data);
static void enable_stuff();
-void desktops_setup_tab()
+void desktops_setup_tab(void)
{
GtkWidget *w;
GtkCellRenderer *render;
diff --git a/src/desktops.h b/src/desktops.h
index 1ba3e36..446bfbb 100644
--- a/src/desktops.h
+++ b/src/desktops.h
@@ -24,5 +24,5 @@
void desktops_setup_num(GtkWidget *w);
void desktops_setup_names(GtkWidget *w);
-
+void desktops_setup_tab(void);
#endif
diff --git a/src/main.c b/src/main.c
index d7e3446..0176035 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,6 +28,7 @@
#include "dock.h"
#include "preview_update.h"
#include "gettext.h"
+#include "moveresize.h"
#include <gdk/gdkx.h>
#define SN_API_NOT_YET_FROZEN
diff --git a/src/moveresize.c b/src/moveresize.c
index c6fb3dd..bb52729 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -37,7 +37,7 @@ static gboolean mapping = FALSE;
static void enable_stuff();
static void write_fixed_position(const gchar *coord);
-void moveresize_setup_tab()
+void moveresize_setup_tab(void)
{
GtkWidget *w, *w1, *w2, *w3;
GtkSizeGroup *group;
diff --git a/src/moveresize.h b/src/moveresize.h
index 82ecc96..8faf526 100644
--- a/src/moveresize.h
+++ b/src/moveresize.h
@@ -20,6 +20,6 @@
#ifndef obconf__moveresize_h
#define obconf__moveresize_h
-void moveresize_setup_tab();
+void moveresize_setup_tab(void);
#endif
--
2.37.3

View File

@@ -0,0 +1,54 @@
From 6bbde84a2197c97e49d9e64118a979728209e436 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Wed, 23 Sep 2015 23:21:42 +0200
Subject: [PATCH] Makefile.am: avoid race when creating autostart directories
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
fixes:
| make: creating data/xsession/openbox-gnome-session
| make: creating data/xsession/openbox-session
| make: creating data/xsession/openbox-kde-session
| make: creating data/autostart/openbox-autostart
| make: creating doc/openbox.1
| make: creating data/autostart/autostart
| make: creating doc/openbox-session.1
| make: creating doc/openbox-gnome-session.1
| make: creating doc/openbox-kde-session.1
| make: creating doc/obxprop.1
| mkdir: cannot create directory './data/autostart': File exists
| Makefile:4329: recipe for target 'data/autostart/autostart' failed
Upstream-Status: Pending
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
Makefile.am | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index f25bf8e..306e77d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -505,14 +505,12 @@ edit = $(SED) \
data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile
@echo make: creating $@
- @test -d $(shell dirname $(top_builddir)/$@) || \
- mkdir $(shell dirname $(top_builddir)/$@)
+ mkdir -p $(shell dirname $(top_builddir)/$@)
@$(edit) $< >$(top_builddir)/$@
data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile
@echo make: creating $@
- @test -d $(shell dirname $(top_builddir)/$@) || \
- mkdir $(shell dirname $(top_builddir)/$@)
+ mkdir -p $(shell dirname $(top_builddir)/$@)
@$(edit) $< >$(top_builddir)/$@
%.desktop: %.desktop.in Makefile
--
2.1.0

View File

@@ -0,0 +1,138 @@
From b7de9cff2a9578dd92d191241c28437cd6bbb595 Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
Date: Sun, 2 Feb 2020 14:39:21 +0000
Subject: [PATCH] openbox-xdg-autostart: convert to python3
Upstream-Status: Pending
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
data/autostart/openbox-xdg-autostart | 72 ++++++++++++++--------------
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/data/autostart/openbox-xdg-autostart b/data/autostart/openbox-xdg-autostart
index 04a17a1..52d763f 100755
--- a/data/autostart/openbox-xdg-autostart
+++ b/data/autostart/openbox-xdg-autostart
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# openbox-xdg-autostart runs things based on the XDG autostart specification
# Copyright (C) 2008 Dana Jansens
@@ -28,9 +28,9 @@ try:
from xdg.DesktopEntry import DesktopEntry
from xdg.Exceptions import ParsingError
except ImportError:
- print
- print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed"
- print
+ print()
+ print("ERROR:", ME, "requires PyXDG to be installed", file=sys.stderr)
+ print()
sys.exit(1)
def main(argv=sys.argv):
@@ -51,7 +51,7 @@ def main(argv=sys.argv):
try:
autofile = AutostartFile(path)
except ParsingError:
- print "Invalid .desktop file: " + path
+ print("Invalid .desktop file: " + path)
else:
if not autofile in files:
files.append(autofile)
@@ -99,9 +99,9 @@ class AutostartFile:
def _alert(self, str, info=False):
if info:
- print "\t ", str
+ print("\t ", str)
else:
- print "\t*", str
+ print("\t*", str)
def _showInEnvironment(self, envs, verbose=False):
default = not self.de.getOnlyShowIn()
@@ -146,14 +146,14 @@ class AutostartFile:
def display(self, envs):
if self._shouldRun(envs):
- print "[*] " + self.de.getName()
+ print("[*] " + self.de.getName())
else:
- print "[ ] " + self.de.getName()
+ print("[ ] " + self.de.getName())
self._alert("File: " + self.path, info=True)
if self.de.getExec():
self._alert("Executes: " + self.de.getExec(), info=True)
self._shouldRun(envs, True)
- print
+ print()
def run(self, envs):
here = os.getcwd()
@@ -165,34 +165,34 @@ class AutostartFile:
os.chdir(here)
def show_help():
- print "Usage:", ME, "[OPTION]... [ENVIRONMENT]..."
- print
- print "This tool will run xdg autostart .desktop files"
- print
- print "OPTIONS"
- print " --list Show a list of the files which would be run"
- print " Files which would be run are marked with an asterix"
- print " symbol [*]. For files which would not be run,"
- print " information is given for why they are excluded"
- print " --help Show this help and exit"
- print " --version Show version and copyright information"
- print
- print "ENVIRONMENT specifies a list of environments for which to run autostart"
- print "applications. If none are specified, only applications which do not "
- print "limit themselves to certain environments will be run."
- print
- print "ENVIRONMENT can be one or more of:"
- print " GNOME Gnome Desktop"
- print " KDE KDE Desktop"
- print " ROX ROX Desktop"
- print " XFCE XFCE Desktop"
- print " Old Legacy systems"
- print
+ print("Usage:", ME, "[OPTION]... [ENVIRONMENT]...")
+ print()
+ print("This tool will run xdg autostart .desktop files")
+ print()
+ print("OPTIONS")
+ print(" --list Show a list of the files which would be run")
+ print(" Files which would be run are marked with an asterix")
+ print(" symbol [*]. For files which would not be run,")
+ print(" information is given for why they are excluded")
+ print(" --help Show this help and exit")
+ print(" --version Show version and copyright information")
+ print()
+ print("ENVIRONMENT specifies a list of environments for which to run autostart")
+ print("applications. If none are specified, only applications which do not ")
+ print("limit themselves to certain environments will be run.")
+ print()
+ print("ENVIRONMENT can be one or more of:")
+ print(" GNOME Gnome Desktop")
+ print(" KDE KDE Desktop")
+ print(" ROX ROX Desktop")
+ print(" XFCE XFCE Desktop")
+ print(" Old Legacy systems")
+ print()
def show_version():
- print ME, VERSION
- print "Copyright (c) 2008 Dana Jansens"
- print
+ print(ME, VERSION)
+ print("Copyright (c) 2008 Dana Jansens")
+ print()
if __name__ == "__main__":
sys.exit(main())
--
2.20.1

View File

@@ -0,0 +1,34 @@
SUMMARY = "Openbox configuration tool"
AUTHOR = "Dana Jansens & Tim Riley & Javeed Shaikh"
HOMEPAGE = "http://openbox.org/wiki/ObConf:About"
SECTION = "x11/wm"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = " \
openbox \
startup-notification \
gtk+3 \
"
PV = "2.0.4+git${SRCPV}"
SRCREV = "63ec47c5e295ad4f09d1df6d92afb7e10c3fec39"
SRC_URI = " \
git://git.openbox.org/dana/obconf;branch=master \
file://0001-Fix-function-protype-visibility.patch \
"
S = "${WORKDIR}/git"
inherit autotools gettext pkgconfig mime mime-xdg features_check
# depends on openbox, which is X11-only
REQUIRED_DISTRO_FEATURES = "x11"
EXTRA_AUTORECONF = ""
FILES:${PN} += "\
${datadir}/mime \
"
do_install:append () {
rm -rf ${D}${datadir}/mimelnk
}

View File

@@ -0,0 +1,58 @@
SUMMARY = "openbox Window Manager"
SECTION = "x11/wm"
DEPENDS = "glib-2.0 pango libxml2 virtual/libx11 libcroco librsvg gdk-pixbuf"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = " \
http://icculus.org/openbox/releases/openbox-${PV}.tar.gz \
file://0001-Makefile.am-avoid-race-when-creating-autostart-direc.patch \
file://0001-openbox-xdg-autostart-convert-to-python3.patch \
"
SRC_URI[md5sum] = "b72794996c6a3ad94634727b95f9d204"
SRC_URI[sha256sum] = "8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7"
inherit autotools gettext update-alternatives pkgconfig features_check
# depends on virtual/libx11
REQUIRED_DISTRO_FEATURES = "x11"
ALTERNATIVE:${PN}-core = "x-window-manager x-session-manager"
ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox"
ALTERNATIVE_PRIORITY[x-window-manager] = "10"
ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/openbox-session"
ALTERNATIVE_PRIORITY[x-session-manager] = "100"
PACKAGECONFIG ??= ""
PACKAGECONFIG[imlib2] = "--enable-imlib2,--disable-imlib2,imlib2"
PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification"
PACKAGECONFIG[xrandr] = "--enable-xrandr,--disable-xrandr,libxrandr"
PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama"
PACKAGECONFIG[xcursor] = "--enable-xcursor,--disable-xcursor,libxcursor"
PACKAGES =+ "${PN}-core ${PN}-lxde ${PN}-gnome ${PN}-config"
PACKAGES_DYNAMIC += "^${PN}-theme-.*"
python populate_packages:prepend() {
theme_dir = d.expand('${datadir}/themes/')
theme_name = d.expand('${PN}-theme-%s')
do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True)
}
FILES:${PN}-core = "${bindir}/openbox ${bindir}/openbox-session ${libdir}/*${SOLIBS}"
FILES:${PN}-lxde += "${datadir}/lxde/ \
${datadir}/lxpanel \
${datadir}/xsessions \
${datadir}/icons"
FILES:${PN}-gnome += " \
${bindir}/openbox-gnome-session \
${datadir}/gnome \
${datadir}/gnome-session \
"
FILES:${PN}-config += "${sysconfdir}"
RDEPENDS:${PN} += "${PN}-core ${PN}-config ${PN}-theme-clearlooks python3 python3-shell pyxdg"