pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

added dzen-git to pkgsrc



Module Name:	pkgsrc-wip
Committed By:	Jake Slazenger <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Thu Mar 8 18:42:15 2018 +0300
Changeset:	4188a9571006a19ffeece419c8eae12bb54da52a

Added Files:
	dzen-git/DESCR
	dzen-git/Makefile
	dzen-git/PLIST
	dzen-git/distinfo
	dzen-git/options.mk
	dzen-git/patches/patch-config.mk
	dzen-git/patches/patch-gadgets-config.mk

Log Message:
added dzen-git to pkgsrc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4188a9571006a19ffeece419c8eae12bb54da52a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 dzen-git/DESCR                           | 13 +++++++
 dzen-git/Makefile                        | 29 ++++++++++++++++
 dzen-git/PLIST                           |  8 +++++
 dzen-git/distinfo                        |  8 +++++
 dzen-git/options.mk                      | 53 ++++++++++++++++++++++++++++
 dzen-git/patches/patch-config.mk         | 59 ++++++++++++++++++++++++++++++++
 dzen-git/patches/patch-gadgets-config.mk | 31 +++++++++++++++++
 7 files changed, 201 insertions(+)

diffs:
diff --git a/dzen-git/DESCR b/dzen-git/DESCR
new file mode 100644
index 0000000000..f080122b92
--- /dev/null
+++ b/dzen-git/DESCR
@@ -0,0 +1,13 @@
+Dzen is a general purpose messaging, notification and menuing program for X11.
+
+It was designed to be fast, tiny and scriptable in any language.
+
+Features
+--------
+ * Small, fast, very tiny set of dependencies (Xlib only by default)
+ * Scriptable in any language
+ * Sophisticated formating language - including colours, icons, graphics
+ * Versatile - display all sorts of information
+ * Interactive - user defined mouse and keyboard actions
+ * Optional XFT support
+ * Optional XINERAMA support
diff --git a/dzen-git/Makefile b/dzen-git/Makefile
new file mode 100644
index 0000000000..cdd312d5c5
--- /dev/null
+++ b/dzen-git/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.2 2012/09/28 21:24:39 asau Exp $
+#
+
+GIT_SHA=	488ab66019f475e35e067646621827c18a879ba1
+DISTNAME=	dzen-git-${GIT_SHA}
+CATEGORIES=	x11 misc
+MASTER_SITES=	-${HOMEPAGE}/archive/${GIT_SHA}.tar.gz
+WRKSRC=		${WRKDIR}/dzen-${GIT_SHA}
+
+MAINTAINER=	jake.slazenger%yandex.com@localhost
+HOMEPAGE=	https://github.com/robm/dzen
+COMMENT=	General purpose messaging and notification program
+LICENSE=	mit
+
+CONFLICTS+=	dzen2-[0-9]*
+
+NO_CONFIGURE=		yes
+BUILD_DIRS=		. gadgets
+
+INSTALLATION_DIRS=	bin
+
+post-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/gadgets/kittscanner.sh ${DESTDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/gadgets/noisyalert.sh ${DESTDIR}${PREFIX}/bin
+
+.include "options.mk"
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/dzen-git/PLIST b/dzen-git/PLIST
new file mode 100644
index 0000000000..6023efe6f9
--- /dev/null
+++ b/dzen-git/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/dbar
+bin/dzen2
+bin/gcpubar
+bin/gdbar
+bin/kittscanner.sh
+bin/noisyalert.sh
+bin/textwidth
diff --git a/dzen-git/distinfo b/dzen-git/distinfo
new file mode 100644
index 0000000000..f37668f889
--- /dev/null
+++ b/dzen-git/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (dzen-git.tar.gz) = 4d3104a80b7a0b1103c2802219524ac405d4c310
+RMD160 (dzen-git.tar.gz) = 164e24e481f47e4c90ab8a2daf02c37bb995d20f
+SHA512 (dzen-git.tar.gz) = e750ab9c62dad311bf478d79c15ffdc1ef108fe2c3ed5df82316d879aad000bee785d304048f5daae237468f6fe018f14fc05d0114d68d873f766dbf1dfebbc9
+Size (dzen-git.tar.gz) = 38181 bytes
+SHA1 (patch-config.mk) = 612d12b5d6efd17ed23f39f6ca34fed92c4bbcbb
+SHA1 (patch-gadgets-config.mk) = 270671eb72c6cb004120ff3c031f08caf0d81ca4
diff --git a/dzen-git/options.mk b/dzen-git/options.mk
new file mode 100644
index 0000000000..9844fbe09f
--- /dev/null
+++ b/dzen-git/options.mk
@@ -0,0 +1,53 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.dzen
+
+PKG_SUPPORTED_OPTIONS=	xft xpm xinerama
+PKG_SUGGESTED_OPTIONS=	xpm xinerama
+
+.include "../../mk/bsd.options.mk"
+
+SUBST_CLASSES+=	config
+SUBST_STAGE.config=	pre-build
+SUBST_MESSAGE.config= Adapting config.mk to pkgsrc, according to package options
+SUBST_FILES.config=	config.mk
+
+###
+### Enable XFT support
+###
+.if !empty(PKG_OPTIONS:Mxft)
+
+# append to CFLAGS line
+SUBST_SED.config+=	-e '22 s|$$| -DDZEN_XFT|'
+
+# NetBSD-specific thing
+.if ${OPSYS} == "NetBSD"
+SUBST_SED.config+=	-e '22 s|$$| -I${X11BASE}/include/freetype2|'
+.endif
+
+# append to LIBS line
+SUBST_SED.config+=	-e '21 s|$$| -lXft|'
+.include "../../x11/libXft/buildlink3.mk"
+.endif
+
+###
+### Enable XPM support
+###
+.if !empty(PKG_OPTIONS:Mxpm)
+# append to CFLAGS line
+SUBST_SED.config+=	-e '22 s|$$| -DDZEN_XPM|'
+# append to LIBS line
+SUBST_SED.config+=	-e '21 s|$$| -lXpm|'
+.include "../../x11/libXpm/buildlink3.mk"
+.endif
+
+###
+### Enable XINERAMA support
+###
+.if !empty(PKG_OPTIONS:Mxpm)
+# append to CFLAGS line
+SUBST_SED.config+=	-e '22 s|$$| -DDZEN_XINERAMA|'
+# append to LIBS line
+SUBST_SED.config+=	-e '21 s|$$| -lXinerama|'
+.include "../../x11/libXinerama/buildlink3.mk"
+.endif
diff --git a/dzen-git/patches/patch-config.mk b/dzen-git/patches/patch-config.mk
new file mode 100644
index 0000000000..eb043badf2
--- /dev/null
+++ b/dzen-git/patches/patch-config.mk
@@ -0,0 +1,59 @@
+$NetBSD$
+
+Adapt config.mk to pkgsrc.
+
+--- config.mk	2013-09-23 09:57:39.000000000 +0000
++++ config.mk
+@@ -4,11 +4,10 @@ VERSION = 0.9.5-svn
+ # Customize below to fit your system
+ 
+ # paths
+-PREFIX = /usr/local
+-MANPREFIX = ${PREFIX}/share/man
++MANPREFIX = ${PREFIX}/${PKGMANDIR}
+ 
+-X11INC = /usr/X11R6/include
+-X11LIB = /usr/X11R6/lib
++X11INC = ${X11BASE}/include
++X11LIB = ${X11BASE}/lib
+ INCS = -I. -I/usr/include -I${X11INC}
+ 
+ # Configure the features you want to be supported
+@@ -19,8 +18,8 @@ INCS = -I. -I/usr/include -I${X11INC}
+ # Comment  : Add # to the beginning of the respective lines
+ 
+ ## Option 1: No Xinerama no XPM no XFT
+-#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
+-#CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\"
++LIBS = -lc -L${X11LIB} -lX11
++CFLAGS = -Wall ${INCS} -DVERSION=\"${VERSION}\"
+ 
+ 
+ ## Option 2: No Xinerama with XPM
+@@ -39,8 +38,8 @@ INCS = -I. -I/usr/include -I${X11INC}
+ 
+ 
+ ## Option 5: With XFT
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs xft`
+-CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XFT `pkg-config --cflags xft`
++#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs xft`
++#CFLAGS = -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XFT `pkg-config --cflags xft`
+ 
+ 
+ ## Option 6: With XPM and XFT
+@@ -62,7 +61,7 @@ CFLAGS = -Wall -Os ${INCS} -DVERSION=\"$
+ # END of feature configuration
+ 
+ 
+-LDFLAGS = ${LIBS}
++LDFLAGS += ${LIBS}
+ 
+ # Solaris, uncomment for Solaris
+ #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+@@ -74,5 +73,5 @@ LDFLAGS = ${LIBS}
+ #LDFLAGS = ${LIBS}
+ 
+ # compiler and linker
+-CC = gcc
++#CC = gcc
+ LD = ${CC}
diff --git a/dzen-git/patches/patch-gadgets-config.mk b/dzen-git/patches/patch-gadgets-config.mk
new file mode 100644
index 0000000000..872b92c575
--- /dev/null
+++ b/dzen-git/patches/patch-gadgets-config.mk
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Adapt gadgets/config.mk to pkgsrc
+
+--- gadgets/config.mk	2013-09-23 09:57:39.000000000 +0000
++++ gadgets-config.mk
+@@ -1,18 +1,16 @@
+ # Customize below to fit your system
+ 
+ # paths
+-PREFIX = /usr/local
+-MANPREFIX = ${PREFIX}/share/man
++MANPREFIX = ${PREFIX}/${PKGMANDIR}
+ 
+-X11INC = /usr/X11R6/include
++X11INC = ${X11BASE}include
+ INCS = -I. -I/usr/include -I${X11INC}
+ 
+-X11LIB = /usr/X11R6/lib
+-LIBS = -L/usr/lib 
++X11LIB = ${X11BASE}/lib
++LIBS = -lc
+ 
+-CFLAGS = -Os ${INCS} 
+-LDFLAGS = ${LIBS}
++CFLAGS = ${INCS} 
++LDFLAGS += ${LIBS}
+ 
+ # compiler and linker
+-CC = gcc
+ LD = ${CC}


Home | Main Index | Thread Index | Old Index