aboutsummaryrefslogtreecommitdiff
path: root/audio/ruby-mp3info
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-08-30 00:59:30 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-08-30 00:59:30 +0000
commit7edb050e7c0ec098df4e6b90a84007dc109ca84b (patch)
tree5cdf2997e4af76b88f543853b2d220f1508aa0aa /audio/ruby-mp3info
parent87b2211d060d4d4ccd7bd9b634b5e215c9845dd4 (diff)
downloadports-7edb050e7c0ec098df4e6b90a84007dc109ca84b.tar.gz
ports-7edb050e7c0ec098df4e6b90a84007dc109ca84b.zip
Notes
Diffstat (limited to 'audio/ruby-mp3info')
-rw-r--r--audio/ruby-mp3info/Makefile21
-rw-r--r--audio/ruby-mp3info/pkg-plist7
2 files changed, 19 insertions, 9 deletions
diff --git a/audio/ruby-mp3info/Makefile b/audio/ruby-mp3info/Makefile
index 32d77fac5abd..50e01acdb572 100644
--- a/audio/ruby-mp3info/Makefile
+++ b/audio/ruby-mp3info/Makefile
@@ -14,30 +14,33 @@ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= A Ruby library to access to information on mp3 files
USE_RUBY= yes
USE_RUBY_SETUP= yes
USE_RUBY_RDOC= yes
RUBY_SETUP= install.rb
+CONFIGURE_ARGS= --prefix=${PREFIX}
DOCS= CHANGELOG doc
-#EXAMPLES= test.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-build:
cd ${BUILD_WRKSRC}; ${RM} -r doc; ${RUBY_RDOC} lib
post-install:
.if !defined(NOPORTDOCS)
-# ${MKDIR} ${RUBY_MODEXAMPLESDIR}
-#.for f in ${EXAMPLES}
-# ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
-#.endfor
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${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-mp3info/pkg-plist b/audio/ruby-mp3info/pkg-plist
index 72e0c867d90a..a88b8942bc88 100644
--- a/audio/ruby-mp3info/pkg-plist
+++ b/audio/ruby-mp3info/pkg-plist
@@ -27,6 +27,9 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_method_index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.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/Numeric.src
@@ -36,3 +39,7 @@
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
+@dirrmtry %%RUBY_SITELIBDIR%%
+@dirrmtry lib/ruby/site_ruby
+@dirrmtry lib/ruby