/[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.10 - (hide annotations) (download)
Fri Dec 21 00:51:54 2012 UTC (23 months, 3 weeks ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

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 hasufell 1.10 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild,v 1.9 2012/10/28 22:06:24 hasufell Exp $
4 signals 1.1
5     EAPI=3
6 hasufell 1.9 inherit autotools eutils toolchain-funcs
7 signals 1.1
8 hasufell 1.9 DESCRIPTION="Image viewer/manager with optional support for MPEG movies"
9 signals 1.1 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 hasufell 1.9 RDEPEND="
18     media-libs/libpng:0
19 signals 1.1 virtual/jpeg
20 hasufell 1.9 x11-libs/gtk+:2
21     exif? ( media-gfx/exiv2 )"
22 signals 1.1 DEPEND="${RDEPEND}
23 jdhore 1.8 virtual/pkgconfig
24 signals 1.1 nls? ( sys-devel/gettext )"
25    
26     S=${WORKDIR}/${P/_/}
27    
28     src_prepare() {
29 ssuominen 1.3 epatch \
30     "${FILESDIR}"/${P}-4.diff \
31 signals 1.1 "${FILESDIR}"/traypatch.diff \
32     "${FILESDIR}"/${P}-desktop-entry.patch \
33     "${FILESDIR}"/${P}-new-gtk-object-system.diff \
34     "${FILESDIR}"/${P}-fix-array-boundaries.patch \
35 ssuominen 1.3 "${FILESDIR}"/${P}-fix-segfault-comment.patch \
36 hasufell 1.9 "${FILESDIR}"/${P}-libpng15.patch \
37     "${FILESDIR}"/${P}-underlinking.patch \
38     "${FILESDIR}"/${P}-autoconf.patch
39 ssuominen 1.3
40     # $X_LIBS fails to bring in -lX11 and the build fails with undefined
41     # references with strict linker
42 jer 1.7 sed -i -e 's:view_LDADD =:view_LDADD = -lX11 -lm:' src/Makefile.{am,in} || die
43 ssuominen 1.3 #Bug 325879
44     sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
45 hasufell 1.9
46     intltoolize --force --copy --automake || die "intltoolize failed"
47     eautoreconf
48 signals 1.1 }
49    
50     src_configure() {
51     tc-export CC
52     econf \
53     $(use_enable exif) \
54     $(use_enable nls)
55     }
56    
57     src_install() {
58     emake DESTDIR="${D}" desktopdir="/usr/share/applications" \
59     install || die "emake install failed."
60     dodoc AUTHORS NEWS README
61     }

  ViewVC Help
Powered by ViewVC 1.1.20