aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-11-03 04:48:25 +0800
committermiwi <miwi@FreeBSD.org>2009-11-03 04:48:25 +0800
commita93da787ba69e431138a86c3be089d65f6704e18 (patch)
tree96d4debce95b43f66db7742c0f8e5e89e7ab3292
parent635e71fe13fc156187d2f9fc93ccff358638fd6b (diff)
downloadfreebsd-ports-gnome-a93da787ba69e431138a86c3be089d65f6704e18.tar.gz
freebsd-ports-gnome-a93da787ba69e431138a86c3be089d65f6704e18.tar.zst
freebsd-ports-gnome-a93da787ba69e431138a86c3be089d65f6704e18.zip
- Fix build with ruby>= 1.9
PR: 139438 Submitted by: Mel <mel@rachie.is-a-geek.net> Approved by: maintainer
-rw-r--r--audio/liblastfm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/liblastfm/Makefile b/audio/liblastfm/Makefile
index 4debfe2a9ddb..93aaa81e6539 100644
--- a/audio/liblastfm/Makefile
+++ b/audio/liblastfm/Makefile
@@ -28,12 +28,16 @@ MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
+.include <bsd.port.pre.mk>
post-extract:
${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${LOCALBASE}/bin/ruby|' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|__demos __tests||' ${WRKSRC}/admin/Makefile.rb
${REINPLACE_CMD} -e '/QMAKE_CXXFLAGS_RELEASE.*/d' \
-e 's|linux:|unix:|' ${WRKSRC}/.qmake.cache
${FIND} ${WRKSRC}/admin -type f | ${XARGS} \
- ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${LOCALBASE}/bin/ruby|'
+ ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITH_SUFFIX}|'
+.if ${RUBY_VERSION_CODE} >= 190000
+ ${REINPLACE_CMD} -e "s|'ftools'|'fileutils'|" ${WRKSRC}/admin/qpp ${WRKSRC}/admin/Makefile.rb
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>