foomatic-db-4.0.20170331.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit versionator
  5. DESCRIPTION="Printer information files for foomatic-db-engine to generate ppds"
  6. HOMEPAGE="http://www.linuxprinting.org/foomatic.html"
  7. SRC_URI="http://www.openprinting.org/download/foomatic/${PN}-$(replace_version_separator 2 -).tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
  11. IUSE=""
  12. DEPEND=""
  13. RDEPEND="
  14. net-print/foomatic-db-engine
  15. !net-print/foo2zjs[hp2600n]"
  16. S="${WORKDIR}/${PN}-$(get_version_component_range 3 ${PV})"
  17. src_prepare() {
  18. # ppd files do not belong to this package
  19. rm -r db/source/PPD || die
  20. }
  21. src_configure() {
  22. econf \
  23. --disable-gzip-ppds \
  24. --disable-ppds-to-cups
  25. }
  26. src_install() {
  27. default
  28. rmdir "${ED}"/usr/share/foomatic/db/source/PPD || die
  29. # Avoid collision with foo2zjs, bug 185486
  30. rm "${ED}"/usr/share/foomatic/db/source/{driver/foo2{hp,lava,xqx,zjs}.xml,printer/{Generic-ZjStream_Printer,HP-{Color_LaserJet_{1500,1600,2600n},LaserJet_{10{00,05,18,20,22},M1005_MFP}},Minolta-{Color_PageWorks_Pro_L,magicolor_2{20,30,43}0_DL},Samsung-CLP-{3,6}00}.xml} || die
  31. }