aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2013-06-15 20:16:03 +0800
committerpawel <pawel@FreeBSD.org>2013-06-15 20:16:03 +0800
commit9bc1221d0523f6772301a5c55eb530b63a2cda39 (patch)
tree472e30092549a66d8c96ca1f0101c9fb200aa6c3 /finance
parentec07854412bc28d418599c2a327998bd0e9deecc (diff)
downloadfreebsd-ports-gnome-9bc1221d0523f6772301a5c55eb530b63a2cda39.tar.gz
freebsd-ports-gnome-9bc1221d0523f6772301a5c55eb530b63a2cda39.tar.zst
freebsd-ports-gnome-9bc1221d0523f6772301a5c55eb530b63a2cda39.zip
- Remove dependencies, most are pulled by gtk20
- Switch to PORTDOCS, USES=desktop-file-utils to make plist smaller - Use OPTIONS macros for better readability
Diffstat (limited to 'finance')
-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