dmapi-2.2.12-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit eutils toolchain-funcs multilib multilib-minimal
  5. DESCRIPTION="XFS data management API library"
  6. HOMEPAGE="http://oss.sgi.com/projects/xfs/"
  7. SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz
  8. ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz"
  9. LICENSE="LGPL-2.1"
  10. SLOT="0"
  11. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
  12. IUSE="static-libs"
  13. RDEPEND="sys-fs/xfsprogs"
  14. DEPEND="${RDEPEND}"
  15. src_prepare() {
  16. sed -i \
  17. -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
  18. include/builddefs.in \
  19. || die
  20. epatch "${FILESDIR}"/${P}-headers.patch
  21. multilib_copy_sources
  22. }
  23. multilib_src_configure() {
  24. export OPTIMIZER=${CFLAGS}
  25. export DEBUG=-DNDEBUG
  26. econf \
  27. --libexecdir=/usr/$(get_libdir) \
  28. $(use_enable static-libs static)
  29. }
  30. multilib_src_install() {
  31. emake DESTDIR="${D}" install install-dev
  32. gen_usr_ldscript -a dm
  33. }
  34. multilib_src_install_all() {
  35. prune_libtool_files --all
  36. rm "${ED}"/usr/share/doc/${PF}/COPYING
  37. }