/[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 - (show annotations) (download)
Sat May 5 07:00:24 2012 UTC (23 months, 2 weeks 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 # Copyright 1999-2012 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.7 2012/01/18 19:18:59 jer 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 virtual/pkgconfig
23 nls? ( sys-devel/gettext )"
24
25 S=${WORKDIR}/${P/_/}
26
27 src_prepare() {
28 epatch \
29 "${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 "${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 -lm:' src/Makefile.{am,in} || die
40 #Bug 325879
41 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
42 }
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