reiser4progs-1.1.0.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit multilib eutils toolchain-funcs
  5. DESCRIPTION="reiser4progs: mkfs, fsck, etc..."
  6. HOMEPAGE="https://sourceforge.net/projects/reiser4/"
  7. SRC_URI="mirror://sourceforge/reiser4/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 arm ppc ppc64 -sparc x86"
  11. IUSE="debug readline static static-libs"
  12. LIB_DEPEND="~sys-libs/libaal-1.0.6[static-libs(+)]
  13. readline? ( sys-libs/readline[static-libs(+)] )"
  14. RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
  15. static-libs? ( ~sys-libs/libaal-1.0.6[static-libs(+)] )"
  16. DEPEND="${RDEPEND}
  17. static? ( ${LIB_DEPEND} )"
  18. src_prepare() {
  19. printf '#!/bin/sh\ntrue\n' > run-ldconfig
  20. # Delete hardcoded link/compile flags.
  21. sed -i -r \
  22. -e '/CFLAGS=/s: -static":":' \
  23. -e '/CFLAGS/s: (-O[123s]|-g)\>::g' \
  24. configure || die
  25. epatch "${FILESDIR}"/${PN}-1.0.7-readline-6.3.patch #504472
  26. }
  27. src_configure() {
  28. econf \
  29. $(use_enable static full-static) \
  30. $(use_enable static-libs static) \
  31. $(use_enable debug) \
  32. $(use_with readline) \
  33. --disable-Werror \
  34. --enable-libminimal \
  35. --sbindir=/sbin
  36. }
  37. src_install() {
  38. default
  39. gen_usr_ldscript -a reiser4{,-minimal} repair
  40. }