aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql-plruby/Makefile
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-15 13:30:45 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-15 13:30:45 +0000
commit0503c116d9b8912cb86ebe9f1d91f2f0d9c8aaca (patch)
tree8f31e61c5d05258cb7f10f248d7b704396c23da7 /databases/postgresql-plruby/Makefile
parent62afe5b355e904598e37a4ebd96614e2fd4492af (diff)
Notes
Diffstat (limited to 'databases/postgresql-plruby/Makefile')
-rw-r--r--databases/postgresql-plruby/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/databases/postgresql-plruby/Makefile b/databases/postgresql-plruby/Makefile
index 03639feaf4d6..8a5b9367e83e 100644
--- a/databases/postgresql-plruby/Makefile
+++ b/databases/postgresql-plruby/Makefile
@@ -76,9 +76,14 @@ post-install:
${CP} -R ${WRKSRC}/test/* ${RUBY_MODEXAMPLESDIR}/
${INSTALL_DATA} ${WRKDIR}/createlang.sql ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS}
- ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
+ @(cd ${WRKSRC}/ && ${COPYTREE_SHARE} ${DOCS} ${RUBY_MODDOCDIR}/)
+
+ @${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
+ 's,^${PREFIX}/?,,' >> ${TMPPLIST}
+ @${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \
+ 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
+ @${ECHO_CMD} "@unexec rmdir %D/share/doc/ruby18/ 2>/dev/null || true" \
+ >> ${TMPPLIST}
.endif
@${CAT} ${PKGMESSAGE}