blob: 117c157199513d5f53d69a27fa1b5d82e9778b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/tsmuxer/tsmuxer-1.10.6-r1.ebuild,v 1.12 2014/06/18 20:30:35 mgorny Exp $
EAPI=5
inherit eutils base qt4-r2
DESCRIPTION="Utility to create and demux TS and M2TS files"
HOMEPAGE="http://www.smlabs.net/en/products/tsmuxer/"
SRC_URI="http://www.smlabs.net/tsMuxer/tsMuxeR_shared_${PV}.tar.gz
http://gentoo.sbriesen.de/distfiles/tsmuxer-icon.png"
LICENSE="SmartLabs"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt4 linguas_ru"
QA_FLAGS_IGNORED="opt/${PN}/bin/tsMuxeR opt/${PN}/bin/tsMuxerGUI"
DEPEND="|| (
>=app-arch/upx-ucl-3.01
>=app-arch/upx-bin-3.01
)"
RDEPEND="
x86? (
media-libs/freetype:2
qt4? (
dev-libs/glib:2
dev-qt/qtcore:4
dev-qt/qtgui:4
media-libs/fontconfig
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrender
)
)
amd64? (
|| (
>=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
)
qt4? (
|| (
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
(
>=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
>=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
>=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
>=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
)
)
|| (
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
(
>=dev-libs/glib-2.38.2-r1:2[abi_x86_32(-)]
>=media-libs/libpng-1.2.51:1.2[abi_x86_32(-)]
>=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
)
)
|| (
(
>=dev-qt/qtcore-4.8.5-r1:4[abi_x86_32(-)]
>=dev-qt/qtgui-4.8.5-r2:4[abi_x86_32(-)]
)
app-emulation/emul-linux-x86-qtlibs[-abi_x86_32(-)]
)
)
)"
# cli is linked to freetype, when it will be fixed,
# we will remove app-emulation/emul-linux-x86-xlibs dep.
S="${WORKDIR}"
src_prepare() {
upx -d tsMuxeR tsMuxerGUI || die
}
src_install() {
dodir /opt/bin
exeinto /opt/${PN}/bin
doexe tsMuxeR
dosym ../${PN}/bin/tsMuxeR /opt/bin/tsMuxeR
if use qt4; then
doexe tsMuxerGUI
dosym ../${PN}/bin/tsMuxerGUI /opt/bin/tsMuxerGUI
newicon "${DISTDIR}/${PN}-icon.png" "${PN}.png"
make_desktop_entry tsMuxerGUI "tsMuxeR GUI" "${PN}" "Qt;AudioVideo;Video"
fi
use linguas_ru && dodoc readme.rus.txt
}
|