mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 23:48:20 +00:00
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958452 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
50 lines
955 B
Bash
50 lines
955 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit dot-a edo toolchain-funcs
|
|
|
|
DESCRIPTION="feature rich database generator for high performance C applications"
|
|
HOMEPAGE="http://datadraw.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${PN}/${PN}${PV}/${PN}${PV}.tar.gz"
|
|
|
|
LICENSE="LGPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="examples"
|
|
|
|
S="${WORKDIR}/${PN}${PV}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-buildsystem.patch
|
|
"${FILESDIR}"/${P}-bashism.patch
|
|
)
|
|
|
|
src_configure() {
|
|
tc-export AR CC
|
|
lto-guarantee-fat
|
|
edo ./configure --prefix="${EPREFIX}/usr"
|
|
}
|
|
|
|
src_install() {
|
|
dobin datadraw
|
|
|
|
local lib
|
|
for lib in util/*.a; do
|
|
newlib.a ${lib} lib${lib#*/}
|
|
done
|
|
|
|
doheader util/*.h
|
|
|
|
strip-lto-bytecode
|
|
|
|
HTML_DOCS=( www/index.html www/images )
|
|
einstalldocs
|
|
dodoc manual.pdf
|
|
|
|
if use examples; then
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
fi
|
|
}
|