瀏覽代碼

Add Nero for Linux.

master
Rafal Kupiec 11 月之前
父節點
當前提交
fa43e06a8b
簽署人: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4
共有 2 個文件被更改,包括 111 次插入0 次删除
  1. +2
    -0
      app-cdr/nero/Manifest
  2. +109
    -0
      app-cdr/nero/nero-4.0.0.0b-r3.ebuild

+ 2
- 0
app-cdr/nero/Manifest 查看文件

@@ -0,0 +1,2 @@
DIST nerolinux-4.0.0.0b-x86.rpm 17391650 BLAKE2B 4d78b4fa09ba45709af0ff87dea28cf24e1d04f8dee2fab1432215ee0707e398f9564c05f5f6999da912ff1e163d08687c8db99498a0c90e469a524684543759 SHA512 2168f87d329054803b6ac33f671aeaee59f5b9e22fb07c23347ae519d63fc4547db9d6e535f58468f2fba4ac274399f934a34d828892ae93e75cf2c2b46d44c7
DIST nerolinux-4.0.0.0b-x86_64.rpm 17559298 BLAKE2B 5e7cc99c4710bcafbc9b6eebfa7b5670534a4f6b4011d3ff756fc936375b7ef6a466c474f3065516a09455b8bf35b8f3db145aedca497293e2915a53ef2dbae5 SHA512 0e5d6c1c9f99b6c149a72f544c6ec7608e9ded4c0d31a7754785a0d16fb3ad77d9d82cc210617104ac6dc2470b3df778cdf132be86a0591813e7a867d3c75a51

+ 109
- 0
app-cdr/nero/nero-4.0.0.0b-r3.ebuild 查看文件

@@ -0,0 +1,109 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit eutils gnome2-utils linux-info rpm xdg-utils

DESCRIPTION="Nero Burning ROM for Linux"
HOMEPAGE="http://nerolinux.nero.com"
SRC_URI="
x86? ( ${PN}linux-${PV}-x86.rpm )
amd64? ( ${PN}/${PN}linux-${PV}-x86_64.rpm )"

LICENSE="Nero-EULA-US"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"

RESTRICT="strip mirror test fetch"

RDEPEND="
x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXinerama
x11-libs/pango[X]"
DEPEND=""

S="${WORKDIR}"

PATCHES=( "${FILESDIR}"/${P}-qa-desktop-files.patch )

pkg_nofetch() {
local nero_arch
use amd64 && nero_arch=64
use x86 && ner_arch=32

einfo "Please visit https://www.nero.com/enu/downloads/previous-versions/download-linux4-update.php"
einfo " and use the 'RPM package ${nero_arch} bit' download then place ${A}"
einfo " into ${DISTDIR}"
}

pkg_setup() {
QA_TEXTRELS="opt/${PN}/$(get_libdir)/${PN}/*
opt/${PN}/$(get_libdir)/libNeroAPI.so"
QA_EXECSTACK="opt/${PN}/$(get_libdir)/nero/*"
QA_PREBUILT="opt/${PN}/${PN}.*
opt/${PN}/${PN}
opt/${PN}/$(get_libdir)/.*so
opt/${PN}/$(get_libdir)/${PN}/*
opt/${PN}/$(get_libdir)/${PN}/plug-ins/*
usr/share/${PN}/helpers/splash/nerosplash"

CONFIG_CHECK="~CHR_DEV_SG"
linux-info_pkg_setup
}

src_install() {
insinto /etc
doins -r etc/nero

insinto /etc/modules-load.d
doins ${FILESDIR}/nero.conf

insinto /opt/nero
doins -r usr/$(get_libdir)
dosym /opt/nero/$(get_libdir)/nero /usr/$(get_libdir)/nero

exeinto /opt/nero
doexe usr/bin/nero*

insinto /usr/share
doins -r usr/share/nero usr/share/locale usr/share/icons

domenu usr/share/applications/*.desktop
doicon usr/share/pixmaps/nerolinux.xpm

doman usr/share/man/man1/*

use doc && local DOCS+=( usr/share/doc/nero/*.pdf )
einstalldocs

make_wrapper nero ./nero /opt/nero /opt/${PN}/$(get_libdir)
make_wrapper nerocmd ./nerocmd /opt/nero /opt/nero/$(get_libdir)
make_wrapper neroexpress ./neroexpress /opt/nero /opt/nero/$(get_libdir)

# This is a ugly hack to fix burning in x86_64
# http://club.cdfreaks.com/showthread.php?t=218041
if use amd64; then
cp usr/share/nero/Nero*.txt "${ED%/}"/opt/nero/$(get_libdir)/nero || die
fi
}

pkg_preinst() {
gnome2_icon_savelist
}

pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update

nero --perform-post-installation || die
}

pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}

Loading…
取消
儲存