View | Details | Raw Unified | Return to bug 221206
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 241-246 Link Here
241
    SUBDIR += ktouch
241
    SUBDIR += ktouch
242
    SUBDIR += kwordquiz
242
    SUBDIR += kwordquiz
243
    SUBDIR += latex-mk
243
    SUBDIR += latex-mk
244
    SUBDIR += lazyread
244
    SUBDIR += lc
245
    SUBDIR += lc
245
    SUBDIR += lesspipe
246
    SUBDIR += lesspipe
246
    SUBDIR += libeatmydata
247
    SUBDIR += libeatmydata
Lines 256-262 Link Here
256
    SUBDIR += localedata
257
    SUBDIR += localedata
257
    SUBDIR += logsurfer
258
    SUBDIR += logsurfer
258
    SUBDIR += loop
259
    SUBDIR += loop
259
    SUBDIR += lr
260
    SUBDIR += lv
260
    SUBDIR += lv
261
    SUBDIR += lxde-common
261
    SUBDIR += lxde-common
262
    SUBDIR += magicpoint
262
    SUBDIR += magicpoint
(-)lr/Makefile (-53 lines)
Lines 1-53 Link Here
1
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
2
# $FreeBSD$
3
4
PORTNAME=	lr
5
PORTVERSION=	2.0
6
CATEGORIES=	misc
7
MASTER_SITES=	SF/lazyread/lazyread/lazyread%20${PORTVERSION}
8
DISTNAME=	lazyread-${PORTVERSION}
9
10
MAINTAINER=	mich@FreeBSD.org
11
COMMENT=	Lazyread can auto-scroll files on your screen in movie credit fashion
12
13
USES=		ncurses
14
OPTIONS_DEFINE=	DOCS
15
16
CONFLICTS_INSTALL=	lrfiles-[0-9]*
17
18
.include <bsd.port.pre.mk>
19
20
.if exists(/usr/bin/lesspipe.sh)
21
LESSPIPE_PATH=/usr/bin/
22
PLIST_SUB+=	LESSPIPE="@comment "
23
.else
24
.if exists(${LOCALBASE}/bin/lesspipe.sh)
25
LESSPIPE_PATH=${LOCALBASE}/bin/
26
PLIST_SUB+=	LESSPIPE="@comment "
27
.else
28
INSTALL_LESSPIPE=1
29
LESSPIPE_PATH=${LOCALBASE}/bin/
30
PLIST_SUB+=	LESSPIPE=""
31
.endif
32
.endif
33
34
LDFLAGS+=	-lncurses
35
WRKSRC=		${WRKDIR}/${DISTNAME}
36
37
pre-patch:
38
	@${REINPLACE_CMD} -e 's|getenv("LESSOPEN")|"\|${LESSPIPE_PATH}lesspipe.sh"|' ${WRKSRC}/lazyread.c
39
40
do-build:
41
	cd ${WRKSRC}; ${CC} ${CFLAGS} -o lr lazyread.c ${LDFLAGS}
42
43
do-install:
44
	${INSTALL_PROGRAM} ${WRKSRC}/lr ${STAGEDIR}${PREFIX}/bin
45
46
.if defined(INSTALL_LESSPIPE)
47
	${INSTALL_SCRIPT} ${FILESDIR}/lesspipe.sh ${STAGEDIR}${PREFIX}/bin
48
.endif
49
50
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
51
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
52
53
.include <bsd.port.post.mk>
(-)lr/distinfo (-2 lines)
Lines 1-2 Link Here
1
SHA256 (lazyread-2.0.tar.gz) = 7e462c5c9fe104d69e410c537336af838a30a030699dd9320f75fe85a20746a1
2
SIZE (lazyread-2.0.tar.gz) = 12583
(-)lr/files/lesspipe.sh (-13 lines)
Lines 1-13 Link Here
1
#! /bin/sh
2
# ex:ts=8
3
4
# $FreeBSD: /tmp/pcvs/ports/misc/lr/files/lesspipe.sh,v 1.1 2003-04-13 10:43:20 edwin Exp $
5
6
case "$1" in
7
	*.Z)	uncompress -c $1	2>/dev/null
8
		;;
9
	*.gz)	gzip -d -c $1		2>/dev/null
10
		;;
11
	*.bz2)	bzip2 -d -c $1		2>/dev/null
12
		;;
13
esac
(-)lr/pkg-descr (-11 lines)
Lines 1-11 Link Here
1
Lazyread is a C program that auto-scrolls files on your screen
2
in movie credit fashion. It allows the user to read without having
3
to manually scroll down to see new pages. There are lots of
4
features, such as being able to choose the speed at which it
5
scrolls, pause, dynamic speed up, the ability to highlight lines
6
that contain a specified string, and much more.
7
8
WWW: http://lazyread.sourceforge.net
9
10
	- Michael L. Hostbaek
11
	mich@FreeBSD.org
(-)lr/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
bin/lr
2
%%LESSPIPE%%bin/lesspipe.sh
3
%%PORTDOCS%%%%DOCSDIR%%/README
(-)lazyread/Makefile (-30 / +12 lines)
Lines 1-53 Link Here
1
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
1
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	lr
4
PORTNAME=	lazyread
5
PORTVERSION=	2.0
5
PORTVERSION=	2.0
6
PORTREVISION=	1
6
CATEGORIES=	misc
7
CATEGORIES=	misc
7
MASTER_SITES=	SF/lazyread/lazyread/lazyread%20${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
8
DISTNAME=	lazyread-${PORTVERSION}
9
9
10
MAINTAINER=	mich@FreeBSD.org
10
MAINTAINER=	mich@FreeBSD.org
11
COMMENT=	Lazyread can auto-scroll files on your screen in movie credit fashion
11
COMMENT=	Lazyread can auto-scroll files on your screen in movie credit fashion
12
12
13
USES=		ncurses
13
USES=		ncurses
14
OPTIONS_DEFINE=	DOCS
15
14
16
CONFLICTS_INSTALL=	lrfiles-[0-9]*
15
LDFLAGS+=	-lncurses
17
16
18
.include <bsd.port.pre.mk>
17
PLIST_FILES=	bin/${PORTNAME}
18
PORTDOCS=	*
19
19
20
.if exists(/usr/bin/lesspipe.sh)
20
OPTIONS_DEFINE=	DOCS
21
LESSPIPE_PATH=/usr/bin/
22
PLIST_SUB+=	LESSPIPE="@comment "
23
.else
24
.if exists(${LOCALBASE}/bin/lesspipe.sh)
25
LESSPIPE_PATH=${LOCALBASE}/bin/
26
PLIST_SUB+=	LESSPIPE="@comment "
27
.else
28
INSTALL_LESSPIPE=1
29
LESSPIPE_PATH=${LOCALBASE}/bin/
30
PLIST_SUB+=	LESSPIPE=""
31
.endif
32
.endif
33
21
34
LDFLAGS+=	-lncurses
35
WRKSRC=		${WRKDIR}/${DISTNAME}
36
37
pre-patch:
22
pre-patch:
38
	@${REINPLACE_CMD} -e 's|getenv("LESSOPEN")|"\|${LESSPIPE_PATH}lesspipe.sh"|' ${WRKSRC}/lazyread.c
23
	@${REINPLACE_CMD} -e 's|getenv("LESSOPEN")|"\|/usr/bin/lesspipe.sh"|' ${WRKSRC}/lazyread.c
39
24
40
do-build:
25
do-build:
41
	cd ${WRKSRC}; ${CC} ${CFLAGS} -o lr lazyread.c ${LDFLAGS}
26
	cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} lazyread.c ${LDFLAGS}
42
27
43
do-install:
28
do-install:
44
	${INSTALL_PROGRAM} ${WRKSRC}/lr ${STAGEDIR}${PREFIX}/bin
29
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
45
30
46
.if defined(INSTALL_LESSPIPE)
31
do-install-DOCS-on:
47
	${INSTALL_SCRIPT} ${FILESDIR}/lesspipe.sh ${STAGEDIR}${PREFIX}/bin
48
.endif
49
50
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
32
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
51
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
52
34
53
.include <bsd.port.post.mk>
35
.include <bsd.port.mk>
(-)lazyread/distinfo (+1 lines)
Lines 1-2 Link Here
1
TIMESTAMP = 1501778211
1
SHA256 (lazyread-2.0.tar.gz) = 7e462c5c9fe104d69e410c537336af838a30a030699dd9320f75fe85a20746a1
2
SHA256 (lazyread-2.0.tar.gz) = 7e462c5c9fe104d69e410c537336af838a30a030699dd9320f75fe85a20746a1
2
SIZE (lazyread-2.0.tar.gz) = 12583
3
SIZE (lazyread-2.0.tar.gz) = 12583
(-)lazyread/pkg-descr (-4 / +1 lines)
Lines 5-11 Link Here
5
scrolls, pause, dynamic speed up, the ability to highlight lines
5
scrolls, pause, dynamic speed up, the ability to highlight lines
6
that contain a specified string, and much more.
6
that contain a specified string, and much more.
7
7
8
WWW: http://lazyread.sourceforge.net
8
WWW: http://lazyread.sourceforge.net/
9
10
	- Michael L. Hostbaek
11
	mich@FreeBSD.org

Return to bug 221206