/[gentoo-x86]/media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild
Gentoo

Contents of /media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Aug 8 17:15:56 2011 UTC (2 years, 11 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +11 -5 lines
Fix building with libpng15 wrt #378173 by Diego Elio Pettenò. Make compatible with the gold linker.

(Portage version: 2.2.0_alpha50/cvs/Linux x86_64)

1 signals 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild,v 1.2 2011/03/28 16:49:16 angelos Exp $
4 signals 1.1
5     EAPI=3
6     inherit eutils toolchain-funcs
7    
8     DESCRIPTION="Image viewer/manager with optional support for MPEG movies."
9     HOMEPAGE="http://pornview.sourceforge.net"
10     SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~amd64 -hppa ~ppc ~x86"
15     IUSE="exif nls"
16    
17     RDEPEND="media-libs/libpng
18     virtual/jpeg
19     exif? ( media-gfx/exiv2 )
20 angelos 1.2 x11-libs/gtk+:2"
21 signals 1.1 DEPEND="${RDEPEND}
22     dev-util/pkgconfig
23     nls? ( sys-devel/gettext )"
24    
25     S=${WORKDIR}/${P/_/}
26    
27     src_prepare() {
28 ssuominen 1.3 epatch \
29     "${FILESDIR}"/${P}-4.diff \
30 signals 1.1 "${FILESDIR}"/traypatch.diff \
31     "${FILESDIR}"/${P}-desktop-entry.patch \
32     "${FILESDIR}"/${P}-new-gtk-object-system.diff \
33     "${FILESDIR}"/${P}-fix-array-boundaries.patch \
34 ssuominen 1.3 "${FILESDIR}"/${P}-fix-segfault-comment.patch \
35     "${FILESDIR}"/${P}-libpng15.patch
36    
37     # $X_LIBS fails to bring in -lX11 and the build fails with undefined
38     # references with strict linker
39     sed -i -e 's:view_LDADD =:view_LDADD = -lX11:' src/Makefile.{am,in} || die
40     #Bug 325879
41     sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
42 signals 1.1 }
43    
44     src_configure() {
45     tc-export CC
46     econf \
47     --with-gtk2 \
48     $(use_enable exif) \
49     $(use_enable nls)
50     }
51    
52     src_install() {
53     emake DESTDIR="${D}" desktopdir="/usr/share/applications" \
54     install || die "emake install failed."
55     dodoc AUTHORS NEWS README
56     }

  ViewVC Help
Powered by ViewVC 1.1.20