/[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.8 - (hide annotations) (download)
Sat May 5 07:00:24 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
Changes since 1.7: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 jer 1.7 # Copyright 1999-2012 Gentoo Foundation
2 signals 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.8 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild,v 1.7 2012/01/18 19:18:59 jer 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 xarthisius 1.6 KEYWORDS="amd64 -hppa ppc x86"
15 signals 1.1 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 jdhore 1.8 virtual/pkgconfig
23 signals 1.1 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 jer 1.7 sed -i -e 's:view_LDADD =:view_LDADD = -lX11 -lm:' src/Makefile.{am,in} || die
40 ssuominen 1.3 #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