make-3.80-r4.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils flag-o-matic
  4. DESCRIPTION="Standard tool to compile source trees"
  5. HOMEPAGE="https://www.gnu.org/software/make/make.html"
  6. SRC_URI="mirror://gnu//make/${P}.tar.bz2"
  7. LICENSE="GPL-2"
  8. SLOT="0"
  9. KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
  10. IUSE="nls static"
  11. DEPEND="nls? ( sys-devel/gettext )"
  12. RDEPEND=""
  13. src_unpack() {
  14. unpack ${A}
  15. cd "${S}"
  16. epatch "${FILESDIR}"/${PV}-memory.patch
  17. epatch "${FILESDIR}"/${P}-parallel-build-failure.patch
  18. epatch "${FILESDIR}"/${P}-conditional-eval.patch #123317
  19. }
  20. src_compile() {
  21. use static && append-ldflags -static
  22. econf \
  23. $(use_enable nls) \
  24. --program-prefix=g \
  25. || die
  26. emake || die
  27. }
  28. src_install() {
  29. emake DESTDIR="${D}" install || die "make install failed"
  30. dodoc AUTHORS ChangeLog NEWS README*
  31. if [[ ${USERLAND} == "GNU" ]] ; then
  32. dosym gmake /usr/bin/make
  33. dosym gmake.1 /usr/share/man/man1/make.1
  34. fi
  35. }