diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-07-12 02:27:06 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-07-12 02:27:06 +0000 |
commit | c7ae17d15b73b6e162fe88d1f365f0d7d1e6c851 (patch) | |
tree | 48c225f5938d2a38a85c47651ecd211633f05b27 /media-tv/mythtv | |
parent | replace sed hacks with configure provided libdir (diff) | |
download | gentoo-2-c7ae17d15b73b6e162fe88d1f365f0d7d1e6c851.tar.gz gentoo-2-c7ae17d15b73b6e162fe88d1f365f0d7d1e6c851.tar.bz2 gentoo-2-c7ae17d15b73b6e162fe88d1f365f0d7d1e6c851.zip |
Fix up .py, .sh, and .pl file installation. Based on work by Myk Taylor <myk002@yahoo.com>
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'media-tv/mythtv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 7 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild | 23 |
2 files changed, 17 insertions, 13 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 3f4aceb7b8a7..8de33b25355f 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-tv/mythtv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.361 2012/07/10 05:30:34 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.362 2012/07/12 02:27:06 cardoe Exp $ + + 11 Jul 2012; Doug Goldstein <cardoe@gentoo.org> + mythtv-0.25.1_p20120708.ebuild: + Fix up .py, .sh, and .pl file installation. Based on work by Myk Taylor + <myk002@yahoo.com> 09 Jul 2012; Doug Goldstein <cardoe@gentoo.org> mythtv-0.25.1_p20120708.ebuild: diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild index ee4dd2d5d309..9adc7259a589 100644 --- a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild +++ b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild,v 1.7 2012/07/10 05:30:34 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild,v 1.8 2012/07/12 02:27:06 cardoe Exp $ EAPI=4 @@ -229,10 +229,6 @@ src_configure() { ./configure ${myconf} || die "configure died" } -src_compile() { - emake || die "emake failed" -} - src_install() { emake INSTALL_ROOT="${D}" install || die "install failed" dodoc AUTHORS UPGRADING README @@ -250,8 +246,8 @@ src_install() { keepdir /var/log/mythtv chown -R mythtv "${ED}"/var/log/mythtv - insinto /etc/logrotate.d - newins "${FILESDIR}"/mythtv.logrotate.d-r1 mythtv + #insinto /etc/logrotate.d + #newins "${FILESDIR}"/mythtv.logrotate.d-r2 mythtv insinto /usr/share/mythtv/contrib doins -r contrib/* @@ -271,14 +267,17 @@ src_install() { fi # Make Python files executable and ensure they are executed by Python 2 - for file in `find "${ED}" -type f -name \*.py`; do - fperms 0755 "${file}" - python_convert_shebangs 2 "${file}" + find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do + if [[ ! "${file##*/}" = "__init__.py" ]]; then + chmod a+x "${file}" + python_convert_shebangs -q 2 "${file}" + fi done # Make shell & perl scripts executable - for file in `find "${ED}" -type f -name \*.sh -o -type f -name \*.pl`; do - fperms 0755 "${file}" + find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ + while read file; do + chmod a+x "${file}" done } |