mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/reed: Update to 5.6
Remove perl dependency by rewriting parts in sh
This commit is contained in:
parent
a86b2f49e2
commit
7b88ca7ea3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504718
6 changed files with 11 additions and 60 deletions
|
@ -2,10 +2,10 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= reed
|
||||
PORTVERSION= 5.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 5.6
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/
|
||||
MASTER_SITES= LOCAL/crees/reed \
|
||||
https://www.bayofrum.net/dist/reed/
|
||||
|
||||
MAINTAINER= crees@FreeBSD.org
|
||||
COMMENT= Text pager with autoscrolling and more
|
||||
|
@ -13,24 +13,19 @@ COMMENT= Text pager with autoscrolling and more
|
|||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= ncurses perl5 shebangfix
|
||||
USE_PERL5= run
|
||||
SHEBANG_FILES= wrap breed fix_bookmarks.pl
|
||||
USES= ncurses tar:bzip2
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT= configures
|
||||
CONFIGURE_ARGS+= --prefix ${PREFIX}
|
||||
CONFIGURE_ENV+= INCDIR="${NCURSESINC}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures
|
||||
@${REINPLACE_CMD} 's!sys/dir.h!dirent.h!g;\!getopt.h!d' \
|
||||
${WRKSRC}/reed.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/reed ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/breed ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/wrap ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/fix_bookmarks.pl ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/fix_bookmarks.sh ${STAGEDIR}${DATADIR}/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (reed-5.4.tar.gz) = 226a057aa5db705e83b685207d635d0d3b983999f1e526e0768aa56b0e7c02a8
|
||||
SIZE (reed-5.4.tar.gz) = 32414
|
||||
TIMESTAMP = 1561057479
|
||||
SHA256 (reed-5.6.tar.bz2) = 1fe61c030d2a51df12f43df2b6fa8101bcd53c6a9ed2e1ba46c09acf837534ba
|
||||
SIZE (reed-5.6.tar.bz2) = 28727
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
--- Makefile.in.orig 2002-11-09 00:59:08 UTC
|
||||
+++ Makefile.in
|
||||
@@ -1,8 +1,8 @@
|
||||
all:
|
||||
- $(CC) -O2 -o reed reed.c filemode.c -lcurses
|
||||
+ $(CC) $(CFLAGS) -o reed reed.c filemode.c $(LDFLAGS) -lncurses
|
||||
|
||||
debug:
|
||||
- $(CC) -o reed reed.c filemode.c -lcurses -Wall -g
|
||||
+ $(CC) $(CFLAGS) -o reed reed.c filemode.c $(LDFLAGS) -lncurses -Wall -g
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)PREFIX/bin
|
|
@ -1,13 +0,0 @@
|
|||
$FreeBSD$
|
||||
|
||||
--- cfg.data.orig 2002-11-09 00:59:08 UTC
|
||||
+++ cfg.data
|
||||
@@ -1,6 +1,6 @@
|
||||
PROGNAME="Reed"
|
||||
VERSION="5.4"
|
||||
PROGRAMS="perl fold"
|
||||
-LIBS="c curses"
|
||||
+LIBS="c ncurses"
|
||||
PM="Getopt/Std Text/Wrap"
|
||||
-HEADERS="sys/dir.h sys/stat.h ctype.h curses.h dirent.h getopt.h regex.h limits.h time.h unistd.h"
|
||||
+HEADERS="sys/stat.h ctype.h ncurses.h dirent.h regex.h limits.h time.h unistd.h"
|
|
@ -1,19 +0,0 @@
|
|||
$FreeBSD$
|
||||
|
||||
--- reed.c.orig 2002-11-09 00:59:08 UTC
|
||||
+++ reed.c
|
||||
@@ -24,13 +24,12 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
-#include <sys/dir.h>
|
||||
+#include <dirent.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <curses.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
-#include <getopt.h>
|
||||
#include <grp.h>
|
||||
#include <limits.h>
|
||||
#include <pwd.h>
|
|
@ -4,4 +4,4 @@ bin/wrap
|
|||
man/man1/breed.1.gz
|
||||
man/man1/reed.1.gz
|
||||
man/man1/wrap.1.gz
|
||||
share/reed/fix_bookmarks.pl
|
||||
share/reed/fix_bookmarks.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue