From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 28 10:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 ESMTP id E1FADE6B for ; Wed, 28 Aug 2013 10:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 C09882D4A for ; Wed, 28 Aug 2013 10:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7SAo0L5073284 for ; Wed, 28 Aug 2013 10:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7SAo02L073283; Wed, 28 Aug 2013 10:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 28 Aug 2013 10:50:00 GMT Resent-Message-Id: <201308281050.r7SAo02L073283@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Boris Samorodov Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 51629E52 for ; Wed, 28 Aug 2013 10:49:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 253C42D43 for ; Wed, 28 Aug 2013 10:49:38 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7SAncZs026383 for ; Wed, 28 Aug 2013 10:49:38 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7SAnbOY026379; Wed, 28 Aug 2013 10:49:38 GMT (envelope-from nobody) Message-Id: <201308281049.r7SAnbOY026379@oldred.freebsd.org> Date: Wed, 28 Aug 2013 10:49:38 GMT From: Boris Samorodov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181611: [patch] graphics/cuneiform: unbreak with clang, add LICENSE X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 10:50:01 -0000 >Number: 181611 >Category: ports >Synopsis: [patch] graphics/cuneiform: unbreak with clang, add LICENSE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Aug 28 10:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Boris Samorodov >Release: FreeBSD 10.0-CURRENT >Organization: BSDprint >Environment: FreeBSD bsam.int.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r254961: Wed Aug 28 02:04:00 SAMT 2013 bsam@bsam.int.wart.ru:/usr/obj/usr/src/sys/BB64X amd64 >Description: The port does not build with clang: ----- /wrkdirs/usr/ports/graphics/cuneiform/work/cuneiform-linux-1.1.0/cuneiform_src/Kern/leo/src/leo_dll.c:625:30: error: character too large for enclosing character literal type !ansi_letters[(uchar)''] && ^ ----- >How-To-Repeat: >Fix: . fix build with clang (error: character too large for enclosing character literal type); . add LICENSE (BSD), bump PORTREVISION; . remove unneeded WRKSRC creation; . use new LIB_DEPENDS syntax. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 325431) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= cuneiform PORTVERSION= 1.1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= http://launchpadlibrarian.net/69906918/ DISTNAME= ${PORTNAME}-linux-${PORTVERSION} @@ -11,6 +11,9 @@ MAINTAINER= samm@os2.kiev.ua COMMENT= OCR system developed and open sourced by Cognitive technologies +LICENSE= BSD +LICENSE_FILE= ${WRKSRC}/cuneiform_src/Kern/license.txt + ONLY_FOR_ARCHS= i386 amd64 USE_BZIP2= yes @@ -25,15 +28,14 @@ .include .if ${PORT_OPTIONS:MIMAGEMAGICK} -LIB_DEPENDS+= MagickWand:${PORTSDIR}/graphics/ImageMagick +LIB_DEPENDS+= libMagickWand.so:${PORTSDIR}/graphics/ImageMagick .endif -post-extract: - ${MKDIR} ${WRKSRC} - post-patch: ${MV} ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/strings.h \ ${WRKSRC}/cuneiform_src/Kern/hhh/tigerh/h/cf_strings.h + @${REINPLACE_CMD} -e 's:\[(uchar):\[(uchar)L:' \ + ${WRKSRC}/cuneiform_src/Kern/leo/src/leo_dll.c .if ! ${PORT_OPTIONS:MIMAGEMAGICK} @${REINPLACE_CMD} -e '/pkg_check_modules.*ImageMagick/ d' \ ${WRKSRC}/cuneiform_src/Kern/CMakeLists.txt >Release-Note: >Audit-Trail: >Unformatted: