summaryrefslogtreecommitdiff
path: root/devel/gettext
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-12-12 01:56:23 +0000
committergrant <grant@pkgsrc.org>2002-12-12 01:56:23 +0000
commitff8fa61e07666ba1f4ec03096b913b978df587a8 (patch)
tree488587cb7abc3295d9c80fa201e4ac2c7b143494 /devel/gettext
parent3e6754dedc03bbddaa34bf68754e2990c9be5dd7 (diff)
downloadpkgsrc-ff8fa61e07666ba1f4ec03096b913b978df587a8.tar.gz
Handle the optional installation of the gettext.jar java class, which
is installed if a working java compiler is found (eg. Solaris).
Diffstat (limited to 'devel/gettext')
-rw-r--r--devel/gettext/Makefile13
-rw-r--r--devel/gettext/PLIST3
2 files changed, 13 insertions, 3 deletions
diff --git a/devel/gettext/Makefile b/devel/gettext/Makefile
index 6aeb20a8efd..7eab03a4a4f 100644
--- a/devel/gettext/Makefile
+++ b/devel/gettext/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2002/12/12 00:57:15 jlam Exp $
+# $NetBSD: Makefile,v 1.43 2002/12/12 01:56:23 grant Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1998/08/09 15:13:33 kuriyama Exp
#
@@ -26,8 +26,19 @@ CONFIGURE_ARGS+= --without-included-gettext
INFO_FILES= gettext.info
TEXINFO_OVERRIDE= YES
+PLIST_SRC= ${WRKDIR}/PLIST
+OPTIONAL_FILES+= share/gettext/gettext.jar
+
post-install:
cd ${WRKSRC}/intl; ${MAKE_PROGRAM} install-data
+ @${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+ @( \
+ for FILE in ${OPTIONAL_FILES}; do \
+ ${TEST} ! -e ${PREFIX}/$$FILE || ${ECHO} $$FILE; \
+ done; \
+ ${ECHO} "@dirrm share/gettext"; \
+ ) >>${PLIST_SRC}
+
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../mk/texinfo.mk"
diff --git a/devel/gettext/PLIST b/devel/gettext/PLIST
index a98ca1352c0..03a34b8b3d4 100644
--- a/devel/gettext/PLIST
+++ b/devel/gettext/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2002/11/27 17:41:05 drochner Exp $
+@comment $NetBSD: PLIST,v 1.4 2002/12/12 01:56:23 grant Exp $
bin/autopoint
bin/gettext
bin/gettextize
@@ -202,6 +202,5 @@ ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gettext.mo
${PKGLOCALEDIR}/locale/zh_TW/LC_MESSAGES/gettext.mo
@dirrm share/gettext/po
@dirrm share/gettext/intl
-@dirrm share/gettext
@dirrm lib/gettext
@dirrm doc/gettext