pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/kmymoney2 Add libofx option, addressing second...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a20b90532618
branches:  trunk
changeset: 507849:a20b90532618
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Feb 09 21:46:47 2006 +0000

description:
Add libofx option, addressing second part of PR 32439 by Gary Duzan.
Turn it on by default and bump PKGREVISION.

Fix pkglint warnings and whitespace nits while here.

diffstat:

 finance/kmymoney2/Makefile   |  14 ++++++++------
 finance/kmymoney2/PLIST      |   4 +++-
 finance/kmymoney2/options.mk |  14 ++++++++++++++
 3 files changed, 25 insertions(+), 7 deletions(-)

diffs (79 lines):

diff -r c729b3776f56 -r a20b90532618 finance/kmymoney2/Makefile
--- a/finance/kmymoney2/Makefile        Thu Feb 09 21:45:39 2006 +0000
+++ b/finance/kmymoney2/Makefile        Thu Feb 09 21:46:47 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2006/02/05 23:09:06 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2006/02/09 21:46:47 wiz Exp $
 
 DISTNAME=      kmymoney2-0.8
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    finance kde
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=kmymoney2/}
 EXTRACT_SUFX=  .tar.bz2
@@ -12,16 +12,18 @@
 
 USE_TOOLS+=            gmake
 USE_LANGUAGES=         c c++
-USE_LIBTOOL=            YES
-GNU_CONFIGURE=          YES
-SHLIBTOOL_OVERRIDE=     libtool
+USE_LIBTOOL=           YES
+GNU_CONFIGURE=         YES
+SHLIBTOOL_OVERRIDE+=   libtool
+
+.include "options.mk"
 
 CONFIGURE_ARGS+=       --enable-mt
 
 # a fix for qt-3.3.5, please remove if qt-3.3.6 (or newer) solves the problem
 SUBST_CLASSES+=                hints
 SUBST_STAGE.hints=     post-patch
-SUBST_MESSAGE.hints=   "Fix includehints."
+SUBST_MESSAGE.hints=   Fix includehints.
 SUBST_FILES.hints=     kmymoney2/dialogs/*.ui kmymoney2/views/*.ui
 SUBST_FILTER_CMD.hints=        ${GREP} -v includehint
 
diff -r c729b3776f56 -r a20b90532618 finance/kmymoney2/PLIST
--- a/finance/kmymoney2/PLIST   Thu Feb 09 21:45:39 2006 +0000
+++ b/finance/kmymoney2/PLIST   Thu Feb 09 21:46:47 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2005/10/09 12:33:58 markd Exp $
+@comment $NetBSD: PLIST,v 1.5 2006/02/09 21:46:47 wiz Exp $
 bin/kmymoney
 bin/kmymoney2
 include/kmymoney/export.h
@@ -30,6 +30,7 @@
 include/kmymoney/mymoneyutils.h
 include/kmymoney/statementinterface.h
 include/kmymoney/viewinterface.h
+${HAS_LIBOFX}lib/kde3/kmm_ofximport.la
 lib/libkmm_mymoney.la
 lib/libkmm_plugin.la
 man/man1/kmymoney2.1
@@ -327,6 +328,7 @@
 share/kde/icons/locolor/16x16/apps/kmymoney2.png
 share/kde/icons/locolor/32x32/apps/kmymoney2.png
 share/kde/mimelnk/application/x-kmymoney2.desktop
+${HAS_LIBOFX}share/kde/services/kmm_ofximport.desktop
 share/kde/servicetypes/kmymoneyimporterplugin.desktop
 share/kde/servicetypes/kmymoneyplugin.desktop
 ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/kmymoney2.mo
diff -r c729b3776f56 -r a20b90532618 finance/kmymoney2/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/kmymoney2/options.mk      Thu Feb 09 21:46:47 2006 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2006/02/09 21:46:47 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.kmymoney2
+PKG_SUPPORTED_OPTIONS= libofx
+PKG_SUGGESTED_OPTIONS= libofx
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlibofx)
+.include "../../finance/libofx/buildlink3.mk"
+PLIST_SUBST+=  HAS_LIBOFX=""
+.else
+PLIST_SUBST+=  HAS_LIBOFX="@comment "
+.endif



Home | Main Index | Thread Index | Old Index