1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Update audio/liblastfm to 1.0.9-5-g4433165 [1]

- Add audio/liblastfm-qt5 slave port which provides a Qt 5 interface [1]
- Explicitly mark UrlBuilder::mobilize() as deprecated

- Allow Qt4 and Qt5 versions to be installed concurrently
- Make sure liblastfm creates the directories it uses instead of relying
  on client apps to do so

PR:		226530 [1]
Submitted by:	Greg V <greg@unrelenting.technology> [1]
This commit is contained in:
Jason E. Hale 2018-04-17 23:27:21 +00:00
parent 37524162a7
commit 46c18b875a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467663
6 changed files with 70 additions and 45 deletions

View File

@ -412,6 +412,7 @@
SUBDIR += libkcompactdisc
SUBDIR += libkcompactdisc-kde4
SUBDIR += liblastfm
SUBDIR += liblastfm-qt5
SUBDIR += liblo
SUBDIR += liblscp
SUBDIR += libltc

View File

@ -0,0 +1,6 @@
# $FreeBSD$
SLAVE= qt5
MASTERDIR= ${.CURDIR}/../../audio/liblastfm
.include "${MASTERDIR}/Makefile"

View File

@ -2,9 +2,10 @@
# $FreeBSD$
PORTNAME= liblastfm
PORTVERSION= 1.0.9
PORTREVISION= 2
DISTVERSION= 1.0.9-5
DISTVERSIONSUFFIX= -g4433165
CATEGORIES= audio
PKGNAMESUFFIX= -${SLAVE}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Qt C++ library for the Last.fm webservices
@ -16,10 +17,20 @@ USES= cmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= lastfm
USE_LDCONFIG= yes
SLAVE?= qt4
.if ${SLAVE} == qt4
USE_QT4= corelib dbus network sql xml \
moc_build qmake_build rcc_build
CMAKE_ON+= BUILD_WITH_QT4
.else
USE_QT5= core dbus network sql xml \
buildtools_build qmake_build
CMAKE_OFF+= BUILD_WITH_QT4
QTVER_SUFFIX= 5
.endif
CMAKE_ON= BUILD_WITH_QT4
PLIST_SUB= QTVER_SUFFIX="${QTVER_SUFFIX}"
OPTIONS_DEFINE= FINGERPRINT TEST
OPTIONS_DEFAULT= FINGERPRINT
@ -33,8 +44,12 @@ FINGERPRINT_CMAKE_BOOL= BUILD_FINGERPRINT
FINGERPRINT_BUILD_DEPENDS= ${NONEXISTENT}:math/fftw3:patch
FINGERPRINT_CMAKE_ON= -DLIBFFTW3_INCLUDE_DIR:PATH=`${MAKE} -C ${PORTSDIR}/math/fftw3 -VWRKSRC`/api
.if ${SLAVE} == qt4
TEST_USE= QT4=qtestlib_build
.else
TEST_USE= QT5=testlib_build
.endif
TEST_CMAKE_BOOL= BUILD_TESTS
TEST_TARGET= test
TEST_TEST_TARGET= test
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (lastfm-liblastfm-1.0.9_GH0.tar.gz) = 5276b5fe00932479ce6fe370ba3213f3ab842d70a7d55e4bead6e26738425f7b
SIZE (lastfm-liblastfm-1.0.9_GH0.tar.gz) = 119320
TIMESTAMP = 1524002793
SHA256 (lastfm-liblastfm-1.0.9-5-g4433165_GH0.tar.gz) = 8cf1835af3f38f0c7c576e8a01c2d19ee32c7006a44d2d183fb64ed228bc5ca6
SIZE (lastfm-liblastfm-1.0.9-5-g4433165_GH0.tar.gz) = 119427

View File

@ -1,9 +1,9 @@
Add prototype for localePath() and adjust comments to reflect current
website layout
--- src/UrlBuilder.h.orig 2014-10-02 14:05:46 UTC
--- src/UrlBuilder.h.orig 2015-02-06 16:49:40 UTC
+++ src/UrlBuilder.h
@@ -44,9 +44,11 @@ namespace lastfm
@@ -44,10 +44,12 @@ namespace lastfm
QUrl url() const;
@ -11,12 +11,14 @@ website layout
+ /** www.last.fm becomes the local version, e.g. www.last.fm/de */
static QUrl localize( QUrl );
- /** www.last.fm becomes m.last.fm, localisation is preserved */
- static QUrl mobilize( QUrl );
+
+ /** DEPRECATED: Returns url as-is since the mobile website redirects
+ * to the main website */
static QUrl mobilize( QUrl );
+ Q_DECL_DEPRECATED static QUrl mobilize( QUrl );
/** Use this to URL encode any database item (artist, track, album). It
* internally calls UrlEncodeSpecialChars to double encode some special
@@ -60,7 +62,10 @@ namespace lastfm
*/
static QByteArray encode( QString );

View File

@ -1,36 +1,36 @@
include/lastfm/AbstractType.h
include/lastfm/Album.h
include/lastfm/Artist.h
include/lastfm/Audioscrobbler.h
include/lastfm/Auth.h
include/lastfm/Chart.h
%%FINGERPRINT%%include/lastfm/Fingerprint.h
include/lastfm/FingerprintId.h
%%FINGERPRINT%%include/lastfm/FingerprintableSource.h
include/lastfm/InternetConnectionMonitor.h
include/lastfm/Library.h
include/lastfm/Mbid.h
include/lastfm/NetworkAccessManager.h
include/lastfm/NetworkConnectionMonitor.h
include/lastfm/Playlist.h
include/lastfm/RadioStation.h
include/lastfm/RadioTuner.h
include/lastfm/ScrobbleCache.h
include/lastfm/ScrobblePoint.h
include/lastfm/Tag.h
include/lastfm/Tasteometer.h
include/lastfm/Track.h
include/lastfm/Url.h
include/lastfm/UrlBuilder.h
include/lastfm/User.h
include/lastfm/XmlQuery.h
include/lastfm/Xspf.h
include/lastfm/global.h
include/lastfm/misc.h
include/lastfm/ws.h
lib/liblastfm.so
lib/liblastfm.so.1
lib/liblastfm.so.1.0.9
%%FINGERPRINT%%lib/liblastfm_fingerprint.so
%%FINGERPRINT%%lib/liblastfm_fingerprint.so.1
%%FINGERPRINT%%lib/liblastfm_fingerprint.so.1.0.9
include/lastfm%%QTVER_SUFFIX%%/AbstractType.h
include/lastfm%%QTVER_SUFFIX%%/Album.h
include/lastfm%%QTVER_SUFFIX%%/Artist.h
include/lastfm%%QTVER_SUFFIX%%/Audioscrobbler.h
include/lastfm%%QTVER_SUFFIX%%/Auth.h
include/lastfm%%QTVER_SUFFIX%%/Chart.h
%%FINGERPRINT%%include/lastfm%%QTVER_SUFFIX%%/Fingerprint.h
include/lastfm%%QTVER_SUFFIX%%/FingerprintId.h
%%FINGERPRINT%%include/lastfm%%QTVER_SUFFIX%%/FingerprintableSource.h
include/lastfm%%QTVER_SUFFIX%%/InternetConnectionMonitor.h
include/lastfm%%QTVER_SUFFIX%%/Library.h
include/lastfm%%QTVER_SUFFIX%%/Mbid.h
include/lastfm%%QTVER_SUFFIX%%/NetworkAccessManager.h
include/lastfm%%QTVER_SUFFIX%%/NetworkConnectionMonitor.h
include/lastfm%%QTVER_SUFFIX%%/Playlist.h
include/lastfm%%QTVER_SUFFIX%%/RadioStation.h
include/lastfm%%QTVER_SUFFIX%%/RadioTuner.h
include/lastfm%%QTVER_SUFFIX%%/ScrobbleCache.h
include/lastfm%%QTVER_SUFFIX%%/ScrobblePoint.h
include/lastfm%%QTVER_SUFFIX%%/Tag.h
include/lastfm%%QTVER_SUFFIX%%/Tasteometer.h
include/lastfm%%QTVER_SUFFIX%%/Track.h
include/lastfm%%QTVER_SUFFIX%%/Url.h
include/lastfm%%QTVER_SUFFIX%%/UrlBuilder.h
include/lastfm%%QTVER_SUFFIX%%/User.h
include/lastfm%%QTVER_SUFFIX%%/XmlQuery.h
include/lastfm%%QTVER_SUFFIX%%/Xspf.h
include/lastfm%%QTVER_SUFFIX%%/global.h
include/lastfm%%QTVER_SUFFIX%%/misc.h
include/lastfm%%QTVER_SUFFIX%%/ws.h
lib/liblastfm%%QTVER_SUFFIX%%.so
lib/liblastfm%%QTVER_SUFFIX%%.so.1
lib/liblastfm%%QTVER_SUFFIX%%.so.1.1.0
%%FINGERPRINT%%lib/liblastfm_fingerprint%%QTVER_SUFFIX%%.so
%%FINGERPRINT%%lib/liblastfm_fingerprint%%QTVER_SUFFIX%%.so.1
%%FINGERPRINT%%lib/liblastfm_fingerprint%%QTVER_SUFFIX%%.so.1.1.0