Index: audio/liblastfm/Makefile =================================================================== RCS file: /home/ncvs/ports/audio/liblastfm/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- audio/liblastfm/Makefile 5 Sep 2009 12:31:33 -0000 1.5 +++ audio/liblastfm/Makefile 8 Oct 2009 14:16:04 -0000 @@ -28,6 +28,7 @@ USE_LDCONFIG= yes +.include post-extract: ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${LOCALBASE}/bin/ruby|' ${WRKSRC}/configure ${REINPLACE_CMD} -e 's|__demos __tests||' ${WRKSRC}/admin/Makefile.rb @@ -35,5 +36,8 @@ -e 's|linux:|unix:|' ${WRKSRC}/.qmake.cache ${FIND} ${WRKSRC}/admin -type f | ${XARGS} \ ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${LOCALBASE}/bin/ruby|' +.if ${RUBY_VERSION_CODE} >= 190000 + ${REINPLACE_CMD} -e "s|'ftools'|'fileutils'|" ${WRKSRC}/admin/qpp ${WRKSRC}/admin/Makefile.rb +.endif -.include +.include