advancecomp-1.15.ebuild 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils
  5. DESCRIPTION="Recompress ZIP, PNG and MNG, considerably improving compression"
  6. HOMEPAGE="http://advancemame.sourceforge.net/comp-readme.html"
  7. SRC_URI="mirror://sourceforge/advancemame/${P}.tar.gz"
  8. LICENSE="GPL-2 LGPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd"
  11. IUSE="png mng"
  12. DEPEND="sys-libs/zlib
  13. app-arch/bzip2"
  14. RDEPEND="${DEPEND}"
  15. RESTRICT="test" #282441
  16. src_prepare() {
  17. # bzip2 support wont compile, here's a quick patch.
  18. epatch "${FILESDIR}"/${PN}-1.13-bzip2-compile-plz-k-thx.diff
  19. }
  20. src_configure() {
  21. econf --enable-bzip2
  22. }
  23. src_install() {
  24. dobin advdef advzip
  25. if use png; then
  26. dobin advpng
  27. doman doc/advpng.1
  28. fi
  29. if use mng; then
  30. dobin advmng
  31. doman doc/advmng.1
  32. fi
  33. dodoc HISTORY AUTHORS README
  34. doman doc/advdef.1 doc/advzip.1
  35. }