This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
build: add QtScrobbler #2174
Merged
Merged
build: add QtScrobbler #2174
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package: | ||
id: io.github.QtScrobbler | ||
name: QtScrobbler | ||
version: 1.0.0 | ||
kind: app | ||
description: | | ||
QTScrobbler ships both multiplatform GUI and CLI versions | ||
|
||
runtime: | ||
id: org.deepin.Runtime | ||
version: 23.0.0 | ||
|
||
source: | ||
kind: git | ||
url: https://github.com/marcelpetrick/QtScrobbler.git | ||
commit: 279bc3035ce4e8575b90f4d37616f74d7bfab5ee | ||
patch: patches/0001-install.patch | ||
|
||
build: | ||
kind: qmake | ||
manual: | ||
configure: | | ||
cd src | ||
qmake -makefile ${conf_args} ${extra_args} | ||
build: | | ||
make ${jobs} | ||
install: | | ||
make ${jobs} DESTDIR=${dest_dir} install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
From f51d3d58382747db36bf6befa2a1792c90d78748 Mon Sep 17 00:00:00 2001 | ||
From: wjyrich <[email protected]> | ||
Date: Sun, 12 May 2024 13:53:48 +0800 | ||
Subject: [PATCH] install | ||
|
||
--- | ||
src/cli/cli.pro | 5 +---- | ||
src/lib/libscrobble.cpp | 10 ++-------- | ||
src/qt/qt.pro | 2 -- | ||
3 files changed, 3 insertions(+), 14 deletions(-) | ||
|
||
diff --git a/src/cli/cli.pro b/src/cli/cli.pro | ||
index 6879e0c..632ef2e 100755 | ||
--- a/src/cli/cli.pro | ||
+++ b/src/cli/cli.pro | ||
@@ -23,15 +23,12 @@ unix:mac { | ||
unix:!mac { | ||
INSTALLS += target \ | ||
man \ | ||
- man-compress | ||
+ | ||
|
||
target.path = $$BINDIR | ||
|
||
man.files = scrobbler.1 | ||
man.path = $${DATADIR}/man/man1 | ||
- | ||
- man-compress.path = $${DATADIR}/man/man1 | ||
- man-compress.extra = "gzip -9 -f \$(INSTALL_ROOT)/$$DATADIR/man/man1/scrobbler.1" | ||
} | ||
|
||
include (../app.pri) | ||
diff --git a/src/lib/libscrobble.cpp b/src/lib/libscrobble.cpp | ||
index 74a9146..03297ad 100755 | ||
--- a/src/lib/libscrobble.cpp | ||
+++ b/src/lib/libscrobble.cpp | ||
@@ -21,9 +21,7 @@ | ||
|
||
#include "parse-log.h" | ||
#include "parse-ipod.h" | ||
-#ifdef HAVE_MTP | ||
- #include "parse-mtp.h" | ||
-#endif | ||
+ | ||
#include "dbcache.h" | ||
|
||
#ifdef _MSC_VER | ||
@@ -497,11 +495,7 @@ bool Scrobble::parse(SCROBBLE_METHOD method, QString path) | ||
case SCROBBLE_IPOD: | ||
parser = new Parse_Ipod(); | ||
break; | ||
-#ifdef HAVE_MTP | ||
- case SCROBBLE_MTP: | ||
- parser = new Parse_MTP(); | ||
- break; | ||
-#endif | ||
+ | ||
case SCROBBLE_NONE: | ||
default: | ||
add_log(LOG_ERROR, tr("Error - asked to use an unknown Parser!")); | ||
diff --git a/src/qt/qt.pro b/src/qt/qt.pro | ||
index 0879bd2..ad66a9b 100755 | ||
--- a/src/qt/qt.pro | ||
+++ b/src/qt/qt.pro | ||
@@ -18,8 +18,6 @@ unix:!mac { | ||
man.files = qtscrob.1 | ||
man.path = $${DATADIR}/man/man1 | ||
|
||
- man-compress.path = $${DATADIR}/man/man1 | ||
- man-compress.extra = "gzip -9 -f \$(INSTALL_ROOT)/$$DATADIR/man/man1/qtscrob.1" | ||
|
||
INSTALLS = target \ | ||
desktop \ | ||
-- | ||
2.33.1 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种改法不提倡啊,相当于去掉了它的特性