Date: Sun, 6 Mar 2011 22:46:17 GMT From: Steve Wills <swills@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/155327: [PATCH] update audio/liblastfm to latest version and fix build with ruby 1.9 Message-ID: <201103062246.p26MkHT3021884@red.freebsd.org> Resent-Message-ID: <201103062250.p26Mo94b061314@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155327 >Category: ports >Synopsis: [PATCH] update audio/liblastfm to latest version and fix build with ruby 1.9 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 06 22:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Steve Wills >Release: >Organization: >Environment: >Description: Building audio/liblastfm with RUBY_VER = 1.9 fails. While fixing this, I also found there's a new version. Fixes for both are in the patch that is attached. >How-To-Repeat: >Fix: see attached Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/audio/liblastfm/Makefile,v retrieving revision 1.8 diff -u -r1.8 Makefile --- Makefile 10 Dec 2010 23:44:41 -0000 1.8 +++ Makefile 6 Mar 2011 22:20:28 -0000 @@ -6,10 +6,11 @@ # PORTNAME= liblastfm -PORTVERSION= 0.3.0 -PORTREVISION= 1 +PORTVERSION= 0.3.3 +PORTREVISION= 0 CATEGORIES= audio -MASTER_SITES= http://cdn.last.fm/src/ +MASTER_SITES= https://download.github.com/ +DISTNAME= mxcl-${PORTNAME}-${PORTVERSION}-0-gf0b3239 MAINTAINER= datahead4@gmail.com COMMENT= Collection of libraries to help integrate Last.fm services @@ -17,7 +18,6 @@ LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \ fftw3f.5:${PORTSDIR}/math/fftw3-float -USE_BZIP2= yes USE_RUBY= yes USE_GMAKE= yes USE_QT_VER= 4 @@ -29,16 +29,21 @@ USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/mxcl-liblastfm-1c739eb + .include <bsd.port.pre.mk> post-extract: - ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${LOCALBASE}/bin/ruby|' ${WRKSRC}/configure + ${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITH_SUFFIX}|' ${WRKSRC}/configure + ${REINPLACE_CMD} -e 's|\`ruby |`${RUBY_WITH_SUFFIX} |' ${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|#!${RUBY_WITH_SUFFIX}|' -.if ${RUBY_VERSION_CODE} >= 190000 +.if ${RUBY_VER} == 1.9 ${REINPLACE_CMD} -e "s|'ftools'|'fileutils'|" ${WRKSRC}/admin/qpp ${WRKSRC}/admin/Makefile.rb + ${REINPLACE_CMD} -e "s|require \"#{cwd}/platform.rb\"|require_relative \"platform.rb\"|" ${WRKSRC}/admin/Makefile.rb + ${REINPLACE_CMD} -e "s|ruby admin/lastfm.h.rb|${RUBY_WITH_SUFFIX} admin/lastfm.h.rb|" ${WRKSRC}/admin/Makefile.rb .endif .include <bsd.port.post.mk> Index: distinfo =================================================================== RCS file: /home/ncvs/ports/audio/liblastfm/distinfo,v retrieving revision 1.2 diff -u -r1.2 distinfo --- distinfo 5 Sep 2009 12:31:33 -0000 1.2 +++ distinfo 6 Mar 2011 22:14:21 -0000 @@ -1,3 +1,2 @@ -MD5 (liblastfm-0.3.0.tar.bz2) = 3f73222ebc31635941832b01e7a494b6 -SHA256 (liblastfm-0.3.0.tar.bz2) = dd7297fbfe114b2eb29b491d56c6df9b83f16f576c70466d39a95a5ff19af76d -SIZE (liblastfm-0.3.0.tar.bz2) = 92957 +SHA256 (mxcl-liblastfm-0.3.3-0-gf0b3239.tar.gz) = 2607ba6c1495bae8c0f93df1e6271ba5c4503ee53e5657d815fdd584e4df636c +SIZE (mxcl-liblastfm-0.3.3-0-gf0b3239.tar.gz) = 111700 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/audio/liblastfm/pkg-plist,v retrieving revision 1.2 diff -u -r1.2 pkg-plist --- pkg-plist 5 Sep 2009 12:31:33 -0000 1.2 +++ pkg-plist 6 Mar 2011 22:31:25 -0000 @@ -9,10 +9,12 @@ include/lastfm/Mbid include/lastfm/MutableTrack include/lastfm/NetworkAccessManager +include/lastfm/ParseError include/lastfm/Playlist include/lastfm/RadioStation include/lastfm/RadioTuner include/lastfm/Scrobble +include/lastfm/ScrobbleCache include/lastfm/ScrobblePoint include/lastfm/Tag include/lastfm/Track @@ -27,9 +29,9 @@ lib/liblastfm.so lib/liblastfm.so.0 lib/liblastfm.so.0.3 -lib/liblastfm.so.0.3.0 +lib/liblastfm.so.0.3.3 lib/liblastfm_fingerprint.so lib/liblastfm_fingerprint.so.0 -lib/liblastfm_fingerprint.so.0.1 -lib/liblastfm_fingerprint.so.0.1.0 +lib/liblastfm_fingerprint.so.0.3 +lib/liblastfm_fingerprint.so.0.3.3 @dirrm include/lastfm Index: files/patch-src_fingerprint_fingerprint.pro =================================================================== RCS file: /home/ncvs/ports/audio/liblastfm/files/patch-src_fingerprint_fingerprint.pro,v retrieving revision 1.1 diff -u -r1.1 patch-src_fingerprint_fingerprint.pro --- files/patch-src_fingerprint_fingerprint.pro 5 Sep 2009 12:31:33 -0000 1.1 +++ files/patch-src_fingerprint_fingerprint.pro 6 Mar 2011 22:37:34 -0000 @@ -1,12 +1,12 @@ ---- src/fingerprint/fingerprint.pro.orig 2009-06-05 03:41:27.000000000 +1100 -+++ src/fingerprint/fingerprint.pro 2009-09-02 23:24:41.000000000 +1100 -@@ -20,8 +20,7 @@ - INCLUDEPATH += /opt/local/include +--- src/fingerprint/fingerprint.pro.orig 2011-03-06 17:36:13.070963361 -0500 ++++ src/fingerprint/fingerprint.pro 2011-03-06 17:36:32.901964223 -0500 +@@ -23,6 +23,6 @@ + # the difference with win32 is that windows doesn't have the f suffix + # but I think this may be because doug didn't compile it with single + # precision, and I'm not sure if that matters or not +- PKGCONFIG += fftw3f ++ LIBS += -lsamplerate -lfftw3f } - else{ -- CONFIG += link_pkgconfig -- PKGCONFIG += fftw3f samplerate -+ LIBS += -lsamplerate -lfftw3f - } - } - +-} +\ No newline at end of file ++} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103062246.p26MkHT3021884>