diff options
author | mrauch <mrauch@pkgsrc.org> | 2002-03-05 20:16:53 +0000 |
---|---|---|
committer | mrauch <mrauch@pkgsrc.org> | 2002-03-05 20:16:53 +0000 |
commit | 551f52dce4999ba99d7240a51c162bc49fb02709 (patch) | |
tree | fdbeb2072ce2231c4f1298657bfa3e1aa7550a2b | |
parent | b36d79392e420e63116436ee1de5744f11906fbc (diff) | |
download | pkgsrc-551f52dce4999ba99d7240a51c162bc49fb02709.tar.gz |
Rewrite the logic in do-install which tests if installation was successful.
This version hopefully won't blow up the bulk build.
-rw-r--r-- | misc/openoffice/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/misc/openoffice/Makefile b/misc/openoffice/Makefile index 25d35ce182b..33372ebdc87 100644 --- a/misc/openoffice/Makefile +++ b/misc/openoffice/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2002/03/02 09:09:38 mrauch Exp $ +# $NetBSD: Makefile,v 1.8 2002/03/05 20:16:53 mrauch Exp $ DISTNAME= openoffice-0.0.0.641 PKGREVISION= 1 @@ -79,14 +79,13 @@ pre-install: checkforx >oo_setup.resp" do-install: - ${SH} -c "cd ${WRKSRC}/../instsetoo/*.pro/01/normal; \ + -${SH} -c "cd ${WRKSRC}/../instsetoo/*.pro/01/normal; \ TEMP=${WRKDIR}; export TEMP; \ DISPLAY=${DISPLAY}; export DISPLAY; \ - ./setup -r:oo_setup.resp; \ - if ${TEST} -e ${PREFIX}/OpenOffice.org641/setup; \ - then ${TRUE}; \ - else ${FALSE}; \ - fi" + ./setup -r:oo_setup.resp" + @${SH} -c "if ! [ -x ${PREFIX}/OpenOffice.org641/setup ] ; \ + then ${ECHO} 'Installation was not successful.'; \ + ${FALSE}; fi" ${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \ <${FILESDIR}/soffice >${PREFIX}/bin/soffice ${CHMOD} +x ${PREFIX}/bin/soffice |