/[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 - (show annotations) (download)
Fri Dec 21 00:51:54 2012 UTC (15 months, 4 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 # 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.9 2012/10/28 22:06:24 hasufell Exp $
4
5 EAPI=3
6 inherit autotools 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="
18 media-libs/libpng:0
19 virtual/jpeg
20 x11-libs/gtk+:2
21 exif? ( media-gfx/exiv2 )"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig
24 nls? ( sys-devel/gettext )"
25
26 S=${WORKDIR}/${P/_/}
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-4.diff \
31 "${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 "${FILESDIR}"/${P}-fix-segfault-comment.patch \
36 "${FILESDIR}"/${P}-libpng15.patch \
37 "${FILESDIR}"/${P}-underlinking.patch \
38 "${FILESDIR}"/${P}-autoconf.patch
39
40 # $X_LIBS fails to bring in -lX11 and the build fails with undefined
41 # references with strict linker
42 sed -i -e 's:view_LDADD =:view_LDADD = -lX11 -lm:' src/Makefile.{am,in} || die
43 #Bug 325879
44 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
45
46 intltoolize --force --copy --automake || die "intltoolize failed"
47 eautoreconf
48 }
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