From 20cbd026a81e215e7f3cf469bf0bc19ca90181f9 Mon Sep 17 00:00:00 2001 From: alepulver Date: Tue, 11 Mar 2008 22:48:42 +0000 Subject: Ratmen is a simple program for displaying a menu in a window. On selection is may either run a program or simply write something on standard out. It is inspired by, and is similar in function to, 9menu and ratmenu but is muchly improved. It includes: User settings in X resources, long and short option names (using getopts), scrollable menus (if they do not fit on screen), both mouse and keyboard support, exiting on unfocus, and a decent manpage. WWW: http://www.update.uu.se/~zrajm/programs/ --- x11-wm/ratmen/Makefile | 24 ++++++++++++++++++++++++ x11-wm/ratmen/distinfo | 3 +++ x11-wm/ratmen/files/patch-Makefile | 24 ++++++++++++++++++++++++ x11-wm/ratmen/files/patch-ratmen.c | 10 ++++++++++ x11-wm/ratmen/pkg-descr | 8 ++++++++ 5 files changed, 69 insertions(+) create mode 100644 x11-wm/ratmen/Makefile create mode 100644 x11-wm/ratmen/distinfo create mode 100644 x11-wm/ratmen/files/patch-Makefile create mode 100644 x11-wm/ratmen/files/patch-ratmen.c create mode 100644 x11-wm/ratmen/pkg-descr (limited to 'x11-wm/ratmen') diff --git a/x11-wm/ratmen/Makefile b/x11-wm/ratmen/Makefile new file mode 100644 index 000000000000..1323e4be4075 --- /dev/null +++ b/x11-wm/ratmen/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: ratmen +# Date created: 2008-02-20 +# Whom: alepulver +# +# $FreeBSD$ +# + +PORTNAME= ratmen +PORTVERSION= 2.2.3 +CATEGORIES= x11-wm +MASTER_SITES= http://www.update.uu.se/~zrajm/programs/ratmen/ + +MAINTAINER= alepulver@FreeBSD.org +COMMENT= Simple program for displaying a menu in a window + +USE_XLIB= yes +MAN1= ratmen.1 +PLIST_FILES= bin/ratmen + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ratmen ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/ratmen.1 ${MAN1PREFIX}/man/man1 + +.include diff --git a/x11-wm/ratmen/distinfo b/x11-wm/ratmen/distinfo new file mode 100644 index 000000000000..dccc35ce2fab --- /dev/null +++ b/x11-wm/ratmen/distinfo @@ -0,0 +1,3 @@ +MD5 (ratmen-2.2.3.tar.gz) = 4cc8de0f3138d9eacb06f08292df6294 +SHA256 (ratmen-2.2.3.tar.gz) = 2672f33da616c8d239c3f6d2281d64106b1e2e936dbf833294a827c82cc4ce3e +SIZE (ratmen-2.2.3.tar.gz) = 25026 diff --git a/x11-wm/ratmen/files/patch-Makefile b/x11-wm/ratmen/files/patch-Makefile new file mode 100644 index 000000000000..9bd308ca0281 --- /dev/null +++ b/x11-wm/ratmen/files/patch-Makefile @@ -0,0 +1,24 @@ +--- ./Makefile.orig 2007-10-25 10:51:20.000000000 -0300 ++++ ./Makefile 2008-02-20 17:07:36.000000000 -0300 +@@ -32,16 +32,16 @@ + ) + + +-PREFIX=/usr/local +-MANDIR=$(PREFIX)/man ++PREFIX?=/usr/local ++MANDIR=$(MANPREFIX)/man + + OPTIMIZE ?= -Os + DEBUG ?= + WARN ?= -Wall -ansi -pedantic + +-CC = gcc +-LIBS = -L/usr/X11R6/lib -lX11 +-CFLAGS = $(OPTIMIZE) $(WARN) $(DEBUG) ++CC ?= gcc ++LIBS = -L$(X11BASE)/lib -lX11 ++CFLAGS += $(OPTIMIZE) $(WARN) $(DEBUG) -I$(X11BASE)/include + + all: doc $(PROG) + diff --git a/x11-wm/ratmen/files/patch-ratmen.c b/x11-wm/ratmen/files/patch-ratmen.c new file mode 100644 index 000000000000..5fb528f98e56 --- /dev/null +++ b/x11-wm/ratmen/files/patch-ratmen.c @@ -0,0 +1,10 @@ +--- ./ratmen.c.orig 2007-10-25 09:13:39.000000000 -0300 ++++ ./ratmen.c 2008-02-20 17:08:21.000000000 -0300 +@@ -128,7 +128,6 @@ + + + /* function prototypes */ +-int strcasecmp(char*, char*); /* string comparison */ + void ask_wm_for_delete(void); + void reap(int); + void redraw_snazzy(int, int, int); diff --git a/x11-wm/ratmen/pkg-descr b/x11-wm/ratmen/pkg-descr new file mode 100644 index 000000000000..bae1d59318d9 --- /dev/null +++ b/x11-wm/ratmen/pkg-descr @@ -0,0 +1,8 @@ +Ratmen is a simple program for displaying a menu in a window. On selection is +may either run a program or simply write something on standard out. It is +inspired by, and is similar in function to, 9menu and ratmenu but is muchly +improved. It includes: User settings in X resources, long and short option +names (using getopts), scrollable menus (if they do not fit on screen), both +mouse and keyboard support, exiting on unfocus, and a decent manpage. + +WWW: http://www.update.uu.se/~zrajm/programs/ -- cgit