uudeview-0.5.20-r1.ebuild 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="3"
  4. inherit eutils autotools
  5. DESCRIPTION="uu, xx, base64, binhex decoder"
  6. HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/"
  7. SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
  11. IUSE="tk"
  12. RDEPEND="tk? ( dev-lang/tk )"
  13. DEPEND="${RDEPEND}
  14. sys-devel/autoconf"
  15. src_prepare() {
  16. epatch "${FILESDIR}/${P}-bugfixes.patch"
  17. epatch "${FILESDIR}/${P}-CVE-2004-2265.patch"
  18. epatch "${FILESDIR}/${P}-CVE-2008-2266.patch"
  19. epatch "${FILESDIR}/${P}-man.patch"
  20. epatch "${FILESDIR}/${P}-rename.patch"
  21. eautoreconf
  22. }
  23. src_configure() {
  24. econf \
  25. $(use_enable tk tcl) \
  26. $(use_enable tk)
  27. }
  28. src_install() {
  29. # upstream's Makefiles are just broken
  30. einstall MANDIR="${ED}/usr/share/man/" || die "Failed to install"
  31. dodoc HISTORY INSTALL README
  32. }