pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
yabar: Import yabar-0.4.0
Module Name: pkgsrc-wip
Committed By: Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By: f8l
Date: Wed Jun 15 00:24:56 2016 +0200
Changeset: 9ae98550d401470622e5528450a036d8627cd127
Modified Files:
Makefile
Added Files:
yabar/DESCR
yabar/Makefile
yabar/PLIST
yabar/distinfo
yabar/patches/patch-Makefile
yabar/patches/patch-src_intern__blks_ya__intern.c
Log Message:
yabar: Import yabar-0.4.0
Yabar is a modern and lightweight status bar that is
intended to be used along with minimal X window managers
like bspwm and i3. Yabar has the following features:
* Extremely configurable with easy configuration
system using a single config file.
* A growing set of ready-to-use internal blocks developed in plain c.
* Pango font rendering with support of pango markup language.
* Support for icons and images.
* Support for transparency.
* Multi-monitor support using RandR.
* Entirely clickable.
* Support for several environment variables to help button commands.
* Multiple bars within the same session.
Warning: Yabar is still in its infancy and far from being
mature. Feel free to contribute or report bugs!
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9ae98550d401470622e5528450a036d8627cd127
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
yabar/DESCR | 17 +++++++
yabar/Makefile | 25 ++++++++++
yabar/PLIST | 3 ++
yabar/distinfo | 8 ++++
yabar/patches/patch-Makefile | 15 ++++++
yabar/patches/patch-src_intern__blks_ya__intern.c | 56 +++++++++++++++++++++++
7 files changed, 125 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index fab3073..a90e041 100644
--- a/Makefile
+++ b/Makefile
@@ -4262,6 +4262,7 @@ SUBDIR+= xtrlock
SUBDIR+= xwelltris
SUBDIR+= xwindiff
SUBDIR+= xxdiff
+SUBDIR+= yabar
SUBDIR+= yafray
SUBDIR+= yakuake
SUBDIR+= yaml-cpp
diff --git a/yabar/DESCR b/yabar/DESCR
new file mode 100644
index 0000000..87d2da3
--- /dev/null
+++ b/yabar/DESCR
@@ -0,0 +1,17 @@
+Yabar is a modern and lightweight status bar that is
+intended to be used along with minimal X window managers
+like bspwm and i3. Yabar has the following features:
+
+ * Extremely configurable with easy configuration
+ system using a single config file.
+ * A growing set of ready-to-use internal blocks developed in plain c.
+ * Pango font rendering with support of pango markup language.
+ * Support for icons and images.
+ * Support for transparency.
+ * Multi-monitor support using RandR.
+ * Entirely clickable.
+ * Support for several environment variables to help button commands.
+ * Multiple bars within the same session.
+
+Warning: Yabar is still in its infancy and far from being
+ mature. Feel free to contribute or report bugs!
diff --git a/yabar/Makefile b/yabar/Makefile
new file mode 100644
index 0000000..b1ec9a8
--- /dev/null
+++ b/yabar/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= 0.4.0
+PKGNAME= ${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_GITHUB:=geommer/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/geommer/yabar/
+COMMENT= Modern and lightweight status bar for X window managers
+LICENSE= mit
+
+GITHUB_PROJECT= yabar
+
+WRKSRC= ${WRKDIR}/yabar-0.4.0
+
+USE_TOOLS+= gmake
+
+MAKE_FLAGS+= MANPREFIX=${PREFIX}/man
+
+.include "../../devel/libconfig/buildlink3.mk"
+.include "../../devel/pango/buildlink3.mk"
+.include "../../x11/xcb-util-wm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/yabar/PLIST b/yabar/PLIST
new file mode 100644
index 0000000..5eae058
--- /dev/null
+++ b/yabar/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/yabar
+man/man1/yabar.1
diff --git a/yabar/distinfo b/yabar/distinfo
new file mode 100644
index 0000000..5e6594f
--- /dev/null
+++ b/yabar/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (yabar/0.4.0.tar.gz) = 2155b7a538681d800ae873a623eb893e7d1dcebd
+RMD160 (yabar/0.4.0.tar.gz) = b442b69232dbaaa95f84b0ec40ed4e18dcbc4644
+SHA512 (yabar/0.4.0.tar.gz) = 52e9a41aa1d0214b7b56f9087f234de825970914f340c94ee6a9150ca71c28331006db63b20db7138e774558e59d72c3f3beaa745ed28e9cb0ea08945946ee04
+Size (yabar/0.4.0.tar.gz) = 878925 bytes
+SHA1 (patch-Makefile) = e813e857421d4710ee1b5a5019fdbaa9962cfa6d
+SHA1 (patch-src_intern__blks_ya__intern.c) = 337c5238b25bb0e990dbb562ed3a164574c21c69
diff --git a/yabar/patches/patch-Makefile b/yabar/patches/patch-Makefile
new file mode 100644
index 0000000..bf0edab
--- /dev/null
+++ b/yabar/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Get ld flags for xcb from pkg-config.
+
+--- Makefile.orig 2016-04-08 21:27:30.000000000 +0000
++++ Makefile
+@@ -2,7 +2,7 @@ VERSION = $(shell git describe)
+ CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL \
+ -DYA_ENV_VARS -DYA_INTERNAL_EWMH
+ CFLAGS += -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig`
+-LDLIBS := -lxcb -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig`
++LDLIBS := -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig xcb`
+ PROGRAM := yabar
+ PREFIX ?= /usr
+ BINPREFIX ?= $(PREFIX)/bin
diff --git a/yabar/patches/patch-src_intern__blks_ya__intern.c b/yabar/patches/patch-src_intern__blks_ya__intern.c
new file mode 100644
index 0000000..e03f902
--- /dev/null
+++ b/yabar/patches/patch-src_intern__blks_ya__intern.c
@@ -0,0 +1,56 @@
+$NetBSD$
+
+Surround some Linux-specific features with #ifdefs.
+
+--- src/intern_blks/ya_intern.c.orig 2016-04-08 21:27:30.000000000 +0000
++++ src/intern_blks/ya_intern.c
+@@ -9,7 +9,9 @@
+ #include "yabar.h"
+
+ void ya_int_date(ya_block_t * blk);
++#ifdef __linux__
+ void ya_int_uptime(ya_block_t * blk);
++#endif
+ void ya_int_memory(ya_block_t * blk);
+ void ya_int_thermal(ya_block_t *blk);
+ void ya_int_brightness(ya_block_t *blk);
+@@ -20,7 +22,9 @@ void ya_int_network(ya_block_t *blk);
+
+ struct reserved_blk ya_reserved_blks[YA_INTERNAL_LEN] = {
+ {"YABAR_DATE", ya_int_date},
++#ifdef __linux__
+ {"YABAR_UPTIME", ya_int_uptime},
++#endif
+ {"YABAR_THERMAL", ya_int_thermal},
+ {"YABAR_BRIGHTNESS", ya_int_brightness},
+ {"YABAR_BANDWIDTH", ya_int_bandwidth},
+@@ -70,7 +74,8 @@ void ya_int_date(ya_block_t * blk) {
+ }
+ }
+
+-#include <sys/sysinfo.h>
++#ifdef __linux__
++# include <sys/sysinfo.h>
+
+ void ya_int_uptime(ya_block_t *blk) {
+ struct sysinfo ya_sysinfo;
+@@ -93,7 +98,7 @@ void ya_int_uptime(ya_block_t *blk) {
+ sleep(blk->sleep);
+ }
+ }
+-
++#endif
+
+ void ya_int_thermal(ya_block_t *blk) {
+ FILE *tfile;
+@@ -401,7 +406,9 @@ void ya_int_diskio(ya_block_t *blk) {
+ #define _GNU_SOURCE
+ #include <sys/socket.h>
+ #include <ifaddrs.h>
+-#include <linux/if_link.h>
++#ifdef __linux__
++# include <linux/if_link.h>
++#endif
+ #include <arpa/inet.h>
+ #include <netdb.h>
+
Home |
Main Index |
Thread Index |
Old Index