45 lines
880 B
Bash
45 lines
880 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Library required by reiser4progs"
|
|
HOMEPAGE="https://sourceforge.net/projects/reiser4/"
|
|
SRC_URI="https://free.nchc.org.tw/drbl-core/pool/drbl/dev/libaal/libaal_${PV}.orig.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
|
IUSE="static-libs"
|
|
|
|
DEPEND="virtual/os-headers"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-bitops.patch
|
|
"${FILESDIR}"/${P}-stdint.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i \
|
|
-e '/GENERIC_CFLAGS/s:-O3::' \
|
|
-e "/^CFLAGS=/s:\"\":\"${CFLAGS}\":" \
|
|
configure || die
|
|
|
|
printf '#!/bin/sh\n:\n' > run-ldconfig || die
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--enable-libminimal \
|
|
--enable-memory-manager \
|
|
$(use_enable static-libs static)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|