aboutsummaryrefslogtreecommitdiff
path: root/audio/ruby-audiofile
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2006-11-19 23:49:47 +0000
committerStanislav Sedov <stas@FreeBSD.org>2006-11-19 23:49:47 +0000
commit4f49f3147ac14109c773c7b590eec0894e427f28 (patch)
treec7fb7620360cf00cdebe32ace4eecb636bdbbdeb /audio/ruby-audiofile
parent45a7b73bebaa845b54169a68c1989c575b17c422 (diff)
downloadports-4f49f3147ac14109c773c7b590eec0894e427f28.tar.gz
ports-4f49f3147ac14109c773c7b590eec0894e427f28.zip
Notes
Diffstat (limited to 'audio/ruby-audiofile')
-rw-r--r--audio/ruby-audiofile/Makefile9
-rw-r--r--audio/ruby-audiofile/pkg-plist10
2 files changed, 12 insertions, 7 deletions
diff --git a/audio/ruby-audiofile/Makefile b/audio/ruby-audiofile/Makefile
index f37cada851d1..a95f355a0ba8 100644
--- a/audio/ruby-audiofile/Makefile
+++ b/audio/ruby-audiofile/Makefile
@@ -15,7 +15,7 @@ DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CDDB_DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= ruby
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stas@FreeBSD.org
COMMENT= A Ruby binding to the audiofile library
LIB_DEPENDS= audiofile.0:${PORTSDIR}/audio/libaudiofile
@@ -27,11 +27,12 @@ CDDB_DISTNAME= cddb-0.2
CDDB_WRKSRC= ${WRKDIR}/example
INSTALL_TARGET= site-install
+REINPLACE_ARGS= -i ""
DOCS= audiofile.rd
post-patch:
- ${RUBY} -i -pe 'gsub %r|/home/jaredj/ruby-lib/cddb\b|, "cddb"' \
+ ${REINPLACE_CMD} -E -e "s,/home/jaredj/ruby-lib/(cddb),\1,g" \
${CDDB_WRKSRC}/wavcddb
post-install:
@@ -40,9 +41,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/
${INSTALL_DATA} ${CDDB_WRKSRC}/* ${RUBY_MODEXAMPLESDIR}/cddb/
${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-audiofile/pkg-plist b/audio/ruby-audiofile/pkg-plist
index 0b26f63f21b7..9864bf9ef46b 100644
--- a/audio/ruby-audiofile/pkg-plist
+++ b/audio/ruby-audiofile/pkg-plist
@@ -1,9 +1,15 @@
%%RUBY_SITEARCHLIBDIR%%/audiofile.so
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/audiofile.rd
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cddb/batch-oggenc
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cddb/cddb.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cddb/wavcddb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/cddb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/audiofile.rd
+%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
+@dirrmtry %%RUBY_SITEARCHLIBDIR%%
+@dirrmtry %%RUBY_SITELIBDIR%%
+@dirrmtry lib/ruby/site_ruby
+@dirrmtry lib/ruby