diff options
author | stas <stas@FreeBSD.org> | 2006-11-29 19:08:19 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2006-11-29 19:08:19 +0800 |
commit | aae22afb3554dc160600519b3c3e12e61756a929 (patch) | |
tree | b729116d826e34587ff33e57ebc8165fe5b19ba3 /audio | |
parent | 130d303976692ecbd596bbaa09db416b69b4eb07 (diff) | |
download | freebsd-ports-gnome-aae22afb3554dc160600519b3c3e12e61756a929.tar.gz freebsd-ports-gnome-aae22afb3554dc160600519b3c3e12e61756a929.tar.zst freebsd-ports-gnome-aae22afb3554dc160600519b3c3e12e61756a929.zip |
- Fix examples files to run properly
- Prefix-cleaness
- Regenerate/install rdoc files on demand
- Take maintainership
Diffstat (limited to 'audio')
-rw-r--r-- | audio/ruby-mp3tag/Makefile | 20 | ||||
-rw-r--r-- | audio/ruby-mp3tag/pkg-plist | 9 |
2 files changed, 21 insertions, 8 deletions
diff --git a/audio/ruby-mp3tag/Makefile b/audio/ruby-mp3tag/Makefile index 63e0d94ba7a7..504a2b1f39e1 100644 --- a/audio/ruby-mp3tag/Makefile +++ b/audio/ruby-mp3tag/Makefile @@ -12,24 +12,32 @@ MASTER_SITES= http://users.cybercity.dk/~dsl8950/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DIST_SUBDIR= ruby -MAINTAINER= ports@FreeBSD.org +MAINTAINER= stas@FreeBSD.org COMMENT= A Ruby module to manipulate ID3v1.1 tags in MP3 files USE_RUBY= yes +USE_RUBY_RDOC= yes + +RUBY_RD_FILES= mp3tag.rb NO_BUILD= yes -DOCS= README mp3tag.html +DOCS= README \ + ${RUBY_RD_HTML_FILES} + +post-patch: + @${REINPLACE_CMD} -E \ + -e "s,^(require[[:space:]]+')\./mp3tag(.*),\1mp3tag\2," \ + ${WRKSRC}/mp3tag_test.rb do-install: + ${MKDIR} ${RUBY_SITELIBDIR}/ ${INSTALL_DATA} ${WRKSRC}/mp3tag.rb ${RUBY_SITELIBDIR}/ .if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODDOCDIR} ${MKDIR} ${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/mp3tag_test.rb ${RUBY_MODEXAMPLESDIR}/ - ${MKDIR} ${RUBY_MODDOCDIR} -.for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ -.endfor + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/ .endif .include <bsd.port.mk> diff --git a/audio/ruby-mp3tag/pkg-plist b/audio/ruby-mp3tag/pkg-plist index ee1e88a151e9..3e5883155b3b 100644 --- a/audio/ruby-mp3tag/pkg-plist +++ b/audio/ruby-mp3tag/pkg-plist @@ -1,6 +1,11 @@ %%RUBY_SITELIBDIR%%/mp3tag.rb +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/mp3tag.html %%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/mp3tag_test.rb %%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/mp3tag.html +%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% +%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%% +@dirrmtry %%RUBY_SITELIBDIR%% +@dirrmtry lib/ruby/site_ruby +@dirrmtry lib/ruby |