lm1100-1.0.2a-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="The Tim Engler's Lexmark 1100 driver"
  6. HOMEPAGE="http://www.linuxprinting.org/show_driver.cgi?driver=lm1100"
  7. MY_P=${P/lm1100-/lm1100.}
  8. SRC_URI="mirror://gentoo/${MY_P}.tar.gz
  9. mirror://gentoo/${PN}maint.tar.gz"
  10. #http://www.linuxprinting.org/download/printing/${PN}/${PN}maint.tar.gz
  11. #http://www.linuxprinting.org/download/printing/${PN}/${MY_P}.tar.gz
  12. LICENSE="GPL-2"
  13. SLOT="0"
  14. KEYWORDS="amd64 x86"
  15. IUSE=""
  16. DEPEND=""
  17. S=${WORKDIR}/${MY_P}
  18. src_prepare() {
  19. epatch "${FILESDIR}/${P}-fix-compile-gcc-3.4.patch"\
  20. "${FILESDIR}/${P}-fix-compile-gcc-4.1.patch"\
  21. "${FILESDIR}/${P}-class.patch"\
  22. "${FILESDIR}/${P}-makefile.patch"
  23. cd "${WORKDIR}/${PN}maint" || die
  24. epatch "${FILESDIR}/${PN}maint-firmware.patch"
  25. }
  26. src_compile() {
  27. emake CXX="$(tc-getCXX)"
  28. }
  29. src_install() {
  30. dobin lm1100
  31. dodoc README RELEASE.txt
  32. cd "${WORKDIR}/${PN}maint" || die
  33. dobin lm1100back lm1100change
  34. insinto "/usr/share/${PN}"
  35. doins lexmarkback lexmarkchange
  36. newdoc README README.maint
  37. }