aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finance/homebank/Makefile38
-rw-r--r--finance/homebank/pkg-plist9
2 files changed, 12 insertions, 35 deletions
diff --git a/finance/homebank/Makefile b/finance/homebank/Makefile
index f8d933a7e62c..0b27fc1b0e93 100644
--- a/finance/homebank/Makefile
+++ b/finance/homebank/Makefile
@@ -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 for everyone
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>
diff --git a/finance/homebank/pkg-plist b/finance/homebank/pkg-plist
index 6496fdd974d9..be82636afe37 100644
--- a/finance/homebank/pkg-plist
+++ b/finance/homebank/pkg-plist
@@ -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