gtklp-1.3.1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils
  5. DESCRIPTION="A GUI for cupsd"
  6. HOMEPAGE="http://gtklp.sirtobi.com/"
  7. SRC_URI="mirror://sourceforge/gtklp/${P}.src.tar.gz
  8. mirror://sourceforge/gtklp/logo.xpm.gz -> gtklp-logo.xpm.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ppc ~sparc x86"
  12. IUSE="nls ssl"
  13. RDEPEND="x11-libs/gtk+:2
  14. net-print/cups
  15. nls? ( sys-devel/gettext )
  16. ssl? ( dev-libs/openssl:0= )"
  17. DEPEND="${RDEPEND}
  18. virtual/pkgconfig"
  19. DOCS="AUTHORS BUGS ChangeLog README TODO USAGE"
  20. PATCHES=( "${FILESDIR}/${P}-formatsec.patch" )
  21. src_prepare() {
  22. default
  23. sed -e '/DEF_BROWSER_CMD/{s:netscape:firefox:}' \
  24. -e '/DEF_HELP_HOME/{s:631/sum.html#STANDARD_OPTIONS:631/help/:}' \
  25. -i include/defaults.h || die
  26. eautoreconf
  27. }
  28. src_configure() {
  29. econf \
  30. $(use_enable nls) \
  31. $(use_enable ssl) \
  32. --enable-forte #369003
  33. }
  34. src_install () {
  35. default
  36. doicon "${WORKDIR}"/gtklp-logo.xpm
  37. make_desktop_entry 'gtklp -i' "Print files via CUPS" gtklp-logo 'System;HardwareSettings;Settings;Printing'
  38. make_desktop_entry gtklpq "CUPS queue manager" gtklp-logo 'System;HardwareSettings;Settings;Printing'
  39. }