From 324dcf6a2e5245af51bb58dd06d44dd400acb25d Mon Sep 17 00:00:00 2001 From: obraun Date: Mon, 6 Jan 2003 11:00:27 +0000 Subject: Remove empty docs subdir after install. PR: ports/46795 Submitted by: maintainer --- databases/db4/Makefile | 8 ++++++++ databases/db4/pkg-plist | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'databases') diff --git a/databases/db4/Makefile b/databases/db4/Makefile index d2fde8bf6cbc..2a08db096c81 100644 --- a/databases/db4/Makefile +++ b/databases/db4/Makefile @@ -34,6 +34,14 @@ INSTALLS_SHLIB= yes INSTALL_TARGET= install install_docs .endif +# the db install_docs target installs an empty directory, kill it +# (it's not packaged and it's not needed): + +.if !defined(NOPORTDOCS) +post-install: + @${RMDIR} ${PREFIX}/share/doc/db4/ref/splash +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT} diff --git a/databases/db4/pkg-plist b/databases/db4/pkg-plist index 9acf173f91e1..56d895c9b400 100644 --- a/databases/db4/pkg-plist +++ b/databases/db4/pkg-plist @@ -860,7 +860,6 @@ lib/libdb4_cxx.so.0 %%PORTDOCS%%@dirrm share/doc/db4/ref/transapp %%PORTDOCS%%@dirrm share/doc/db4/ref/test %%PORTDOCS%%@dirrm share/doc/db4/ref/tcl -%%PORTDOCS%%@dirrm share/doc/db4/ref/splash %%PORTDOCS%%@dirrm share/doc/db4/ref/simple_tut %%PORTDOCS%%@dirrm share/doc/db4/ref/sendmail %%PORTDOCS%%@dirrm share/doc/db4/ref/rpc -- cgit