/[gentoo-x86]/x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild
Gentoo

Contents of /x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jul 25 19:11:11 2010 UTC (4 years, 3 months ago) by nirbheek
Branch: MAIN
Changes since 1.6: +3 -3 lines
Fix references for pkgmove from www-client/mozilla-firefox -> www-client/firefox
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmSpaceWeather/wmSpaceWeather-1.04_p19.ebuild,v 1.6 2008/03/22 16:45:46 coldwind Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 MY_PN="wmspaceweather"
8 MY_PV_ORIG="${PV/_p*}"
9 MY_PV_PATCH="${PV/_p/-}"
10 MY_P_ORIG="${MY_PN}_${MY_PV_ORIG}.orig"
11 MY_P_PATCH="${MY_PN}_${MY_PV_PATCH}.diff"
12
13 DESCRIPTION="dockapp showing weather at geosynchronous orbit."
14 HOMEPAGE="http://packages.debian.org/sid/wmspaceweather"
15 SRC_URI="mirror://debian/pool/main/w/${MY_PN}/${MY_P_ORIG}.tar.gz
16 mirror://debian/pool/main/w/${MY_PN}/${MY_P_PATCH}.gz"
17
18 SLOT="0"
19 LICENSE="GPL-2"
20 KEYWORDS="amd64 hppa ~mips ppc sparc x86"
21 IUSE=""
22
23 CDEPEND="x11-libs/libX11
24 x11-libs/libXext
25 x11-libs/libXpm"
26 DEPEND="${CDEPEND}
27 x11-proto/xproto
28 x11-proto/xextproto"
29 RDEPEND="${CDEPEND}
30 net-misc/curl
31 dev-lang/perl"
32
33 S="${WORKDIR}/${MY_P_ORIG/_/-}/${PN}"
34
35 src_unpack() {
36 unpack ${MY_P_ORIG}.tar.gz
37 epatch "${DISTDIR}"/${MY_P_PATCH}.gz
38
39 # need to apply patches from Debian first, do NOT change the order
40 cd "${S}"
41 mv ../debian/patches "${WORKDIR}"/patch
42 EPATCH_SUFFIX="dpatch" EPATCH_FORCE="yes" \
43 EPATCH_MULTI_MSG="Applying Debian patches ..." epatch
44 epatch "${FILESDIR}"/${P}-gentoo.patch
45 epatch "${FILESDIR}"/${P}-getkp.patch
46 }
47
48 src_compile() {
49 emake clean || die "make clean failed"
50 emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" || die "parallel make failed"
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install || die install failed
55 dodoc ../{BUGS,CHANGES,HINTS,README}
56 }
57
58 pkg_postinst() {
59 elog "You need to emerge www-client/firefox or www-client/firefox-bin"
60 elog "to use the -url functionality - see man ${PN} for more info."
61 elog
62 elog "This version uses curl instead of wget. You may edit /usr/share/wmspaceweather/GetKp"
63 elog "if you don't like it."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20