From owner-svn-ports-head@FreeBSD.ORG Tue Dec 17 20:49:17 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12C23F0B; Tue, 17 Dec 2013 20:49:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D93EB1A46; Tue, 17 Dec 2013 20:49:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBHKnGwL038834; Tue, 17 Dec 2013 20:49:16 GMT (envelope-from dhn@svn.freebsd.org) Received: (from dhn@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBHKnG04038832; Tue, 17 Dec 2013 20:49:16 GMT (envelope-from dhn@svn.freebsd.org) Message-Id: <201312172049.rBHKnG04038832@svn.freebsd.org> From: Dennis Herrmann Date: Tue, 17 Dec 2013 20:49:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336766 - head/graphics/gocr X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 20:49:17 -0000 Author: dhn Date: Tue Dec 17 20:49:16 2013 New Revision: 336766 URL: http://svnweb.freebsd.org/changeset/ports/336766 Log: - Update to 0.50 - Shorten header - Convert to OptionsNG - Add license - Fix docs PR: ports/177345 Submitted by: nemysis Modified: head/graphics/gocr/Makefile head/graphics/gocr/distinfo Modified: head/graphics/gocr/Makefile ============================================================================== --- head/graphics/gocr/Makefile Tue Dec 17 20:42:26 2013 (r336765) +++ head/graphics/gocr/Makefile Tue Dec 17 20:49:16 2013 (r336766) @@ -2,26 +2,40 @@ # $FreeBSD$ PORTNAME= gocr -PORTVERSION= 0.49 -PORTREVISION= 1 +PORTVERSION= 0.50 CATEGORIES= graphics MASTER_SITES= http://www-e.uni-magdeburg.de/jschulen/ocr/ MAINTAINER= dhn@FreeBSD.org -COMMENT= An OCR (Optical Character Recognition) program +COMMENT= OCR (Optical Character Recognition) program + +LICENSE= GPLv2 LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm -USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-netpbm=${LOCALBASE} +USE_GMAKE= yes MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} DESTDIR=${DESTDIR} -MAN1= gocr.1 -PORTDOCS= examples.txt gocr.html unicode.txt PLIST_FILES= bin/gocr -.if !defined(WITHOUT_X11) +MAN1= gocr.1 +PORTDOCS= * + +DOCSRCDIR1= ${WRKSRC} +DOC_FILES1= AUTHORS BUGS CREDITS HISTORY README READMEde.txt TODO + +DOCSRCDIR2= ${WRKSRC}/doc +DOCSDIR2= ${DOCSDIR}/doc +DOC_FILES2= *.dtd *.xml *.html *.txt *.fig *.png + +OPTIONS_DEFINE= X11 +OPTIONS_DEFAULT= X11 + +.include + +.if ${PORT_OPTIONS:MX11} USE_TK_WRAPPER= yes PLIST_FILES+= bin/gocr.tcl .endif @@ -29,14 +43,16 @@ PLIST_FILES+= bin/gocr.tcl NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|@LIBS@|-L${LOCALBASE}/lib @LIBS@|g' ${WRKSRC}/src/Makefile.in -.if defined(WITHOUT_X11) +.if ! ${PORT_OPTIONS:MX11} @${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} + @${MKDIR} ${DOCSDIR2} + ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2} .endif .include Modified: head/graphics/gocr/distinfo ============================================================================== --- head/graphics/gocr/distinfo Tue Dec 17 20:42:26 2013 (r336765) +++ head/graphics/gocr/distinfo Tue Dec 17 20:49:16 2013 (r336766) @@ -1,2 +1,2 @@ -SHA256 (gocr-0.49.tar.gz) = cc29931d50b3be11608dc79d1c7d8a20919dbe6313b1ba5dc88ecf99cffd171a -SIZE (gocr-0.49.tar.gz) = 392386 +SHA256 (gocr-0.50.tar.gz) = bc261244f887419cba6d962ec1ad58eefd77176885093c4a43061e7fd565f5b5 +SIZE (gocr-0.50.tar.gz) = 419209