aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/ruby-musicbrainz/Makefile19
-rw-r--r--audio/ruby-musicbrainz/distinfo6
-rw-r--r--audio/ruby-musicbrainz/pkg-plist67
3 files changed, 78 insertions, 14 deletions
diff --git a/audio/ruby-musicbrainz/Makefile b/audio/ruby-musicbrainz/Makefile
index ee59c9593d17..ec1977cfbf6d 100644
--- a/audio/ruby-musicbrainz/Makefile
+++ b/audio/ruby-musicbrainz/Makefile
@@ -6,14 +6,14 @@
#
PORTNAME= musicbrainz
-PORTVERSION= 0.2.1
+PORTVERSION= 0.3.0
CATEGORIES= audio ruby
MASTER_SITES= http://www.pablotron.org/download/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= mb-ruby-${PORTVERSION}
DIST_SUBDIR= ruby
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stas@FreeBSD.org
COMMENT= MusicBrainz bindings for Ruby
LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
@@ -25,16 +25,21 @@ RUBY_SHEBANG_FILES= ${WRKSRC}/examples/*.rb
INSTALL_TARGET= site-install
-DOCS= COPYING ChangeLog README TODO
+DOCS= README TODO doc
+
+# 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}
- ${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS}
- ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
+ @(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "${DOCS}" ${RUBY_MODDOCDIR}/)
.endif
.include <bsd.port.mk>
diff --git a/audio/ruby-musicbrainz/distinfo b/audio/ruby-musicbrainz/distinfo
index 42d529371a18..9395a9fce258 100644
--- a/audio/ruby-musicbrainz/distinfo
+++ b/audio/ruby-musicbrainz/distinfo
@@ -1,3 +1,3 @@
-MD5 (ruby/mb-ruby-0.2.1.tar.gz) = 7116788d85a150b63502501b1eea9690
-SHA256 (ruby/mb-ruby-0.2.1.tar.gz) = 4bf7cd1665c85a668b20f2a03540d46324f4d3eac061e9938adeebc41d6781fb
-SIZE (ruby/mb-ruby-0.2.1.tar.gz) = 31304
+MD5 (ruby/mb-ruby-0.3.0.tar.gz) = eb3815d4b363069165de97c99ad31d11
+SHA256 (ruby/mb-ruby-0.3.0.tar.gz) = baf20de2cf12fa40d158717e6834e7021ff3ec2f7663aa3affb652ac9a4d6772
+SIZE (ruby/mb-ruby-0.3.0.tar.gz) = 48964
diff --git a/audio/ruby-musicbrainz/pkg-plist b/audio/ruby-musicbrainz/pkg-plist
index c51da6e1595f..a70578cdff53 100644
--- a/audio/ruby-musicbrainz/pkg-plist
+++ b/audio/ruby-musicbrainz/pkg-plist
@@ -1,4 +1,55 @@
%%RUBY_SITEARCHLIBDIR%%/musicbrainz.so
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000017.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M0000%%RUBY_SHLIBVER%%.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000019.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000020.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000021.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000022.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000023.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000024.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000025.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000026.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000027.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000028.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000029.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000030.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000031.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000032.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000033.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000034.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000035.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000036.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000037.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000038.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000039.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000040.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src/M000041.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Error.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Query.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000001.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000002.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000003.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000004.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000005.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000006.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src/M000007.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/created.rid
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/AUTHORS.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/COPYING.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/ChangeLog.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/README.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/TODO.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/musicbrainz_c.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_class_index.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_file_index.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_method_index.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdlookup.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/findalbum.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/findartist.rb
@@ -9,8 +60,16 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gettrm.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/submittrm.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/COPYING
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO
+%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/TRM.src
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz/Client.src
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/MusicBrainz
+%%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