diff options
author | clsung <clsung@FreeBSD.org> | 2006-08-30 08:59:30 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-08-30 08:59:30 +0800 |
commit | 2bcb23b9735085c5373c8eebf218e735db36c74c (patch) | |
tree | 6b5fb02176e1582a5199c24cbd6249df591ccb6f /audio/ruby-mp3info | |
parent | e21f5951a288e249cbce7ce0112bd60fa9cc4cbe (diff) | |
download | freebsd-ports-gnome-2bcb23b9735085c5373c8eebf218e735db36c74c.tar.gz freebsd-ports-gnome-2bcb23b9735085c5373c8eebf218e735db36c74c.tar.zst freebsd-ports-gnome-2bcb23b9735085c5373c8eebf218e735db36c74c.zip |
- Update to 0.4 (already updated by ahze@)
- Make the port PREFIX-clean
- Garantee permissions safety
- Take maintainership
PR: ports/102645
Submitted by: Stanislav Sedov <ssedov_AT_mbsd dot msk dot ru>
Diffstat (limited to 'audio/ruby-mp3info')
-rw-r--r-- | audio/ruby-mp3info/Makefile | 21 | ||||
-rw-r--r-- | audio/ruby-mp3info/pkg-plist | 7 |
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 |