From nobody@FreeBSD.org  Sun May 11 18:32:39 2014
Return-Path: <nobody@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 47D85F21
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 May 2014 18:32:39 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 34FF82992
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 May 2014 18:32:39 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4BIWdcX007551
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 May 2014 18:32:39 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4BIWdLH007547;
	Sun, 11 May 2014 18:32:39 GMT
	(envelope-from nobody)
Message-Id: <201405111832.s4BIWdLH007547@cgiserv.freebsd.org>
Date: Sun, 11 May 2014 18:32:39 GMT
From: Mazhe <mazhe@alkumuna.eu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] support for staging in graphics/epdfview
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189680
>Category:       ports
>Synopsis:       [patch] support for staging in graphics/epdfview
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sylvio
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 11 18:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 11 18:40:05 UTC 2014
>Originator:     Mazhe
>Release:        10.0-RELEASE-p3
>Organization:
-
>Environment:
FreeBSD freedom.alkumuna.eu 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr  8 06:45:06 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
graphics/epdfview is still lacking staging support while the deadline is approaching.
>How-To-Repeat:
-
>Fix:
See attached patch. It also fix cups name in lib_depends as suggested by portlint.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 353722)
+++ Makefile	(working copy)
@@ -26,14 +26,11 @@
 
 OPTIONS_DEFINE=	CUPS NLS
 
-MAN1=	epdfview.1
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MCUPS}
 CONFIGURE_ARGS+=--with-cups
-LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-client
+LIB_DEPENDS+=	libcups.so:${PORTSDIR}/print/cups-client
 .else
 CONFIGURE_ARGS+=--without-cups
 .endif
@@ -54,7 +51,7 @@
 
 post-install:
 	${REINPLACE_CMD} -e 's,Icon.*,Icon=${DATADIR}/pixmaps/icon_epdfview-48.png,' ${WRKSRC}/data/${PORTNAME}.desktop
-	${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
+	${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${STAGEDIR}${LOCALBASE}/share/applications/
 	@-update-desktop-database
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sylvio 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 11 18:40:05 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189680 
>Unformatted:
