graveman-0.3.12_p5-r2.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils gnome2
  5. DESCRIPTION="Graphical frontend for cdrecord, mkisofs, readcd and sox using GTK+2"
  6. HOMEPAGE="http://graveman.tuxfamily.org/"
  7. SRC_URI="http://graveman.tuxfamily.org/sources/${PN}-${PV/_p/-}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc ppc64 sparc x86"
  11. IUSE="debug dvdr flac mp3 nls vorbis"
  12. RDEPEND="
  13. app-cdr/cdrdao
  14. >=dev-libs/glib-2.4:2
  15. >=gnome-base/libglade-2.4:2.0
  16. media-libs/libmng:=
  17. virtual/cdrtools
  18. x11-libs/gdk-pixbuf:2
  19. >=x11-libs/gtk+-2.4:2
  20. dvdr? ( app-cdr/dvd+rw-tools )
  21. flac? ( media-libs/flac )
  22. mp3? ( media-libs/libid3tag
  23. media-libs/libmad
  24. media-sound/sox )
  25. nls? ( virtual/libintl )
  26. vorbis? (
  27. media-libs/libogg
  28. media-libs/libvorbis
  29. media-sound/sox )
  30. "
  31. DEPEND="${RDEPEND}
  32. dev-util/intltool
  33. virtual/pkgconfig
  34. nls? ( sys-devel/gettext )
  35. "
  36. S="${WORKDIR}/${P/_p/-}"
  37. src_prepare() {
  38. eapply \
  39. "${FILESDIR}"/joliet-long.patch \
  40. "${FILESDIR}"/rename.patch \
  41. "${FILESDIR}"/desktop-entry.patch
  42. if use mp3 || use vorbis; then
  43. eapply "${FILESDIR}"/sox.patch
  44. fi
  45. # Fix tests
  46. echo glade/dialog_media.glade >> po/POTFILES.in
  47. echo glade/window_welcome.glade >> po/POTFILES.in
  48. echo src/flac.c >> po/POTFILES.in
  49. # Prevent m4_copy error when running aclocal
  50. # m4_copy: won't overwrite defined macro: glib_DEFUN, bug #579918
  51. rm m4/glib-gettext.m4 || die
  52. eautoreconf # Needed for build only the needed translations
  53. gnome2_src_prepare
  54. }
  55. src_configure() {
  56. gnome2_src_configure \
  57. $(use_enable debug) \
  58. $(use_enable flac) \
  59. $(use_enable mp3) \
  60. $(use_enable vorbis ogg)
  61. }