/[gentoo-x86]/media-video/2mandvd/2mandvd-1.7.3.ebuild
Gentoo

Contents of /media-video/2mandvd/2mandvd-1.7.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Aug 2 20:29:40 2012 UTC (3 years, 9 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
amd64/x86 stable wrt bug 429142. Remove old.

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/2mandvd/2mandvd-1.7.3.ebuild,v 1.3 2012/04/15 17:02:31 maekke Exp $
4
5 EAPI=4
6 LANGS="cs de en it ru"
7
8 inherit eutils qt4-r2
9
10 MY_PN="2ManDVD"
11
12 DESCRIPTION="The successor of ManDVD"
13 HOMEPAGE="http://kde-apps.org/content/show.php?content=99450"
14 SRC_URI="http://download.tuxfamily.org/${PN}/${MY_PN}-${PV}.tar.gz"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE="debug"
20
21 DEPEND="media-libs/libsdl
22 virtual/ffmpeg
23 virtual/glu
24 virtual/opengl
25 x11-libs/qt-core:4
26 x11-libs/qt-gui:4
27 x11-libs/qt-opengl:4
28 "
29 RDEPEND="${DEPEND}
30 || ( app-cdr/cdrkit app-cdr/cdrtools )
31 dev-lang/perl
32 media-fonts/dejavu
33 media-gfx/exif
34 media-libs/netpbm
35 media-sound/sox
36 media-video/dvdauthor
37 media-video/ffmpegthumbnailer
38 media-video/mjpegtools
39 media-video/mplayer[encode]
40 "
41
42 S=${WORKDIR}/${MY_PN}
43
44 PATCHES=(
45 "${FILESDIR}/${PN}-fix-const-char-concatenation.patch"
46 "${FILESDIR}/${P}-libav.patch"
47 )
48
49 src_prepare() {
50 # Cleaning old backup files
51 find . -name "*~" -delete || die
52
53 for file in *.cpp; do
54 # Fix path
55 sed -e "s:qApp->applicationDirPath().\?+.\?\":\"/usr/share/${PN}:g" -i "${file}" || die "sed failed"
56 sed -e "s:qApp->applicationDirPath():\"/usr/share/${PN}/\":g" -i "${file}" || die "sed failed"
57 done
58
59 # We'll make a newbin called ${PN} so we need to change references to the old "2ManDVD" (${MY_PN}).
60 # Sed is more flexible than a patch.
61 sed -e "s:openargument.right(${#MY_PN}) != \"${MY_PN}\":openargument.right(${#PN}) != \"${PN}\":" \
62 -e "s:openargument.right($(( ${#MY_PN} + 2 ))) != \"./${MY_PN}\":openargument.right($(( ${#PN} + 2 ))) != \"./${PN}\":" \
63 -i mainfrm.cpp || die "sed failed"
64
65 qt4-r2_src_prepare
66 }
67
68 src_install() {
69 insinto /usr/share/${PN}
70
71 # Data:
72 doins -r Bibliotheque
73 doins -r Interface
74
75 doins fake.pl
76
77 # Translations:
78 for lang in ${LINGUAS}; do
79 for x in ${LANGS}; do
80 [[ ${lang} == ${x} ]] && doins ${PN}_${x}.qm
81 done
82 done
83 [[ -z ${LINGUAS} ]] && doins ${PN}_en.qm
84
85 # Doc:
86 dodoc README.txt
87
88 # Bin and menu entry:
89 newbin 2ManDVD ${PN}
90 doicon Interface/mandvd.png
91 make_desktop_entry ${PN} ${MY_PN} mandvd "Qt;AudioVideo;Video"
92 }
93
94 pkg_postinst() {
95 elog "You may wish to install media-video/xine-ui and/or build"
96 elog "media-sound/sox with USE=mad for improved media handling support."
97 }

  ViewVC Help
Powered by ViewVC 1.1.20