From: | "Matthias Schwarzott (zzam)" <zzam@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-weatherng: vdr-weatherng-0.0.8_pre3-r1.ebuild ChangeLog |
Date: | Tue, 20 Jan 2009 15:39:41 |
Message-Id: | E1LPIhT-0003Jr-J4@stork.gentoo.org |
1 | zzam 09/01/20 15:39:35 |
2 | |
3 | Modified: ChangeLog |
4 | Added: vdr-weatherng-0.0.8_pre3-r1.ebuild |
5 | Log: |
6 | Fix bash script announcing itself as needing /bin/sh |
7 | (Portage version: 2.1.6.6/cvs/Linux 2.6.27-gentoo-r1 i686) |
8 | |
9 | Revision Changes Path |
10 | 1.24 media-plugins/vdr-weatherng/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog?rev=1.24&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog?rev=1.24&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog?r1=1.23&r2=1.24 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog,v |
19 | retrieving revision 1.23 |
20 | retrieving revision 1.24 |
21 | diff -u -r1.23 -r1.24 |
22 | --- ChangeLog 1 Aug 2008 19:59:04 -0000 1.23 |
23 | +++ ChangeLog 20 Jan 2009 15:39:35 -0000 1.24 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for media-plugins/vdr-weatherng |
26 | -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog,v 1.23 2008/08/01 19:59:04 cardoe Exp $ |
28 | +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-weatherng/ChangeLog,v 1.24 2009/01/20 15:39:35 zzam Exp $ |
30 | + |
31 | +*vdr-weatherng-0.0.8_pre3-r1 (20 Jan 2009) |
32 | + |
33 | + 20 Jan 2009; Matthias Schwarzott <zzam@g.o> |
34 | + +vdr-weatherng-0.0.8_pre3-r1.ebuild: |
35 | + Fix bash script announcing itself as needing /bin/sh |
36 | |
37 | 01 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml: |
38 | add GLEP 56 USE flag desc from use.local.desc |
39 | |
40 | |
41 | |
42 | 1.1 media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: vdr-weatherng-0.0.8_pre3-r1.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2009 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild,v 1.1 2009/01/20 15:39:35 zzam Exp $ |
52 | |
53 | inherit vdr-plugin eutils |
54 | |
55 | MY_PV="${PV/_/-}" |
56 | MY_P="${PN}-${MY_PV}" |
57 | |
58 | DESCRIPTION="VDR plugin: show weather for specified place" |
59 | HOMEPAGE="http://www.vdr.glaserei-franz.de/vdrplugins.htm" |
60 | SRC_URI="mirror://vdrfiles/${PN}/${MY_P}.tgz" |
61 | |
62 | LICENSE="GPL-2 stardock-images" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64 ~x86" |
65 | IUSE="dxr3" |
66 | |
67 | DEPEND="media-libs/imlib2 |
68 | >=media-video/vdr-1.3.34" |
69 | |
70 | S="${WORKDIR}/weatherng-${MY_PV}" |
71 | |
72 | VDR_CONFD_FILE="${FILESDIR}/confd-0.0.8" |
73 | VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.0.8.sh" |
74 | |
75 | PATCHES=("${FILESDIR}/${P}-i18n-fix.diff") |
76 | |
77 | pkg_setup() { |
78 | vdr-plugin_pkg_setup |
79 | |
80 | if ! built_with_use media-libs/imlib2 jpeg gif ; then |
81 | echo |
82 | eerror "Please recompile media-libs/imlib2 with" |
83 | eerror "USE=\"jpeg gif\"" |
84 | die "media-libs/imlib2 need jpeg and gif support" |
85 | fi |
86 | } |
87 | |
88 | src_unpack() { |
89 | vdr-plugin_src_unpack |
90 | cd "${S}" |
91 | |
92 | epatch "${FILESDIR}/${P}-gentoo.diff" |
93 | epatch "${FILESDIR}/${P}-timeout.diff" |
94 | epatch "${FILESDIR}/${P}-gcc43.patch" |
95 | |
96 | use dxr3 && epatch "${FILESDIR}/${P}-dxr3.diff" |
97 | |
98 | # /bin/sh is not necessaryly bash, so explicitly use /bin/bash |
99 | sed -e 's#/bin/sh#/bin/bash#' -i examples/weatherng.sh |
100 | } |
101 | |
102 | src_install() { |
103 | vdr-plugin_src_install |
104 | |
105 | insinto /usr/share/vdr/weatherng/images |
106 | doins "${S}"/images/*.png |
107 | |
108 | diropts -m0755 -ovdr -gvdr |
109 | dodir /var/vdr/${VDRPLUGIN} |
110 | |
111 | insinto /var/vdr/${VDRPLUGIN} |
112 | insopts -m755 -ovdr -gvdr |
113 | doins "${S}"/examples/weatherng.sh |
114 | } |
115 | |
116 | pkg_postinst() { |
117 | vdr-plugin_pkg_postinst |
118 | |
119 | echo |
120 | elog "To display the weather for your location" |
121 | elog "you have to find out its ID on weather.com" |
122 | elog |
123 | elog "Go to http://uk.weather.com/search/drilldown/ and search for your city (i.e. Herne)" |
124 | elog "in the list of results click on the right one and then look at its URL" |
125 | elog |
126 | elog "It contains a code for your city" |
127 | elog "For Herne this is GMXX0056" |
128 | elog |
129 | elog "Now you have to enter this code in /etc/conf.d/vdr.weatherng WEATHERNG_STATIONID(x)" |
130 | echo |
131 | } |