/[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.1 - (show annotations) (download)
Fri Feb 25 19:53:46 2011 UTC (3 years, 9 months ago) by signals
Branch: MAIN
Fix 325879. Drop mplayer use flag. Revbump

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/pornview-0.2.0_pre1-r1.ebuild,v 1.9 2011/02/25 19:16:17 scarabeus Exp $
4
5 EAPI=3
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Image viewer/manager with optional support for MPEG movies."
10 HOMEPAGE="http://pornview.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 -hppa ~ppc ~x86"
16 IUSE="exif nls"
17
18 RDEPEND="media-libs/libpng
19 virtual/jpeg
20 exif? ( media-gfx/exiv2 )
21 >=x11-libs/gtk+-2"
22 DEPEND="${RDEPEND}
23 dev-util/pkgconfig
24 nls? ( sys-devel/gettext )"
25
26 S=${WORKDIR}/${P/_/}
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-4.diff \
30 "${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 "${FILESDIR}"/${P}-fix-segfault-comment.patch
35 #Bug 325879
36 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
37 }
38
39 src_configure() {
40 tc-export CC
41 econf \
42 --with-gtk2 \
43 $(use_enable exif) \
44 $(use_enable nls)
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" desktopdir="/usr/share/applications" \
49 install || die "emake install failed."
50 dodoc AUTHORS NEWS README
51 }

  ViewVC Help
Powered by ViewVC 1.1.20