From owner-freebsd-gnome@FreeBSD.ORG Mon Sep 27 11:53:51 2010 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0A09106566C; Mon, 27 Sep 2010 11:53:51 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 20C4C8FC1D; Mon, 27 Sep 2010 11:53:51 +0000 (UTC) Received: from megatron.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id 1DB841EF6; Mon, 27 Sep 2010 13:38:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= date:date:message-id:reply-to:from:from:subject:subject:received :received; s=mail; t=1285587504; x=1287401904; bh=F97NCKnEgmHnez A5or51u1+Fcj0UE4xHQST9WaHBjhc=; b=sIOUJiW21xyqItrvJVSapIper+SHu6 tQ75+jiIKfUJr/53UENzeIN/NJXeu7gcO42gIL9t43CkUY3aGkkbvVtzYn11+RqS FeXdgvak2jVhHgM3bAgftgCbvgaH1A06T5dnv36dMCD3nx160GmjduL629dUI2FR 08G1k5pCrb9w4= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JX7sRzlo6VBT; Mon, 27 Sep 2010 13:38:24 +0200 (CEST) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 10B231EED; Mon, 27 Sep 2010 13:38:24 +0200 (CEST) To: FreeBSD-gnats-submit@freebsd.org From: Guido Falsi X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20100927113824.10B231EED@megatron.madpilot.net> Date: Mon, 27 Sep 2010 13:38:24 +0200 (CEST) Cc: gnome@FreeBSD.org Subject: [patch]: make the dependency on gnucash-docs conditional X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Guido Falsi List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2010 11:53:51 -0000 >Submitter-Id: current-users >Originator: Guido Falsi >Organization: none >Confidential: no >Synopsis: [patch]: make the dependency on gnucash-docs conditional >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 8.1-STABLE amd64 >Environment: System: FreeBSD megatron.madpilot.net 8.1-STABLE FreeBSD 8.1-STABLE #22: Tue Sep 21 19:13:06 CEST 2010 root@megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64 >Description: Since the gnucash-docs port pulls in a lot of dependencies which are not needed to make gnucash itself run, I would like to be able to not install it. I have manually removed that depends line every time I've updated gnucash for years. I thought I could send a patch and ask for it to be included. I bumped portrevision since this change modifies the port options and, potentially, it's dependencies. The gnome@ list, which is the maintainer is CCed. >How-To-Repeat: >Fix: diff -ruN gnucash.old/Makefile gnucash/Makefile --- gnucash.old/Makefile 2010-08-24 18:07:59.060646788 +0200 +++ gnucash/Makefile 2010-09-27 13:34:39.266665930 +0200 @@ -8,7 +8,7 @@ PORTNAME= gnucash PORTVERSION= 2.2.9 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= finance gnome MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION} \ http://www.gnucash.org/pub/gnucash/sources/stable/ @@ -26,12 +26,12 @@ ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \ ${SITE_PERL}/Finance/Quote.pm:${PORTSDIR}/finance/p5-Finance-Quote \ ${SITE_PERL}/HTML/TableExtract.pm:${PORTSDIR}/www/p5-HTML-TableExtract \ - ${SITE_PERL}/Finance/QuoteHist.pm:${PORTSDIR}/finance/p5-Finance-QuoteHist \ - ${LOCALBASE}/share/omf/gnucash-docs/gnucash-guide-C.omf:${PORTSDIR}/finance/gnucash-docs + ${SITE_PERL}/Finance/QuoteHist.pm:${PORTSDIR}/finance/p5-Finance-QuoteHist OPTIONS= AQBANKING "AqBanking support (HBCI/OpenHBCI)" off \ OFX "OFX support" off \ - POSTGRESQL "Enable Postgresql as Backend" off + POSTGRESQL "Enable Postgresql as Backend" off \ + GCDOCS "Install gnucash-docs" on USE_BZIP2= yes USE_GETTEXT= yes @@ -102,6 +102,10 @@ PLIST_SUB+= PGBACKEND="@comment " .endif +.if defined(WITH_GCDOCS) +RUN_DEPENDS+= ${LOCALBASE}/share/omf/gnucash-docs/gnucash-guide-C.omf:${PORTSDIR}/finance/gnucash-docs +.endif + CONFIGURE_ENV+= LIBS="${GC_LIBS}" .include