Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2013 12:16:03 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320992 - head/finance/homebank
Message-ID:  <201306151216.r5FCG3L4063437@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Jun 15 12:16:03 2013
New Revision: 320992
URL: http://svnweb.freebsd.org/changeset/ports/320992

Log:
  - Remove dependencies, most are pulled by gtk20
  - Switch to PORTDOCS, USES=desktop-file-utils to make plist smaller
  - Use OPTIONS macros for better readability

Modified:
  head/finance/homebank/Makefile
  head/finance/homebank/pkg-plist   (contents, props changed)

Modified: head/finance/homebank/Makefile
==============================================================================
--- head/finance/homebank/Makefile	Sat Jun 15 12:00:14 2013	(r320991)
+++ head/finance/homebank/Makefile	Sat Jun 15 12:16:03 2013	(r320992)
@@ -2,6 +2,7 @@
 
 PORTNAME=	homebank
 PORTVERSION=	4.5
+PORTREVISION=	1
 CATEGORIES=	finance
 MASTER_SITES=	http://homebank.free.fr/public/
 
@@ -10,38 +11,27 @@ COMMENT=	Free, easy, personal accounting
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
-		pcre:${PORTSDIR}/devel/pcre \
-		cairo:${PORTSDIR}/graphics/cairo \
-		png15:${PORTSDIR}/graphics/png \
-		freetype:${PORTSDIR}/print/freetype2 \
-		expat:${PORTSDIR}/textproc/expat2 \
-		osp:${PORTSDIR}/textproc/opensp \
-		fontconfig:${PORTSDIR}/x11-fonts/fontconfig
+LIB_DEPENDS=	osp:${PORTSDIR}/textproc/opensp
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
-USES=		gettext iconv
-USE_XORG=	pixman x11 xau xcb xcomposite xcursor xdamage xdmcp xext \
-		xfixes xi xinerama xrandr xrender
-USE_GNOME=	desktopfileutils gnomehier gtk20
+USES=		desktop-file-utils
+USE_GNOME=	gnomehier gtk20
 INSTALLS_ICONS=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -pthread
 
-OPTIONS_DEFINE=	OFX
-OFX_DESC=	Enable libOFX support
+PORTDOCS=	AUTHORS ChangeLog NEWS README
+
+OPTIONS_DEFINE=	DOCS OFX
+OFX_DESC=	OFX file format support
 OPTIONS_DEFAULT=OFX
 
-.include <bsd.port.options.mk>
+OFX_LIB_DEPENDS=	ofx:${PORTSDIR}/finance/libofx
+OFX_CONFIGURE_OFF=	--without-ofx
 
-.if ${PORT_OPTIONS:MOFX}
-LIB_DEPENDS+=	ofx:${PORTSDIR}/finance/libofx
-CONFIGURE_ARGS+=--with-ofx
-.else
-CONFIGURE_ARGS+=--without-ofx
-.endif
+.include <bsd.port.options.mk>
 
 post-extract:
 	@${CHMOD} ${BINMODE} ${WRKSRC}/install-sh
@@ -49,11 +39,7 @@ post-extract:
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog NEWS README
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
-	@-update-desktop-database
-	@-update-mime-database ${PREFIX}/share/mime
 
 .include <bsd.port.mk>

Modified: head/finance/homebank/pkg-plist
==============================================================================
--- head/finance/homebank/pkg-plist	Sat Jun 15 12:00:14 2013	(r320991)
+++ head/finance/homebank/pkg-plist	Sat Jun 15 12:16:03 2013	(r320992)
@@ -1,10 +1,6 @@
 bin/homebank
 share/application-registry/homebank.applications
 share/applications/homebank.desktop
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
 %%DATADIR%%/datas/example.xhb
 %%DATADIR%%/datas/hb-categories-de.csv
 %%DATADIR%%/datas/hb-categories-en.csv
@@ -327,9 +323,4 @@ share/mime/packages/homebank.xml
 @dirrm %%DATADIR%%/help
 @dirrm %%DATADIR%%/datas
 @dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry share/applications
-@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
-@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306151216.r5FCG3L4063437>