Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/dumb/, media-libs/dumb/files/
Date: Sun, 31 May 2020 16:20:28
Message-Id: 1590941971.8b9daec6431c853fbdbd944fef316b603c5514ce.chewi@gentoo
1 commit: 8b9daec6431c853fbdbd944fef316b603c5514ce
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 15:47:09 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 16:19:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b9daec6
7
8 media-libs/dumb: Bump to 2.0.3, EAPI 7, new upstream
9
10 This adds an allegro USE flag to replace the media-libs/aldumb
11 package.
12
13 Package-Manager: Portage-2.3.100, Repoman-2.3.22
14 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
15
16 media-libs/dumb/Manifest | 1 +
17 media-libs/dumb/dumb-2.0.3.ebuild | 51 +++++++++++++++++++++++
18 media-libs/dumb/files/dumb-2.0.3-pkg-config.patch | 21 ++++++++++
19 media-libs/dumb/metadata.xml | 4 ++
20 4 files changed, 77 insertions(+)
21
22 diff --git a/media-libs/dumb/Manifest b/media-libs/dumb/Manifest
23 index 089690e1d59..4f2c4403b6a 100644
24 --- a/media-libs/dumb/Manifest
25 +++ b/media-libs/dumb/Manifest
26 @@ -1 +1,2 @@
27 DIST dumb-0.9.3.tar.gz 167379 BLAKE2B 1a9f62b784f8e8ba5b30b892bc9588bbebca7d5270b5d1161230c1c538d1aed8c6d2f2afa6a9087858ad45dccee9c640498548a845b2f046a0c390e7a84525cc SHA512 9ecdea460858b7e6ad7ca2534ecb3581397e6c1fa904459affe19ce49f528e580e143b42b13413b292ae7b57901a8008e6a9ee3821824f6ff7914b136f75c658
28 +DIST dumb-2.0.3.tar.gz 186576 BLAKE2B 0bd2e512b88260e67b11856630aecfdda2f11a8c5f931c1da3451dbfc15cd5e7e38e718d12b99e0598d9522cf259317a98c5d3088dd979c487a8971fd562ee3f SHA512 18b10a507d69a754cdf97fbeae41c17f211a6ba1f166a822276bdb6769d3edc326919067a3f4d1247d6715d7a5a8276669d83b9427e7336c6d111593fb7e36cf
29
30 diff --git a/media-libs/dumb/dumb-2.0.3.ebuild b/media-libs/dumb/dumb-2.0.3.ebuild
31 new file mode 100644
32 index 00000000000..7c509445721
33 --- /dev/null
34 +++ b/media-libs/dumb/dumb-2.0.3.ebuild
35 @@ -0,0 +1,51 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +CMAKE_ECLASS=cmake
42 +inherit cmake-multilib
43 +
44 +DESCRIPTION="Module/tracker based music format parser and player library"
45 +HOMEPAGE="https://github.com/kode54/dumb"
46 +SRC_URI="https://github.com/kode54/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="DUMB-0.9.3"
49 +SLOT="0/2"
50 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
51 +IUSE="allegro cpu_flags_x86_sse examples"
52 +
53 +RDEPEND="
54 + allegro? (
55 + media-libs/allegro:0[${MULTILIB_USEDEP}]
56 + !media-libs/aldumb
57 + )
58 + examples? (
59 + >=dev-libs/argtable-2
60 + media-libs/libsdl2[sound]
61 + )
62 +"
63 +
64 +DEPEND="
65 + ${RDEPEND}
66 +"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${P}-pkg-config.patch
70 +)
71 +
72 +DOCS=(
73 + CHANGELOG.md
74 + DUMBFILE_SYSTEM.md
75 + README.md
76 + UPDATING_YOUR_PROJECTS.md
77 +)
78 +
79 +multilib_src_configure() {
80 + local mycmakeargs=(
81 + -DBUILD_ALLEGRO4=$(usex allegro)
82 + -DBUILD_EXAMPLES=$(multilib_native_usex examples)
83 + -DUSE_SSE=$(usex cpu_flags_x86_sse)
84 + )
85 + cmake_src_configure
86 +}
87
88 diff --git a/media-libs/dumb/files/dumb-2.0.3-pkg-config.patch b/media-libs/dumb/files/dumb-2.0.3-pkg-config.patch
89 new file mode 100644
90 index 00000000000..5b8d9856e17
91 --- /dev/null
92 +++ b/media-libs/dumb/files/dumb-2.0.3-pkg-config.patch
93 @@ -0,0 +1,21 @@
94 +From 3a4f71afbc23d716d0d1f71664b94af143ae8e11 Mon Sep 17 00:00:00 2001
95 +From: Robert Colton <robertbcolton@×××××.com>
96 +Date: Tue, 18 Dec 2018 22:03:51 -0500
97 +Subject: [PATCH] fix pkg-config linking issue -llibdumb
98 +
99 +---
100 + pkg-config.pc.in | 2 +-
101 + 1 file changed, 1 insertion(+), 1 deletion(-)
102 +
103 +diff --git a/pkg-config.pc.in b/pkg-config.pc.in
104 +index c11861c..92a9735 100644
105 +--- a/pkg-config.pc.in
106 ++++ b/pkg-config.pc.in
107 +@@ -7,6 +7,6 @@ Name: DUMB
108 + Description: DUMB is a module audio renderer library.
109 + Version: @DUMB_VERSION@
110 + URL: https://github.com/kode54/dumb/
111 +-Libs: -L${libdir} -l@PROJECT_NAME@
112 ++Libs: -L${libdir} -ldumb
113 + Libs.private: -lm
114 + Cflags: -I${includedir}
115
116 diff --git a/media-libs/dumb/metadata.xml b/media-libs/dumb/metadata.xml
117 index 18f5db99219..66e3068bc83 100644
118 --- a/media-libs/dumb/metadata.xml
119 +++ b/media-libs/dumb/metadata.xml
120 @@ -6,6 +6,10 @@
121 <name>Gentoo Sound project</name>
122 </maintainer>
123 <upstream>
124 + <remote-id type="github">kode54/dumb</remote-id>
125 <remote-id type="sourceforge">dumb</remote-id>
126 </upstream>
127 + <use>
128 + <flag name="allegro">Add support for Allegro 4</flag>
129 + </use>
130 </pkgmetadata>