gentoo-ebuilds/media-libs/glyr/glyr-1.0.10-r1.ebuild
Sam James 51addb5651
media-libs/glyr: fix build w/ curl
Closes: https://bugs.gentoo.org/962818
Thanks-to: Ted Rodgers <ted.d.rodgers@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-01 00:28:23 +01:00

39 lines
843 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Music related metadata searchengine, both with commandline interface and C API"
HOMEPAGE="https://github.com/sahib/glyr"
SRC_URI="https://github.com/sahib/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 ~riscv x86"
RDEPEND="
dev-db/sqlite:3
>=dev-libs/glib-2.10:2
net-misc/curl
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
DOCS=( AUTHORS README.textile ) # CHANGELOG is obsolete in favour of git history
PATCHES=(
"${FILESDIR}"/${P}-fix-version.patch
"${FILESDIR}"/${PN}-1.0.10-curl.patch
)
src_prepare() {
cmake_src_prepare
sed -i \
-e '/GCC_ONLY_OPT.*-s/d' \
-e '/FLAGS/s:-Os::' \
-e '/FLAGS/s:-g3::' \
CMakeLists.txt || die
}