1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Rename misc/lr to misc/lazyread to reflect upstream name and avoid conflicts with sysutils/lr

- Simplify and fix lesspipe.sh handling (add missing argument, and assume it always exists)
- Cleanup and simplify the port

PR:		221206
Approved by:	maintainer timeout (mich, 2 weeks)
This commit is contained in:
Dmitry Marakasov 2017-08-22 16:33:59 +00:00
parent 155eb4d28c
commit fcc5a76608
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448545
9 changed files with 46 additions and 74 deletions

1
MOVED
View File

@ -9505,3 +9505,4 @@ graphics/rawtherapee-devel|graphics/rawtherapee|2017-08-12|Removed test release
audio/py-jack|audio/py-py-jack|2017-08-20|Renamed to py-py-jack to match PyPI package name
lang/whitespace||2017-08-21|Has expired: Mastersite disappeared
databases/sqlitebrowser-qt5|databases/sqlitebrowser|2017-08-22|sqlitebrowser now uses QT5
misc/lr|misc/lazyread|2017-08-22|Renamed to reflect upstream name

View File

@ -241,6 +241,7 @@
SUBDIR += ktouch
SUBDIR += kwordquiz
SUBDIR += latex-mk
SUBDIR += lazyread
SUBDIR += lc
SUBDIR += lesspipe
SUBDIR += libeatmydata
@ -256,7 +257,6 @@
SUBDIR += localedata
SUBDIR += logsurfer
SUBDIR += loop
SUBDIR += lr
SUBDIR += lv
SUBDIR += lxde-common
SUBDIR += magicpoint

31
misc/lazyread/Makefile Normal file
View File

@ -0,0 +1,31 @@
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
# $FreeBSD$
PORTNAME= lazyread
PORTVERSION= 2.0
CATEGORIES= misc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
MAINTAINER= mich@FreeBSD.org
COMMENT= Lazyread can auto-scroll files on your screen in movie credit fashion
USES= ncurses
LDFLAGS+= -lncurses
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} lazyread.c ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1501778211
SHA256 (lazyread-2.0.tar.gz) = 7e462c5c9fe104d69e410c537336af838a30a030699dd9320f75fe85a20746a1
SIZE (lazyread-2.0.tar.gz) = 12583

View File

@ -0,0 +1,11 @@
--- lazyread.c.orig 2003-02-02 13:28:15 UTC
+++ lazyread.c
@@ -377,7 +377,7 @@ char qfilename[BUFMAX]; /* quoted filena
printf("Loading..\n");
/* $LESSOPEN will look like: |/usr/bin/lesspipe.sh %s */
- lesspipe = getenv("LESSOPEN");
+ lesspipe = "|/usr/bin/lesspipe.sh %s";
if (lesspipe) {
/* strip off the leading | */
if ((c = strchr(lesspipe, '|'))) {

View File

@ -5,7 +5,4 @@ features, such as being able to choose the speed at which it
scrolls, pause, dynamic speed up, the ability to highlight lines
that contain a specified string, and much more.
WWW: http://lazyread.sourceforge.net
- Michael L. Hostbaek
mich@FreeBSD.org
WWW: http://lazyread.sourceforge.net/

View File

@ -1,53 +0,0 @@
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
# $FreeBSD$
PORTNAME= lr
PORTVERSION= 2.0
CATEGORIES= misc
MASTER_SITES= SF/lazyread/lazyread/lazyread%20${PORTVERSION}
DISTNAME= lazyread-${PORTVERSION}
MAINTAINER= mich@FreeBSD.org
COMMENT= Lazyread can auto-scroll files on your screen in movie credit fashion
USES= ncurses
OPTIONS_DEFINE= DOCS
CONFLICTS_INSTALL= lrfiles-[0-9]*
.include <bsd.port.pre.mk>
.if exists(/usr/bin/lesspipe.sh)
LESSPIPE_PATH=/usr/bin/
PLIST_SUB+= LESSPIPE="@comment "
.else
.if exists(${LOCALBASE}/bin/lesspipe.sh)
LESSPIPE_PATH=${LOCALBASE}/bin/
PLIST_SUB+= LESSPIPE="@comment "
.else
INSTALL_LESSPIPE=1
LESSPIPE_PATH=${LOCALBASE}/bin/
PLIST_SUB+= LESSPIPE=""
.endif
.endif
LDFLAGS+= -lncurses
WRKSRC= ${WRKDIR}/${DISTNAME}
pre-patch:
@${REINPLACE_CMD} -e 's|getenv("LESSOPEN")|"\|${LESSPIPE_PATH}lesspipe.sh"|' ${WRKSRC}/lazyread.c
do-build:
cd ${WRKSRC}; ${CC} ${CFLAGS} -o lr lazyread.c ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lr ${STAGEDIR}${PREFIX}/bin
.if defined(INSTALL_LESSPIPE)
${INSTALL_SCRIPT} ${FILESDIR}/lesspipe.sh ${STAGEDIR}${PREFIX}/bin
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -1,13 +0,0 @@
#! /bin/sh
# ex:ts=8
# $FreeBSD: /tmp/pcvs/ports/misc/lr/files/lesspipe.sh,v 1.1 2003-04-13 10:43:20 edwin Exp $
case "$1" in
*.Z) uncompress -c $1 2>/dev/null
;;
*.gz) gzip -d -c $1 2>/dev/null
;;
*.bz2) bzip2 -d -c $1 2>/dev/null
;;
esac

View File

@ -1,3 +0,0 @@
bin/lr
%%LESSPIPE%%bin/lesspipe.sh
%%PORTDOCS%%%%DOCSDIR%%/README