/[gentoo-x86]/net-im/amsn/amsn-0.98.9.ebuild
Gentoo

Contents of /net-im/amsn/amsn-0.98.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jul 8 22:04:36 2012 UTC (2 years, 3 months ago) by xmw
Branch: MAIN
Changes since 1.6: +2 -2 lines
ppc stable (bug 415861)

(Portage version: 2.1.11.5/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.98.9.ebuild,v 1.6 2012/05/29 14:31:36 tester Exp $
4
5 EAPI=4
6 inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs
7
8 MY_P=${P/_rc/RC}
9
10 DESCRIPTION="aMSN Messenger client"
11 SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}-src.tar.bz2"
12 HOMEPAGE="http://www.amsn-project.net"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 hppa ppc -sparc x86"
17 IUSE="debug"
18
19 DEPEND=">=dev-lang/tcl-8.4
20 >=dev-lang/tk-8.4
21 virtual/jpeg
22 media-libs/libpng
23 >=dev-tcltk/snack-2.2.10
24 >=net-libs/gupnp-igd-0.1.3
25 media-libs/libv4l
26 media-libs/imlib"
27 # >=net-libs/farsight2-0.0.14
28 # >=media-libs/gstreamer-0.10.23
29 # >=media-libs/gst-plugins-base-0.10.23
30
31 RDEPEND="${DEPEND}
32 >=dev-tcltk/tls-1.5
33 virtual/ffmpeg[encode]"
34 # >=media-libs/gst-plugins-good-0.10.15
35 # >=media-libs/gst-plugins-bad-0.10.13
36 # >=media-plugins/gst-plugins-ffmpeg-0.10.7
37
38 # The tests are interactive
39 RESTRICT="test"
40
41 S=${WORKDIR}/${MY_P}
42
43 DOCS=( AGREEMENT TODO README FAQ CREDITS )
44
45 src_prepare() {
46 epatch \
47 "${FILESDIR}"/${PN}-0.98-noautoupdate.patch \
48 "${FILESDIR}"/${PN}-0.98.4-v4l2.patch \
49 "${FILESDIR}"/${PN}-0.98.4-amsnplus-ldflags.patch \
50 "${FILESDIR}"/${PN}-0.98.9-no-rebuild-on-install.patch
51
52 # only portage should strip files, bug 285682
53 sed -i -e "s/LDFLAGS += -s/LDFLAGS += /" Makefile.in || die "sed failed"
54 # Ships with a 32-bit binary, we want to rebuild it
55 rm -f plugins/amsnplus/snapshot || die
56 eautoreconf
57 }
58
59 src_configure() {
60 tc-export CC
61 econf $(use_enable debug)
62 }
63
64 src_compile() {
65 # Custom build system, parallel make fails
66 emake
67 emake -C plugins/amsnplus
68 }
69
70 src_install() {
71 # Can't use default because make install isn't parallel friendly
72 emake -j1 DESTDIR="${D}" install
73 dodoc "${DOCS[@]}"
74
75 domenu amsn.desktop
76 sed -i -e s:.png:: "${D}"/usr/share/applications/amsn.desktop || die
77
78 pushd desktop-icons
79 local res
80 for res in 22 32 48 64 72 96 128; do
81 insinto /usr/share/icons/hicolor/${res}x${res}/apps
82 doins ${res}x${res}/apps/amsn.png
83 done
84 popd
85 }
86
87 pkg_preinst() {
88 gnome2_icon_savelist
89 }
90
91 pkg_postinst() {
92 fdo-mime_desktop_database_update
93 gnome2_icon_cache_update
94 }
95
96 pkg_postrm() {
97 fdo-mime_desktop_database_update
98 gnome2_icon_cache_update
99 }

  ViewVC Help
Powered by ViewVC 1.1.20