Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glyr/, media-libs/glyr/files/
Date: Sun, 27 Feb 2022 00:54:31
Message-Id: 1645923036.1c96a698995a0d7536206b2f0d78358330c82254.sam@gentoo
1 commit: 1c96a698995a0d7536206b2f0d78358330c82254
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 00:50:36 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 00:50:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c96a698
7
8 media-libs/glyr: update EAPI 6 -> 8
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../glyr/files/glyr-1.0.10-fix-version.patch | 23 ++++++++++++++
13 media-libs/glyr/glyr-1.0.10-r1.ebuild | 36 ++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/media-libs/glyr/files/glyr-1.0.10-fix-version.patch b/media-libs/glyr/files/glyr-1.0.10-fix-version.patch
17 new file mode 100644
18 index 000000000000..0d0c126faa7f
19 --- /dev/null
20 +++ b/media-libs/glyr/files/glyr-1.0.10-fix-version.patch
21 @@ -0,0 +1,23 @@
22 +https://github.com/sahib/glyr/pull/104
23 +
24 +From bf0a0f0a040aed89f7fef3dadf52754b73efc597 Mon Sep 17 00:00:00 2001
25 +From: Sam James <sam@g.o>
26 +Date: Sun, 27 Feb 2022 00:48:25 +0000
27 +Subject: [PATCH] CMakeLists.txt: fix version
28 +
29 +This avoids e.g. the pkg-config file installed having the wrong version.
30 +
31 +It must be updated on new tags/releases (just before tagging).
32 +
33 +Signed-off-by: Sam James <sam@g.o>
34 +--- a/CMakeLists.txt
35 ++++ b/CMakeLists.txt
36 +@@ -38,7 +38,7 @@ ENDIF()
37 + # ------------------------------------------------
38 + SET(GLYR_VERSION_MAJOR "1")
39 + SET(GLYR_VERSION_MINOR "0")
40 +-SET(GLYR_VERSION_MICRO "9")
41 ++SET(GLYR_VERSION_MICRO "10")
42 + SET(GLYR_VERSION_NAME "Raving Raven")
43 + # ------------------------------------------------
44 +
45
46 diff --git a/media-libs/glyr/glyr-1.0.10-r1.ebuild b/media-libs/glyr/glyr-1.0.10-r1.ebuild
47 new file mode 100644
48 index 000000000000..0d8bc15b0992
49 --- /dev/null
50 +++ b/media-libs/glyr/glyr-1.0.10-r1.ebuild
51 @@ -0,0 +1,36 @@
52 +# Copyright 1999-2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +inherit cmake
58 +
59 +DESCRIPTION="Music related metadata searchengine, both with commandline interface and C API"
60 +HOMEPAGE="https://github.com/sahib/glyr"
61 +SRC_URI="https://github.com/sahib/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
62 +
63 +LICENSE="LGPL-3"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +
67 +RDEPEND="dev-db/sqlite:3
68 + >=dev-libs/glib-2.10:2
69 + net-misc/curl"
70 +DEPEND="${RDEPEND}"
71 +BDEPEND="virtual/pkgconfig"
72 +
73 +DOCS=( AUTHORS README.textile ) # CHANGELOG is obsolete in favour of git history
74 +
75 +PATCHES=(
76 + "${FILESDIR}"/${P}-fix-version.patch
77 +)
78 +
79 +src_prepare() {
80 + cmake_src_prepare
81 +
82 + sed -i \
83 + -e '/GCC_ONLY_OPT.*-s/d' \
84 + -e '/FLAGS/s:-Os::' \
85 + -e '/FLAGS/s:-g3::' \
86 + CMakeLists.txt || die
87 +}