aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby-programmingruby
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-05 21:22:04 +0800
committerclsung <clsung@FreeBSD.org>2006-08-05 21:22:04 +0800
commit25dab8bc9652fafd0329874d7edddd5f8c4de661 (patch)
tree72a86eb1bf2cfae2a89d899f3ec4e5b78de7f82e /lang/ruby-programmingruby
parent10b6815c176e7d1a34835c25906bc945863c8d3c (diff)
downloadfreebsd-ports-gnome-25dab8bc9652fafd0329874d7edddd5f8c4de661.tar.gz
freebsd-ports-gnome-25dab8bc9652fafd0329874d7edddd5f8c4de661.tar.zst
freebsd-ports-gnome-25dab8bc9652fafd0329874d7edddd5f8c4de661.zip
- Deinstall RUBY_DOCDIR as well
PR: ports/101347 Submitted by: maintainer (Stanislav Sedov)
Diffstat (limited to 'lang/ruby-programmingruby')
-rw-r--r--lang/ruby-programmingruby/Makefile8
-rw-r--r--lang/ruby-programmingruby/pkg-plist1
2 files changed, 7 insertions, 2 deletions
diff --git a/lang/ruby-programmingruby/Makefile b/lang/ruby-programmingruby/Makefile
index 98da00129a89..45a75812e2dd 100644
--- a/lang/ruby-programmingruby/Makefile
+++ b/lang/ruby-programmingruby/Makefile
@@ -7,6 +7,7 @@
PORTNAME= programmingruby
PORTVERSION= 0.4
+PORTREVISION= 1
CATEGORIES= lang ruby
MASTER_SITES= http://dev.rubycentral.com/downloads/files/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -24,12 +25,17 @@ RUBY_NO_RUN_DEPENDS= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
DOCSDIR= ${RUBY_MODDOCDIR}
-PORTDOCS= *
do-install:
${MKDIR} ${RUBY_MODDOCDIR}
@${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} -C ${RUBY_MODDOCDIR}
@${FIND} ${RUBY_MODDOCDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
@${FIND} ${RUBY_MODDOCDIR}/ -type f -exec ${CHOWN} ${SHAREOWN} {} \;
+ @${FIND} -d ${RUBY_MODDOCDIR}/ -type f | \
+ ${SED} -e 's,^${PREFIX}/,,' >> ${TMPPLIST}
+ @${FIND} -d ${RUBY_MODDOCDIR}/ -type d | \
+ ${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+ @${ECHO_CMD} "@unexec rmdir ${RUBY_DOCDIR} 2>/dev/null || true" \
+ >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/lang/ruby-programmingruby/pkg-plist b/lang/ruby-programmingruby/pkg-plist
deleted file mode 100644
index 2b39805d4065..000000000000
--- a/lang/ruby-programmingruby/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-@dirrmtry %%RUBY_DOCDIR%%