Gentoo Linux Overlay
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

110 行
2.5KB

  1. # Copyright 1999-2018 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils gnome2-utils linux-info rpm xdg-utils
  5. DESCRIPTION="Nero Burning ROM for Linux"
  6. HOMEPAGE="http://nerolinux.nero.com"
  7. SRC_URI="
  8. x86? ( ${PN}linux-${PV}-x86.rpm )
  9. amd64? ( ${PN}/${PN}linux-${PV}-x86_64.rpm )"
  10. LICENSE="Nero-EULA-US"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE="doc"
  14. RESTRICT="strip mirror test fetch"
  15. RDEPEND="
  16. x11-libs/gtk+:2
  17. x11-libs/libX11
  18. x11-libs/libXinerama
  19. x11-libs/pango[X]"
  20. DEPEND=""
  21. S="${WORKDIR}"
  22. PATCHES=( "${FILESDIR}"/${P}-qa-desktop-files.patch )
  23. pkg_nofetch() {
  24. local nero_arch
  25. use amd64 && nero_arch=64
  26. use x86 && ner_arch=32
  27. einfo "Please visit https://www.nero.com/enu/downloads/previous-versions/download-linux4-update.php"
  28. einfo " and use the 'RPM package ${nero_arch} bit' download then place ${A}"
  29. einfo " into ${DISTDIR}"
  30. }
  31. pkg_setup() {
  32. QA_TEXTRELS="opt/${PN}/$(get_libdir)/${PN}/*
  33. opt/${PN}/$(get_libdir)/libNeroAPI.so"
  34. QA_EXECSTACK="opt/${PN}/$(get_libdir)/nero/*"
  35. QA_PREBUILT="opt/${PN}/${PN}.*
  36. opt/${PN}/${PN}
  37. opt/${PN}/$(get_libdir)/.*so
  38. opt/${PN}/$(get_libdir)/${PN}/*
  39. opt/${PN}/$(get_libdir)/${PN}/plug-ins/*
  40. usr/share/${PN}/helpers/splash/nerosplash"
  41. CONFIG_CHECK="~CHR_DEV_SG"
  42. linux-info_pkg_setup
  43. }
  44. src_install() {
  45. insinto /etc
  46. doins -r etc/nero
  47. insinto /etc/modules-load.d
  48. doins ${FILESDIR}/nero.conf
  49. insinto /opt/nero
  50. doins -r usr/$(get_libdir)
  51. dosym /opt/nero/$(get_libdir)/nero /usr/$(get_libdir)/nero
  52. exeinto /opt/nero
  53. doexe usr/bin/nero*
  54. insinto /usr/share
  55. doins -r usr/share/nero usr/share/locale usr/share/icons
  56. domenu usr/share/applications/*.desktop
  57. doicon usr/share/pixmaps/nerolinux.xpm
  58. doman usr/share/man/man1/*
  59. use doc && local DOCS+=( usr/share/doc/nero/*.pdf )
  60. einstalldocs
  61. make_wrapper nero ./nero /opt/nero /opt/${PN}/$(get_libdir)
  62. make_wrapper nerocmd ./nerocmd /opt/nero /opt/nero/$(get_libdir)
  63. make_wrapper neroexpress ./neroexpress /opt/nero /opt/nero/$(get_libdir)
  64. # This is a ugly hack to fix burning in x86_64
  65. # http://club.cdfreaks.com/showthread.php?t=218041
  66. if use amd64; then
  67. cp usr/share/nero/Nero*.txt "${ED%/}"/opt/nero/$(get_libdir)/nero || die
  68. fi
  69. }
  70. pkg_preinst() {
  71. gnome2_icon_savelist
  72. }
  73. pkg_postinst() {
  74. xdg_desktop_database_update
  75. xdg_mimeinfo_database_update
  76. gnome2_icon_cache_update
  77. nero --perform-post-installation || die
  78. }
  79. pkg_postrm() {
  80. xdg_desktop_database_update
  81. xdg_mimeinfo_database_update
  82. gnome2_icon_cache_update
  83. }