foomatic-db-ppds-4.0.20170331.ebuild 866 B

123456789101112131415161718192021222324252627282930
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils versionator
  5. MY_P=${PN/-ppds}-$(replace_version_separator 2 '-')
  6. DESCRIPTION="linuxprinting.org PPD files for postscript printers"
  7. HOMEPAGE="http://www.linuxprinting.org/foomatic.html"
  8. SRC_URI="http://linuxprinting.org/download/foomatic/${MY_P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
  12. IUSE=""
  13. S="${WORKDIR}/${PN/-ppds}-$(get_version_component_range 3 ${PV})"
  14. src_prepare() {
  15. epatch "${FILESDIR}/Makefile.in-4.0.20120117.patch"
  16. rm db/source/PPD/Kyocera/ReadMe.htm || die # bug #559008
  17. }
  18. src_install() {
  19. default
  20. rm -v "${ED}"/usr/share/foomatic/xmlschema/{driver,option,printer,types}.xsd || die "Cannot remove duplicates"
  21. }