aboutsummaryrefslogtreecommitdiff
path: root/audio/ruby-freedb
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2006-11-29 10:41:36 +0000
committerStanislav Sedov <stas@FreeBSD.org>2006-11-29 10:41:36 +0000
commita197d9dfad2935d0736b68df0a33fadcfd1125eb (patch)
tree4353f8e29c40904245ca6a330116ccba346f0916 /audio/ruby-freedb
parent34750e0725a14a6b7adf556554f9ed040d02710d (diff)
downloadports-a197d9dfad2935d0736b68df0a33fadcfd1125eb.tar.gz
ports-a197d9dfad2935d0736b68df0a33fadcfd1125eb.zip
Notes
Diffstat (limited to 'audio/ruby-freedb')
-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