Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2020 11:24:59 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r551573 - in head/x11: . pmenu pmenu/files
Message-ID:  <202010061124.096BOx4x033229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Tue Oct  6 11:24:59 2020
New Revision: 551573
URL: https://svnweb.freebsd.org/changeset/ports/551573

Log:
  Add x11/pmenu
  
  Pmenu is a pie menu utility for X. Pmenu receives a menu specification
  in stdin, shows a menu for the user to select one of the options,
  and outputs the option selected to stdout.
  
  Pmenu comes with the following features:
  
  - Pmenu reads something in and prints something out, the UNIX way.
  - Submenus (some pie-menu slices can spawn another menu).
  - Icons (pie-menu slices can contain icon image).
  - X resources support (you don't need to recompile pmenu for configuring it).
  
  Check out my other project, xclickroot for an application that can spawn pmenu
  by right clicking on the root window (i.e. on the desktop).
  
  WWW: https://github.com/phillbush/pmenu

Added:
  head/x11/pmenu/
  head/x11/pmenu/Makefile   (contents, props changed)
  head/x11/pmenu/distinfo   (contents, props changed)
  head/x11/pmenu/files/
  head/x11/pmenu/files/patch-config.mk   (contents, props changed)
  head/x11/pmenu/pkg-descr   (contents, props changed)
Modified:
  head/x11/Makefile

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Tue Oct  6 10:57:12 2020	(r551572)
+++ head/x11/Makefile	Tue Oct  6 11:24:59 2020	(r551573)
@@ -262,6 +262,7 @@
     SUBDIR += plasma5-plasma-desktop
     SUBDIR += plasma5-plasma-integration
     SUBDIR += plasma5-plasma-workspace
+    SUBDIR += pmenu
     SUBDIR += polybar
     SUBDIR += printscreen
     SUBDIR += py-caffeine-ng

Added: head/x11/pmenu/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/pmenu/Makefile	Tue Oct  6 11:24:59 2020	(r551573)
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME=	pmenu
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.1.2
+CATEGORIES=	x11
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES=	91d52b3dbe197681c3252703ae57594dfd755f5a.patch:-p1
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Pie menu for X
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libImlib2.so:graphics/imlib2
+
+USES=		localbase xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	phillbush
+USE_XORG=	x11 xext xft xinerama
+
+MAKE_ARGS=	FREETYPEINC="${LOCALBASE}/include/freetype2" \
+		PREFIX="${PREFIX}"
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz
+
+PORTEXAMPLES=	${PORTNAME}.sh
+
+OPTIONS_DEFINE=	EXAMPLES
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>

Added: head/x11/pmenu/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/pmenu/distinfo	Tue Oct  6 11:24:59 2020	(r551573)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1601983413
+SHA256 (phillbush-pmenu-v2.1.2_GH0.tar.gz) = 6e10de31b923f96ae0eb0b7fc37097c0ac94e8af6bf688dd931cc0cf554367e5
+SIZE (phillbush-pmenu-v2.1.2_GH0.tar.gz) = 14160
+SHA256 (91d52b3dbe197681c3252703ae57594dfd755f5a.patch) = 4d3bcde210d9e96c76a81507defe5a2e0f24997127405ba4ccb20aead3cec1b6
+SIZE (91d52b3dbe197681c3252703ae57594dfd755f5a.patch) = 939

Added: head/x11/pmenu/files/patch-config.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/pmenu/files/patch-config.mk	Tue Oct  6 11:24:59 2020	(r551573)
@@ -0,0 +1,20 @@
+--- config.mk.orig	2020-10-06 11:12:09 UTC
++++ config.mk
+@@ -17,12 +17,12 @@ FREETYPEINC = /usr/include/freetype2
+ 
+ # includes and libs
+ INCS = -I${LOCALINC} -I${X11INC} -I${FREETYPEINC}
+-LIBS = -L${LOCALLIB} -L${X11LIB} -lm -lfontconfig -lXft -lX11 -lXinerama -lXext -lImlib2
++LIBS += -L${LOCALLIB} -L${X11LIB} -lm -lfontconfig -lXft -lX11 -lXinerama -lXext -lImlib2
+ 
+ # flags
+-CPPFLAGS =
+-CFLAGS = -Wall -Wextra ${INCS} ${CPPFLAGS}
+-LDFLAGS = ${LIBS}
++CPPFLAGS +=
++CFLAGS += -Wall -Wextra ${INCS} ${CPPFLAGS}
++LDFLAGS += ${LIBS}
+ 
+ # compiler and linker
+-CC = cc
++CC ?= cc

Added: head/x11/pmenu/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/pmenu/pkg-descr	Tue Oct  6 11:24:59 2020	(r551573)
@@ -0,0 +1,15 @@
+Pmenu is a pie menu utility for X. Pmenu receives a menu specification
+in stdin, shows a menu for the user to select one of the options,
+and outputs the option selected to stdout.
+
+Pmenu comes with the following features:
+
+- Pmenu reads something in and prints something out, the UNIX way.
+- Submenus (some pie-menu slices can spawn another menu).
+- Icons (pie-menu slices can contain icon image).
+- X resources support (you don't need to recompile pmenu for configuring it).
+
+Check out my other project, xclickroot for an application that can spawn pmenu
+by right clicking on the root window (i.e. on the desktop).
+
+WWW: https://github.com/phillbush/pmenu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010061124.096BOx4x033229>