diff options
author | stas <stas@FreeBSD.org> | 2006-11-29 18:41:36 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2006-11-29 18:41:36 +0800 |
commit | 130d303976692ecbd596bbaa09db416b69b4eb07 (patch) | |
tree | f357bf17fd6f36ef93bfa5bd5b1a1f1e53163e62 /audio/ruby-freedb/Makefile | |
parent | 99a6838cb43c7b4ec9a3cdd77af73d0b286875a0 (diff) | |
download | freebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.tar.gz freebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.tar.zst freebsd-ports-gnome-130d303976692ecbd596bbaa09db416b69b4eb07.zip |
- Permissions safety
- Prefix-cleaness
- Take maintainership
Diffstat (limited to 'audio/ruby-freedb/Makefile')
-rw-r--r-- | audio/ruby-freedb/Makefile | 19 |
1 files changed, 11 insertions, 8 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> |