/[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.2 - (show annotations) (download)
Mon Mar 28 16:49:16 2011 UTC (3 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.1: +2 -3 lines
Fixed gtk+ dep

(Portage version: 2.2.0_alpha29/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-r2.ebuild,v 1.1 2011/02/25 19:53:46 signals Exp $
4
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 x11-libs/gtk+:2"
21 DEPEND="${RDEPEND}
22 dev-util/pkgconfig
23 nls? ( sys-devel/gettext )"
24
25 S=${WORKDIR}/${P/_/}
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-4.diff \
29 "${FILESDIR}"/traypatch.diff \
30 "${FILESDIR}"/${P}-desktop-entry.patch \
31 "${FILESDIR}"/${P}-new-gtk-object-system.diff \
32 "${FILESDIR}"/${P}-fix-array-boundaries.patch \
33 "${FILESDIR}"/${P}-fix-segfault-comment.patch
34 #Bug 325879
35 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
36 }
37
38 src_configure() {
39 tc-export CC
40 econf \
41 --with-gtk2 \
42 $(use_enable exif) \
43 $(use_enable nls)
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" desktopdir="/usr/share/applications" \
48 install || die "emake install failed."
49 dodoc AUTHORS NEWS README
50 }

  ViewVC Help
Powered by ViewVC 1.1.20