mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Closes: https://bugs.gentoo.org/920524 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
47 lines
825 B
Bash
47 lines
825 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="A library for converting unicode strings to numbers and vice versa"
|
|
HOMEPAGE="https://billposer.org/Software/libuninum.html"
|
|
SRC_URI="https://billposer.org/Software/Downloads/${P}.tar.bz2"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
LICENSE="GPL-2 GPL-2+ LGPL-2 LGPL-2.1"
|
|
SLOT="0"
|
|
|
|
RDEPEND="dev-libs/gmp:="
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-2.7-64bit.patch"
|
|
"${FILESDIR}/${PN}-2.7-c99.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# LTO does not work.
|
|
# See https://bugs.gentoo.org/855956
|
|
filter-lto
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--disable-static
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${D}" -name '*.la' -delete || die
|
|
}
|