xcdroast-0.98_alpha16-r3.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit gnome2-utils
  5. DESCRIPTION="Lightweight cdrtools front-end for CD and DVD writing"
  6. HOMEPAGE="http://www.xcdroast.org/"
  7. SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc sparc x86"
  11. IUSE="nls suid"
  12. RDEPEND=">=x11-libs/gtk+-2:2
  13. app-cdr/cdrtools"
  14. DEPEND="${RDEPEND}
  15. sys-devel/gettext
  16. virtual/pkgconfig"
  17. S=${WORKDIR}/${P/_/}
  18. PATCHES=(
  19. "${FILESDIR}"/cdda2wav_version.patch
  20. "${FILESDIR}"/fix_cddb_hidden_tracks.patch
  21. "${FILESDIR}"/io_compile.patch
  22. "${FILESDIR}"/io_progressbar_fix.patch
  23. "${FILESDIR}"/suid-perms.patch
  24. "${FILESDIR}"/disable_version_check.patch
  25. "${FILESDIR}"/format-security.patch
  26. )
  27. src_prepare() {
  28. default
  29. # fix Norwegian locales
  30. mv po/{no,nb}.po || die
  31. mv po/{no,nb}.gmo || die
  32. sed -i -e 's/no/nb/' po/LINGUAS || die
  33. }
  34. src_configure() {
  35. econf \
  36. $(use_enable nls) \
  37. $(use_enable suid nonrootmode) \
  38. --enable-gtk2 \
  39. --disable-dependency-tracking \
  40. --mandir=/usr/share/man \
  41. --sysconfdir=/etc
  42. }
  43. src_compile() {
  44. emake PREFIX=/usr
  45. }
  46. src_install() {
  47. emake PREFIX=/usr DESTDIR="${D}" install
  48. dodoc -r AUTHORS ChangeLog README doc/*
  49. insinto /usr/share/icons/hicolor/48x48/apps
  50. newins xpms/xcdricon.xpm xcdroast.xpm
  51. make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
  52. }
  53. pkg_preinst() {
  54. gnome2_icon_savelist
  55. }
  56. pkg_postinst() {
  57. gnome2_icon_cache_update
  58. }
  59. pkg_postrm() {
  60. gnome2_icon_cache_update
  61. }