/[gentoo-x86]/app-cdr/k3b/k3b-0.11.20.ebuild
Gentoo

Contents of /app-cdr/k3b/k3b-0.11.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Apr 15 19:43:36 2005 UTC (9 years, 8 months ago) by carlo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
corrected transcode patch, clean up
(Portage version: 2.0.51.19)

1 carlo 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 carlo 1.5 # $Header: /var/cvsroot/gentoo-x86/app-cdr/k3b/k3b-0.11.20.ebuild,v 1.4 2005/04/08 09:46:54 greg_g Exp $
4 carlo 1.1
5     inherit kde eutils
6    
7     DESCRIPTION="K3b, KDE CD Writing Software"
8     HOMEPAGE="http://www.k3b.org/"
9     SRC_URI="mirror://sourceforge/k3b/${P}.tar.bz2"
10    
11     LICENSE="GPL-2"
12     KEYWORDS="~x86 ~ppc ~sparc ~amd64"
13     IUSE="arts dvdr encode flac kde mad oggvorbis"
14    
15     DEPEND="arts? ( kde-base/arts )
16     kde? ( || ( kde-base/kdesu kde-base/kdebase ) )
17     media-libs/libsamplerate
18     >=media-sound/cdparanoia-3.9.8
19     >=media-libs/id3lib-3.8.0_pre2
20 greg_g 1.2 flac? ( <media-libs/flac-1.1.2 )
21 carlo 1.1 mad? ( media-libs/libmad )
22     oggvorbis? ( media-libs/libvorbis )"
23     RDEPEND="${DEPEND}
24     virtual/cdrtools
25     >=app-cdr/cdrdao-1.1.7-r3
26     media-sound/normalize
27     dvdr? ( app-cdr/dvd+rw-tools )
28     encode? ( media-sound/lame
29     media-sound/sox
30     !amd64? ( <media-video/transcode-0.6.12 )
31     media-video/vcdimager )"
32    
33     need-kde 3.1
34    
35     I18N="${PN}-i18n-${PV%.*}"
36    
37     # These are the languages and translated documentation supported by k3b for
38     # version 0.11.x. If you are using this ebuild as a model for another ebuild
39     # for another version of K3b, DO check whether these values are different.
40     # Check the {po,doc}/Makefile.am files in k3b-i18n package.
41     LANGS="ar bg bs ca cs da de el en_GB es et fi fo fr gl hu it ja nb nl nso pl pt pt_BR ro ru sk sl sr sv ta tr ven xh xx zh_CN zh_TW zu"
42 greg_g 1.4 LANGS_DOC="da de es et fr pt ru sv"
43 carlo 1.1
44     MAKE_PO=$(echo "${LINGUAS} ${LANGS}" | fmt -w 1 | sort | uniq -d | fmt -w 10000)
45     MAKE_DOC=$(echo "${LINGUAS} ${LANGS_DOC}" | fmt -w 1 | sort | uniq -d | fmt -w 10000)
46    
47     for X in $LANGS; do
48     SRC_URI="${SRC_URI} linguas_${X}? ( mirror://sourceforge/k3b/${I18N}.tar.bz2 )"
49     done
50    
51     src_unpack() {
52     kde_src_unpack
53     epatch ${FILESDIR}/k3b-0.11.17-noarts.patch
54    
55     make -f admin/Makefile.common || die
56     }
57    
58     src_compile() {
59     local _S=${S}
60     local myconf="--enable-libsuffix= $(use_with kde k3bsetup) \
61     --with-external-libsamplerate"
62    
63 greg_g 1.3 # it is important to disable flac for bug #82558.
64     use flac || export ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single="no"
65    
66 carlo 1.1 # Build process of K3B
67     kde_src_compile
68    
69     # Build process of K3B-i18n, select LINGUAS elements
70     S=${WORKDIR}/${I18N}
71     if [ -n "${LINGUAS}" -a -d "${S}" ] ; then
72     sed -i -e "s:^SUBDIRS = .*:SUBDIRS = ${MAKE_PO}:" ${S}/po/Makefile.in
73     sed -i -e "s:^SUBDIRS = .*:SUBDIRS = ${MAKE_DOC}:" ${S}/doc/Makefile.in
74     kde_src_compile
75     fi
76     S=${_S}
77     }
78    
79     src_install() {
80     make DESTDIR=${D} install || die
81    
82     dodoc AUTHORS ChangeLog FAQ README TODO
83    
84     if [ -n "${LINGUAS}" -a -d "${WORKDIR}/${I18N}" ]; then
85     cd ${WORKDIR}/${I18N}
86     make DESTDIR=${D} install || die
87     fi
88    
89     # install menu entry and icon
90     dodir /usr/share/applications
91     mv ${D}/usr/share/applnk/Multimedia/k3b.desktop ${D}/usr/share/applications
92     if use kde; then
93     mv ${D}/usr/share/applnk/Settings/System/k3bsetup2.desktop ${D}/usr/share/applications
94     fi
95     rm -fR ${D}/usr/share/applnk/
96     dodir /usr/share/pixmaps
97     cp ${D}/usr/share/icons/crystalsvg/32x32/apps/k3b.png ${D}/usr/share/pixmaps/
98     }
99    
100     pkg_postinst() {
101     echo
102     einfo "Make sure you have proper read/write permissions on the cdrom device(s)."
103     einfo "Usually, it is sufficient to be in the cdrom or cdrw group."
104     echo
105     }

  ViewVC Help
Powered by ViewVC 1.1.20