1 |
commit: b5b50c406032fba9eec57eaac78b814774671dd5 |
2 |
Author: Wilson Michaels <thebitpit <AT> earthlink <DOT> net> |
3 |
AuthorDate: Mon Mar 2 18:57:57 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 3 14:53:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b50c40 |
7 |
|
8 |
media-tv/mythtv: Fix fail when USE = -python |
9 |
|
10 |
Closes: https://bugs.gentoo.org/711172 |
11 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
12 |
Signed-off-by: Wilson Michaels <thebitpit <AT> earthlink.net> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
media-tv/mythtv/mythtv-29.1-r2.ebuild | 3 ++- |
16 |
media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild | 4 ++-- |
17 |
2 files changed, 4 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/media-tv/mythtv/mythtv-29.1-r2.ebuild b/media-tv/mythtv/mythtv-29.1-r2.ebuild |
20 |
index c386ea2be4f..4f6a3c212b5 100644 |
21 |
--- a/media-tv/mythtv/mythtv-29.1-r2.ebuild |
22 |
+++ b/media-tv/mythtv/mythtv-29.1-r2.ebuild |
23 |
@@ -285,6 +285,7 @@ src_configure() { |
24 |
src_install() { |
25 |
emake STRIP="true" INSTALL_ROOT="${D}" install |
26 |
dodoc AUTHORS UPGRADING README |
27 |
+ use python && python_optimize # does all packages by default |
28 |
readme.gentoo_create_doc |
29 |
|
30 |
insinto /usr/share/mythtv/database |
31 |
@@ -336,7 +337,7 @@ src_install() { |
32 |
done |
33 |
|
34 |
# Ensure that Python scripts are executed by Python 2 |
35 |
- python_fix_shebang "${ED}/usr/share/mythtv" |
36 |
+ use python && python_fix_shebang "${ED}/usr/share/mythtv" |
37 |
|
38 |
# Make shell & perl scripts executable |
39 |
find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ |
40 |
|
41 |
diff --git a/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
42 |
index b09dc0235f9..67f54fca3c2 100644 |
43 |
--- a/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
44 |
+++ b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
45 |
@@ -357,7 +357,7 @@ src_configure() { |
46 |
|
47 |
src_install() { |
48 |
emake STRIP="true" INSTALL_ROOT="${D}" install |
49 |
- python_optimize # does all packages by default |
50 |
+ use python && python_optimize # does all packages by default |
51 |
dodoc AUTHORS UPGRADING README |
52 |
readme.gentoo_create_doc |
53 |
|
54 |
@@ -408,7 +408,7 @@ src_install() { |
55 |
-exec chmod a+x {} \; || die "Failed to make python file $(basename ${file}) executable" |
56 |
|
57 |
# Ensure that Python scripts are executed by Python 2 |
58 |
- python_fix_shebang "${ED}/usr/share/mythtv" |
59 |
+ use python && python_fix_shebang "${ED}/usr/share/mythtv" |
60 |
|
61 |
# Make shell & perl scripts executable |
62 |
find "${ED}" -type f \( -name '*.sh' -o -name '*.pl' \) -exec chmod a+x {} \; || die "Failed to make script executable" |