From 2744f5c97259bbb26b3aa374116426da77096f0c Mon Sep 17 00:00:00 2001
From: thierry <thierry@FreeBSD.org>
Date: Mon, 18 Oct 2004 09:23:46 +0000
Subject: Upgrade to 0.5.2. Add support for WITHOUT_NLS and NOPORTDOCS.

---
 finance/grisbi/Makefile  | 20 ++++++++++++++++--
 finance/grisbi/distinfo  |  4 ++--
 finance/grisbi/pkg-plist | 53 +++++++++++++++++++++++++-----------------------
 3 files changed, 48 insertions(+), 29 deletions(-)

(limited to 'finance')

diff --git a/finance/grisbi/Makefile b/finance/grisbi/Makefile
index 0437b6ac8f5..84ec406c228 100644
--- a/finance/grisbi/Makefile
+++ b/finance/grisbi/Makefile
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	grisbi
-PORTVERSION=	0.5.1
+PORTVERSION=	0.5.2
 CATEGORIES=	finance
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -20,7 +20,6 @@ RUN_DEPENDS=	${UCS_CLASSDIR}/ucs.sty:${PORTSDIR}/print/latex-ucs
 .endif
 
 USE_BZIP2=	yes
-USE_GETTEXT=	yes
 USE_ICONV=	yes
 USE_GMAKE=	yes
 USE_GCC=	3.4
@@ -35,4 +34,21 @@ MAN1=		grisbi.1
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}"	\
 		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
 
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+=	NLS="@comment "
+.else
+USE_GETTEXT=	yes
+PLIST_SUB+=	NLS=""
+.endif
+
+.if defined(NOPORTDOCS)
+USE_REINPLACE=	yes
+.endif
+
+pre-configure:
+.if defined(NOPORTDOCS)
+	@${REINPLACE_CMD} -e "s|pixmaps help|pixmaps|" ${WRKSRC}/Makefile.in
+.endif
+
 .include <bsd.port.mk>
diff --git a/finance/grisbi/distinfo b/finance/grisbi/distinfo
index 8528a885921..8c901c3cb89 100644
--- a/finance/grisbi/distinfo
+++ b/finance/grisbi/distinfo
@@ -1,2 +1,2 @@
-MD5 (grisbi-0.5.1.tar.bz2) = 9bf7a2ecb2421168f1181b8218962861
-SIZE (grisbi-0.5.1.tar.bz2) = 652763
+MD5 (grisbi-0.5.2.tar.bz2) = 5d496c64973452f2cf35def2d1e57b01
+SIZE (grisbi-0.5.2.tar.bz2) = 719354
diff --git a/finance/grisbi/pkg-plist b/finance/grisbi/pkg-plist
index 9c326648b0c..514476af21f 100644
--- a/finance/grisbi/pkg-plist
+++ b/finance/grisbi/pkg-plist
@@ -1,20 +1,21 @@
 bin/grisbi
-%%DOCSDIR%%/help/C/contents_motif.gif
-%%DOCSDIR%%/help/C/grisbi-manuel.html
-%%DOCSDIR%%/help/C/next_motif.gif
-%%DOCSDIR%%/help/C/previous_motif.gif
-%%DOCSDIR%%/help/C/quickstart.html
-%%DOCSDIR%%/help/C/translation.html
-%%DOCSDIR%%/help/C/topic.dat
-%%DOCSDIR%%/help/fr/contents_motif.gif
-%%DOCSDIR%%/help/fr/grisbi-manuel.html
-%%DOCSDIR%%/help/fr/next_motif.gif
-%%DOCSDIR%%/help/fr/previous_motif.gif
-%%DOCSDIR%%/help/fr/quickstart.html
-%%DOCSDIR%%/help/fr/topic.dat
-%%DOCSDIR%%/help/fr/translation.html
-share/locale/fr/LC_MESSAGES/grisbi.mo
-share/locale/it/LC_MESSAGES/grisbi.mo
+%%PORTDOCS%%%%DOCSDIR%%/help/C/contents_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/C/grisbi-manuel.html
+%%PORTDOCS%%%%DOCSDIR%%/help/C/next_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/C/previous_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/C/quickstart.html
+%%PORTDOCS%%%%DOCSDIR%%/help/C/translation.html
+%%PORTDOCS%%%%DOCSDIR%%/help/C/topic.dat
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/contents_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/grisbi-manuel.html
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/next_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/previous_motif.gif
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/quickstart.html
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/topic.dat
+%%PORTDOCS%%%%DOCSDIR%%/help/fr/translation.html
+%%NLS%%share/locale/de/LC_MESSAGES/grisbi.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/grisbi.mo
+%%NLS%%share/locale/it/LC_MESSAGES/grisbi.mo
 %%DATADIR%%/pixmaps/addresses.png
 %%DATADIR%%/pixmaps/banks.png
 %%DATADIR%%/pixmaps/currencies.png
@@ -32,14 +33,16 @@ share/locale/it/LC_MESSAGES/grisbi.mo
 %%DATADIR%%/pixmaps/reconciliation.png
 %%DATADIR%%/pixmaps/transaction-list.png
 %%DATADIR%%/pixmaps/warnings.png
-@dirrm %%DOCSDIR%%/help/C
-@dirrm %%DOCSDIR%%/help/fr
-@dirrm %%DOCSDIR%%/help
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/help/C
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/help/fr
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/help
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm %%DATADIR%%/pixmaps
 @dirrm %%DATADIR%%
-@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/fr 2>/dev/null || true
-@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/it 2>/dev/null || true
-@unexec rmdir %D/share/locale 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/de 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/fr 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/it 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale 2>/dev/null || true
-- 
cgit