mbtpdfasm-1.0.28-r1.ebuild 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. inherit eutils toolchain-funcs
  5. MY_P="mbtPdfAsm-${PV}"
  6. DESCRIPTION="Tool to assemble/merge, extract information from, and update the metadata in PDF"
  7. HOMEPAGE="http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html"
  8. SRC_URI="http://thierry.schmit.free.fr/spip/IMG/gz/${MY_P}.tar.gz
  9. http://sbriesen.de/gentoo/distfiles/${P}-manual.pdf.bz2"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
  13. IUSE=""
  14. S="${WORKDIR}"
  15. src_prepare() {
  16. epatch "${FILESDIR}/${P}-makefile.diff"
  17. epatch "${FILESDIR}/${P}-64bit.diff"
  18. epatch "${FILESDIR}/${P}-main.diff"
  19. # use system zlib
  20. epatch "${FILESDIR}/${P}-zlib.diff"
  21. mv -f "zlib.h" "zlib.h.disabled"
  22. }
  23. src_compile() {
  24. emake CC="$(tc-getCXX)" || die "emake failed"
  25. }
  26. src_install() {
  27. dobin mbtPdfAsm || die "install failed"
  28. insinto "/usr/share/doc/${PF}"
  29. newins ${P}-manual.pdf mbtPdfAsm.pdf
  30. }