texinfo-4.13-r2.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit flag-o-matic eutils
  5. DESCRIPTION="The GNU info program and utilities"
  6. HOMEPAGE="https://www.gnu.org/software/texinfo/"
  7. SRC_URI="mirror://gnu/${PN}/${P}.tar.lzma"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
  11. IUSE="nls static"
  12. RDEPEND="!=app-text/tetex-2*
  13. >=sys-libs/ncurses-5.2-r2
  14. nls? ( virtual/libintl )"
  15. DEPEND="${RDEPEND}
  16. app-arch/xz-utils
  17. nls? ( sys-devel/gettext )"
  18. src_prepare() {
  19. epatch "${FILESDIR}"/${P}-xz.patch #269742
  20. touch doc/install-info.1 #354589
  21. epatch "${FILESDIR}"/${P}-texi2dvi-regexp-range.patch #311885
  22. epatch "${FILESDIR}"/${P}-accentenc-test.patch
  23. # waiting to be sent upstream for my copyright assignment form to be
  24. # ready - Flameeyes
  25. epatch "${FILESDIR}"/${P}-docbook.patch
  26. epatch "${FILESDIR}"/${P}-tinfo.patch #457556
  27. # timestamps must be newer than configure.ac touched by ${P}-tinfo.patch
  28. touch doc/{texi2dvi,texi2pdf,pdftexi2dvi}.1 #354589
  29. }
  30. src_configure() {
  31. use static && append-ldflags -static
  32. econf $(use_enable nls)
  33. }
  34. src_compile() {
  35. # Make cross-compiler safe (#196041)
  36. if tc-is-cross-compiler ; then
  37. emake -C tools/gnulib/lib || die
  38. fi
  39. emake || die
  40. }
  41. src_install() {
  42. emake DESTDIR="${D}" install || die
  43. dodoc AUTHORS ChangeLog INTRODUCTION NEWS README TODO
  44. newdoc info/README README.info
  45. newdoc makeinfo/README README.makeinfo
  46. }