Lines 1-9
Link Here
|
1 |
# Copyright 1999-2019 Gentoo Authors |
1 |
# Copyright 1999-2020 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=6 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit gnome2-utils eutils perl-module git-r3 |
6 |
inherit desktop eutils perl-module git-r3 |
7 |
|
7 |
|
8 |
DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer" |
8 |
DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer" |
9 |
HOMEPAGE="https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html" |
9 |
HOMEPAGE="https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html" |
Lines 13-19
EGIT_REPO_URI="https://github.com/trizen/${PN}.git"
Link Here
|
13 |
LICENSE="|| ( Artistic GPL-1+ )" |
13 |
LICENSE="|| ( Artistic GPL-1+ )" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="" |
15 |
KEYWORDS="" |
16 |
IUSE="gtk" |
16 |
IUSE="gtk2" |
17 |
|
17 |
|
18 |
RDEPEND=" |
18 |
RDEPEND=" |
19 |
dev-perl/Data-Dump |
19 |
dev-perl/Data-Dump |
Lines 30-51
RDEPEND="
Link Here
|
30 |
virtual/perl-Term-ReadLine |
30 |
virtual/perl-Term-ReadLine |
31 |
virtual/perl-Text-ParseWords |
31 |
virtual/perl-Text-ParseWords |
32 |
virtual/perl-Text-Tabs+Wrap |
32 |
virtual/perl-Text-Tabs+Wrap |
33 |
gtk? ( |
33 |
gtk2? ( |
34 |
dev-perl/File-ShareDir |
34 |
dev-perl/File-ShareDir |
35 |
>=dev-perl/Gtk2-1.244.0 |
35 |
>=dev-perl/Gtk2-1.244.0 |
36 |
virtual/freedesktop-icon-theme |
36 |
virtual/freedesktop-icon-theme |
37 |
x11-libs/gdk-pixbuf:2[X,jpeg] |
37 |
x11-libs/gdk-pixbuf:2[X,jpeg] |
38 |
) |
38 |
) |
39 |
|| ( media-video/ffmpeg[openssl] media-video/ffmpeg[gnutls] ) |
39 |
|| ( media-video/ffmpeg[openssl] media-video/ffmpeg[gnutls] ) |
40 |
|| ( media-video/mpv media-video/mplayer media-video/vlc gtk? ( media-video/smplayer ) )" |
40 |
|| ( media-video/mpv media-video/mplayer media-video/vlc gtk2? ( media-video/smplayer ) )" |
41 |
DEPEND="dev-perl/Module-Build" |
41 |
DEPEND="dev-perl/Module-Build" |
42 |
|
42 |
|
43 |
SRC_TEST="do" |
43 |
SRC_TEST="do" |
44 |
|
44 |
|
45 |
src_configure() { |
45 |
src_configure() { |
46 |
local myconf |
46 |
local myconf |
47 |
if use gtk ; then |
47 |
if use gtk2 ; then |
48 |
myconf="--gtk-youtube-viewer" |
48 |
myconf="--gtk2" |
49 |
fi |
49 |
fi |
50 |
perl-module_src_configure |
50 |
perl-module_src_configure |
51 |
} |
51 |
} |
Lines 53-66
src_configure() {
Link Here
|
53 |
src_install() { |
53 |
src_install() { |
54 |
perl-module_src_install |
54 |
perl-module_src_install |
55 |
|
55 |
|
56 |
if use gtk ; then |
56 |
if use gtk2 ; then |
57 |
domenu share/gtk-youtube-viewer.desktop |
57 |
domenu share/gtk-youtube-viewer.desktop |
58 |
doicon share/icons/gtk-youtube-viewer.png |
58 |
doicon share/icons/gtk-youtube-viewer.png |
59 |
fi |
59 |
fi |
60 |
} |
60 |
} |
61 |
|
61 |
|
62 |
pkg_postinst() { |
62 |
pkg_postinst() { |
63 |
use gtk && gnome2_icon_cache_update |
63 |
use gtk2 && xdg_icon_cache_update |
64 |
elog "Optional dependencies:" |
64 |
elog "Optional dependencies:" |
65 |
optfeature "cache support" dev-perl/LWP-UserAgent-Cached |
65 |
optfeature "cache support" dev-perl/LWP-UserAgent-Cached |
66 |
optfeature "faster JSON to HASH conversion" dev-perl/JSON-XS |
66 |
optfeature "faster JSON to HASH conversion" dev-perl/JSON-XS |
Lines 74-78
pkg_postinst() {
Link Here
|
74 |
} |
74 |
} |
75 |
|
75 |
|
76 |
pkg_postrm() { |
76 |
pkg_postrm() { |
77 |
use gtk && gnome2_icon_cache_update |
77 |
use gtk2 && xdg_icon_cache_update |
78 |
} |
78 |
} |