From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 25 15:00:09 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BAA41065676 for ; Sat, 25 Oct 2008 15:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0597D8FC1D for ; Sat, 25 Oct 2008 15:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9PF07v7007853 for ; Sat, 25 Oct 2008 15:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9PF0704007852; Sat, 25 Oct 2008 15:00:07 GMT (envelope-from gnats) Resent-Date: Sat, 25 Oct 2008 15:00:07 GMT Resent-Message-Id: <200810251500.m9PF0704007852@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, Carlos Santos Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D169106569E for ; Sat, 25 Oct 2008 14:50:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1B69A8FC1B for ; Sat, 25 Oct 2008 14:50:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9PEoSQS093600 for ; Sat, 25 Oct 2008 14:50:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9PEoSJH093599; Sat, 25 Oct 2008 14:50:28 GMT (envelope-from nobody) Message-Id: <200810251450.m9PEoSJH093599@www.freebsd.org> Date: Sat, 25 Oct 2008 14:50:28 GMT From: Carlos Santos To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/128366: [PATCH] graphics/epdfview: fix dependency on CUPpS and improve configuration X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2008 15:00:09 -0000 >Number: 128366 >Category: ports >Synopsis: [PATCH] graphics/epdfview: fix dependency on CUPpS and improve configuration >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 25 15:00:07 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Carlos Santos >Release: 8-CURRENT/AMD64 >Organization: N.A. >Environment: FreeBSD poacasantos1 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Oct 24 23:44:22 BRST 2008 root@poacasantos1:/usr/obj/usr/src/sys/GENERIC amd64 >Description: If epdfview-0.1.6_6 is built when print/cups-base is installed, it will be linked to libcups.so.2. Removing cups-base afterwards will render epdeview unusable. >How-To-Repeat: - install cups-base - remove epdfview-0.1.6_6, if installed - build epdfview-0.1.6_6 - remove cups-base - try to run epdfview % /usr/local/bin/epdfview /libexec/ld-elf.so.1: Shared object "libcups.so.2" not found, required by "epdfview" >Fix: Apply the attached patch - Makes the dependency on cups a configurable option (default off) - Makes Native Language Support a configurable option (default on) - Bumps PORTREVISION Patch attached with submission follows: diff -dur epdfview.orig/Makefile epdfview/Makefile --- epdfview.orig/Makefile 2008-09-03 21:24:35.000000000 -0300 +++ epdfview/Makefile 2008-10-25 11:54:33.000000000 -0200 @@ -7,7 +7,7 @@ PORTNAME= epdfview PORTVERSION= 0.1.6 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics print gnome MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \ LOCAL/chinsan @@ -27,6 +27,18 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +OPTIONS= CUPS "Use cups printing system" off \ + NLS "Native language support" on + +.include + +.if defined(WITH_CUPS) +CONFIGURE_ARGS+=--with-cups +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +.else +CONFIGURE_ARGS+=--without-cups +.endif + .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" @@ -43,4 +55,4 @@ ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/ @-update-desktop-database -.include +.include Only in epdfview: work >Release-Note: >Audit-Trail: >Unformatted: