aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/ruby-esound/Makefile16
-rw-r--r--audio/ruby-esound/pkg-plist12
2 files changed, 17 insertions, 11 deletions
diff --git a/audio/ruby-esound/Makefile b/audio/ruby-esound/Makefile
index e2c3afed2ede..330b1726cf15 100644
--- a/audio/ruby-esound/Makefile
+++ b/audio/ruby-esound/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 binding to the EsounD library
LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound
@@ -25,23 +25,23 @@ USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/ruby-EsounD-${PORTVERSION}
INSTALL_TARGET= site-install
+REINPLACE_ARGS= -i ""
+
DOCS_EN= esound-0.2.22.patch
DOCS_JA= METHODS.ja README.ja
post-patch:
- ${RUBY} -i -pe 'gsub(%r:\./esd\.so:, "esd")' ${WRKSRC}/test/*.rb
+ ${REINPLACE_CMD} -E \
+ -e "s,^(require[[:space:]]+')./esd.so('.*),\1esd\2," \
+ ${WRKSRC}/test/*.rb
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/test/*.rb ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}/ja
-.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
-.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
-.endfor
+ ${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${DOCS_JA:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/ja/
.endif
.include <bsd.port.mk>
diff --git a/audio/ruby-esound/pkg-plist b/audio/ruby-esound/pkg-plist
index 49eaa7bf532b..6cfabf16ef60 100644
--- a/audio/ruby-esound/pkg-plist
+++ b/audio/ruby-esound/pkg-plist
@@ -1,10 +1,16 @@
%%RUBY_SITEARCHLIBDIR%%/esd.so
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/esound-0.2.22.patch
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/METHODS.ja
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test1.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test2.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test3.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/esound-0.2.22.patch
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/METHODS.ja
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja
+%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
+@dirrmtry %%RUBY_SITEARCHLIBDIR%%
+@dirrmtry %%RUBY_SITELIBDIR%%
+@dirrmtry lib/ruby/site_ruby
+@dirrmtry lib/ruby