/[gentoo-x86]/app-cdr/nero/nero-4.0.0.0b.ebuild
Gentoo

Contents of /app-cdr/nero/nero-4.0.0.0b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jun 26 11:34:53 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +15 -11 lines
Install desktop entry for neroexpress wrt #409035. Use linux-info.eclass instead of linux-mod.eclass for CONFIG_CHECK wrt #423457.

(Portage version: 2.2.0_alpha111/cvs/Linux x86_64)

1 ssuominen 1.3 # Copyright 1999-2012 Gentoo Foundation
2 xarthisius 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/app-cdr/nero/nero-4.0.0.0b.ebuild,v 1.2 2011/12/02 20:30:00 ssuominen Exp $
4 xarthisius 1.1
5     EAPI=4
6 ssuominen 1.3 inherit eutils fdo-mime rpm multilib gnome2-utils linux-info
7 xarthisius 1.1
8     DESCRIPTION="Nero Burning ROM for Linux"
9     HOMEPAGE="http://nerolinux.nero.com"
10     SRC_URI="x86? ( mirror://${PN}/${PN}linux-${PV}-x86.rpm )
11     amd64? ( mirror://${PN}/${PN}linux-${PV}-x86_64.rpm )"
12    
13     LICENSE="Nero-EULA-US"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="doc"
17    
18 ssuominen 1.3 RESTRICT="strip mirror test"
19    
20     RDEPEND="x11-libs/gtk+:2
21 xarthisius 1.1 x11-libs/libX11
22 ssuominen 1.3 x11-libs/libXinerama
23     x11-libs/pango[X]"
24 xarthisius 1.1 DEPEND=""
25    
26     QA_TEXTRELS="opt/${PN}/$(get_libdir)/${PN}/*
27     opt/${PN}/$(get_libdir)/libNeroAPI.so"
28     QA_EXECSTACK="opt/${PN}/$(get_libdir)/nero/*"
29     QA_PREBUILT="opt/${PN}/${PN}.*
30     opt/${PN}/${PN}
31     opt/${PN}/$(get_libdir)/.*so
32     opt/${PN}/$(get_libdir)/${PN}/*
33     opt/${PN}/$(get_libdir)/${PN}/plug-ins/*
34     usr/share/${PN}/helpers/splash/nerosplash"
35    
36     S=${WORKDIR}
37    
38 ssuominen 1.3 pkg_setup() {
39     CONFIG_CHECK="~CHR_DEV_SG"
40     linux-info_pkg_setup
41     }
42    
43 xarthisius 1.1 src_install() {
44     insinto /etc
45     doins -r etc/nero
46    
47     insinto /opt/nero
48     doins -r usr/$(get_libdir)
49     dosym /opt/nero/$(get_libdir)/nero /usr/$(get_libdir)/nero
50    
51     exeinto /opt/nero
52     doexe usr/bin/nero*
53    
54     insinto /usr/share
55     doins -r usr/share/nero usr/share/locale usr/share/icons
56    
57 ssuominen 1.3 domenu usr/share/applications/*.desktop
58 xarthisius 1.1 doicon usr/share/pixmaps/nerolinux.xpm
59 ssuominen 1.3
60 xarthisius 1.1 doman usr/share/man/man1/*
61     use doc && dodoc usr/share/doc/nero/*.pdf
62    
63     make_wrapper nero ./nero /opt/nero /opt/${PN}/$(get_libdir)
64     make_wrapper nerocmd ./nerocmd /opt/nero /opt/nero/$(get_libdir)
65     make_wrapper neroexpress ./neroexpress /opt/nero /opt/nero/$(get_libdir)
66    
67     # This is a ugly hack to fix burning in x86_64.
68     # http://club.cdfreaks.com/showthread.php?t=218041
69     use amd64 && cp usr/share/nero/Nero*.txt "${D}"/opt/nero/$(get_libdir)/nero
70     }
71    
72     pkg_preinst() {
73     gnome2_icon_savelist
74     }
75    
76     pkg_postinst() {
77     fdo-mime_desktop_database_update
78     fdo-mime_mime_database_update
79     gnome2_icon_cache_update
80     nero --perform-post-installation
81    
82     elog "Technical support for NeroLINUX is provided by CDFreaks"
83     elog "Linux forum at http://club.cdfreaks.com/forumdisplay.php?f=104"
84     elog
85     elog "You also need to setup your user to cdrom group."
86     }
87    
88     pkg_postrm() {
89     fdo-mime_desktop_database_update
90     fdo-mime_mime_database_update
91     gnome2_icon_cache_update
92     }

  ViewVC Help
Powered by ViewVC 1.1.20