aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2006-11-29 18:41:36 +0800
committerstas <stas@FreeBSD.org>2006-11-29 18:41:36 +0800
commit130d303976692ecbd596bbaa09db416b69b4eb07 (patch)
treef357bf17fd6f36ef93bfa5bd5b1a1f1e53163e62 /audio
parent99a6838cb43c7b4ec9a3cdd77af73d0b286875a0 (diff)
downloadfreebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.tar.gz
freebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.tar.zst
freebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.zip
- Permissions safety
- Prefix-cleaness - Take maintainership
Diffstat (limited to 'audio')
-rw-r--r--audio/ruby-freedb/Makefile19
-rw-r--r--audio/ruby-freedb/pkg-plist14
2 files changed, 21 insertions, 12 deletions
diff --git a/audio/ruby-freedb/Makefile b/audio/ruby-freedb/Makefile
index d417443b2e7a..da57766ae582 100644
--- a/audio/ruby-freedb/Makefile
+++ b/audio/ruby-freedb/Makefile
@@ -14,7 +14,7 @@ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stas@FreeBSD.org
COMMENT= A Ruby library that provides access to Freedb/CDDB servers
USE_RUBY= yes
@@ -25,16 +25,19 @@ INSTALL_TARGET= site-install
DOCS= CHANGELOG README doc
EXAMPLES= examples/*.rb
+# XXX: exists untill it will be committed to bsd.port.mk
+COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
+ 2>&1) && \
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
+ ${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
+ ${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
+
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}
-.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
-.endfor
${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS}
- ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${RUBY_MODEXAMPLESDIR}/
+ @(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "${DOCS}" ${RUBY_MODDOCDIR}/)
.endif
.include <bsd.port.mk>
diff --git a/audio/ruby-freedb/pkg-plist b/audio/ruby-freedb/pkg-plist
index d88fb4bb9e51..20ed0485f9e4 100644
--- a/audio/ruby-freedb/pkg-plist
+++ b/audio/ruby-freedb/pkg-plist
@@ -1,8 +1,5 @@
-%%RUBY_SITEARCHLIBDIR%%/freedb_cdrom.so
%%RUBY_SITELIBDIR%%/freedb.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cd-disc.rb
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdinfo.rb
-%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%RUBY_SITEARCHLIBDIR%%/freedb_cdrom.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGELOG
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/blank.html
@@ -23,9 +20,18 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_method_index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cd-disc.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdinfo.rb
+%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files/lib
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/Freedb.src
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
+@dirrmtry %%RUBY_SITEARCHLIBDIR%%
+@dirrmtry %%RUBY_SITELIBDIR%%
+@dirrmtry lib/ruby/site_ruby
+@dirrmtry lib/ruby