Index: head/misc/lv/Makefile =================================================================== --- head/misc/lv/Makefile (revision 304254) +++ head/misc/lv/Makefile (revision 304255) @@ -1,30 +1,30 @@ # New ports collection makefile for: lv # Date created: Fri Nov 6 09:06:33 PST 1998 # Whom: sumikawa@FreeBSD.org # # $FreeBSD$ # PORTNAME= lv PORTVERSION= 4.51 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc MASTER_SITES= http://www.ff.iij4u.or.jp/~nrt/freeware/ DISTNAME= lv451 MAINTAINER= sumikawa@FreeBSD.org COMMENT= Powerful Multilingual File Viewer WRKSRC= ${WRKDIR}/${DISTNAME}/src GNU_CONFIGURE= yes MAN1= lv.1 post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} (cd ${WRKDIR}/${DISTNAME}; \ ${INSTALL_DATA} *.html hello.sample* ${DOCSDIR}) .endif .include Index: head/misc/lv/files/patch-src_lv.c =================================================================== --- head/misc/lv/files/patch-src_lv.c (revision 304254) +++ head/misc/lv/files/patch-src_lv.c (nonexistent) @@ -1,49 +0,0 @@ ---- lv.c.orig 2004-01-05 16:30:15.000000000 +0900 -+++ lv.c 2012-08-23 16:49:46.728726453 +0900 -@@ -2,6 +2,7 @@ - * lv.c - * - * All rights reserved. Copyright (C) 1996 by NARITA Tomio. -+ * Copyright (C) Oct 27, 2011 Koichiro IWAO. All rights reserved. - * $Id: lv.c,v 1.10 2004/01/05 07:30:15 nrt Exp $ - */ - /* -@@ -89,16 +90,35 @@ - grep_mode = FALSE; - } - -+private boolean_t isDirectory(byte **file) { -+ struct stat buf; -+ stat((unsigned char *)file, &buf); -+ if (S_ISDIR(buf.st_mode)) { -+ fprintf(stderr, "%s is a directory\n", file); -+ return TRUE; -+ } else { -+ return FALSE; -+ } -+} -+ - private boolean_t LvOpen( conf_t *conf ) - { -+ boolean_t flagIsDirectory = FALSE; -+ - if( NULL != conf->file ){ -+ if( TRUE == isDirectory( *conf->file ) ){ -+ flagIsDirectory = TRUE; -+ } - if( NULL == (conf->st = StreamOpen( *conf->file )) ){ - while( NULL != *(++conf->file) ){ -- if( NULL != (conf->st = StreamOpen( *conf->file )) ) -- return TRUE; -+ if( NULL != (conf->st = StreamOpen( *conf->file )) ){ -+ if( TRUE == isDirectory( *conf->file ) ){ -+ flagIsDirectory = TRUE; -+ } -+ } - } -- return FALSE; - } -+ return (TRUE == flagIsDirectory ? FALSE : TRUE); - } else { - conf->st = StreamReconnectStdin(); - } Property changes on: head/misc/lv/files/patch-src_lv.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property