diff --git a/net/rssguard/Makefile b/net/rssguard/Makefile index 2b0a3db9dc55..48d13f3fdfca 100644 --- a/net/rssguard/Makefile +++ b/net/rssguard/Makefile @@ -1,40 +1,42 @@ # Created by: Alexey Dokuchaev PORTNAME= rssguard -PORTVERSION= 4.0.1 +PORTVERSION= 4.0.4 CATEGORIES= net www MAINTAINER= danfe@FreeBSD.org COMMENT= Simple (yet powerful) Qt5 feed reader LICENSE= GPLv3+ USES= qmake qt:5 USE_QT= buildtools_build linguisttools_build \ core dbus declarative gui multimedia network sql \ widgets xml USE_GITHUB= yes GH_ACCOUNT= martinrotter OPTIONS_DEFINE= WEBENGINE OPTIONS_DEFAULT_aarch64= WEBENGINE OPTIONS_DEFAULT_amd64= WEBENGINE OPTIONS_DEFAULT_i386= WEBENGINE WEBENGINE_DESC= Use QtWebEngine module for internal web browser WEBENGINE_USE= QT=location,printsupport,webchannel,webengine WEBENGINE_QMAKE_OFF= USE_WEBENGINE=false post-patch: @${GREP} -Rl --null Q_OS_LINUX ${WRKSRC}/src | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's,Q_OS_LINUX,Q_OS_UNIX,' # Avoid potential linking errors when previous version of the port # is installed. @${REINPLACE_CMD} -e '/^unix: LIBS/ { s,-L,, ; \ s, -lrssguard,librssguard.so, ; }' \ ${WRKSRC}/src/rssguard/rssguard.pro post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librssguard.so .include + +PATCH_ARGS+= -l diff --git a/net/rssguard/distinfo b/net/rssguard/distinfo index 5f0002d936e2..c16dfc5d491a 100644 --- a/net/rssguard/distinfo +++ b/net/rssguard/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1630670274 -SHA256 (martinrotter-rssguard-4.0.1_GH0.tar.gz) = 658ed9f63d2e3d1b740c8c65e649b28de350f64670c85e954a093345e313a500 -SIZE (martinrotter-rssguard-4.0.1_GH0.tar.gz) = 14417555 +TIMESTAMP = 1634296436 +SHA256 (martinrotter-rssguard-4.0.4_GH0.tar.gz) = 9154a9c674b35f68486ca7e024265e044b7c7971485bafbe9b6ebbdf27463489 +SIZE (martinrotter-rssguard-4.0.4_GH0.tar.gz) = 14433147 diff --git a/net/rssguard/files/patch-src_librssguard_miscellaneous_notification.cpp b/net/rssguard/files/patch-src_librssguard_miscellaneous_notification.cpp new file mode 100644 index 000000000000..afee28e7c4a5 --- /dev/null +++ b/net/rssguard/files/patch-src_librssguard_miscellaneous_notification.cpp @@ -0,0 +1,44 @@ +--- src/librssguard/miscellaneous/notification.cpp.orig 2021-10-15 11:13:56 UTC ++++ src/librssguard/miscellaneous/notification.cpp +@@ -7,7 +7,7 @@ + #include + + #if !defined(Q_OS_OS2) +-#include ++#include + #endif + + Notification::Notification(Notification::Event event, bool balloon, const QString& sound_path, int volume) +@@ -32,25 +32,25 @@ void Notification::setSoundPath(const QString& sound_p + void Notification::playSound(Application* app) const { + if (!m_soundPath.isEmpty()) { + #if !defined(Q_OS_OS2) +- QMediaPlayer* play = new QMediaPlayer(app); ++ QSoundEffect* play = new QSoundEffect(app); + +- QObject::connect(play, &QMediaPlayer::stateChanged, play, [play](QMediaPlayer::State state) { +- if (state == QMediaPlayer::State::StoppedState) { ++ QObject::connect(play, &QSoundEffect::playingChanged, play, [play]() { ++ if (!play->isPlaying()) { + play->deleteLater(); + } + }); + + if (m_soundPath.startsWith(QSL(":"))) { +- play->setMedia(QMediaContent(QUrl(QSL("qrc") + m_soundPath))); ++ play->setSource(QUrl(QSL("qrc") + m_soundPath)); + + } + else { +- play->setMedia(QMediaContent( ++ play->setSource( + QUrl::fromLocalFile( +- QDir::toNativeSeparators(app->replaceDataUserDataFolderPlaceholder(m_soundPath))))); ++ QDir::toNativeSeparators(app->replaceDataUserDataFolderPlaceholder(m_soundPath)))); + } + +- play->setVolume(m_volume); ++ play->setVolume(static_cast(m_volume) / 100); + play->play(); + #endif + } diff --git a/net/rssguard/pkg-descr b/net/rssguard/pkg-descr index 641001112197..13703bea2c70 100644 --- a/net/rssguard/pkg-descr +++ b/net/rssguard/pkg-descr @@ -1,6 +1,10 @@ RSS Guard is simple, lightweight, and easy-to-use RSS/Atom feed aggregator developed using Qt framework which supports online feed synchronization with various services, e.g. Bazqux, Feedly, FreshRSS, Gmail, Google Reader, Inoreader, Nextcloud News, Reedah, Tiny Tiny RSS. +In contrast with many other RSS readers, heavy WebKit/WebEngine dependency +is optional for RSS Guard: when built without it, simple text component is +used and some features will be disabled. + WWW: https://github.com/martinrotter/rssguard