1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs ltprune multilib multilib-minimal usr-ldscript
8 DESCRIPTION="XFS data management API library"
9 HOMEPAGE="https://xfs.wiki.kernel.org/"
10 SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz
11 ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz"
15 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
18 RDEPEND="sys-fs/xfsprogs"
23 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
24 include/builddefs.in \
26 epatch "${FILESDIR}"/${P}-headers.patch
31 multilib_src_configure() {
32 export OPTIMIZER=${CFLAGS}
36 --libexecdir=/usr/$(get_libdir) \
37 $(use_enable static-libs static)
40 multilib_src_install() {
41 emake DESTDIR="${D}" install install-dev
42 gen_usr_ldscript -a dm
45 multilib_src_install_all() {
46 prune_libtool_files --all
47 rm "${ED}"/usr/share/doc/${PF}/COPYING