/[gentoo-x86]/media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild
Gentoo

Diff of /media-gfx/pornview/pornview-0.2.0_pre1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/Attic/pornview-0.2.0_pre1-r2.ebuild,v 1.8 2012/05/05 07:00:24 jdhore Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/Attic/pornview-0.2.0_pre1-r2.ebuild,v 1.9 2012/10/28 22:06:24 hasufell Exp $
4 4
5EAPI=3 5EAPI=3
6inherit eutils toolchain-funcs 6inherit autotools eutils toolchain-funcs
7 7
8DESCRIPTION="Image viewer/manager with optional support for MPEG movies." 8DESCRIPTION="Image viewer/manager with optional support for MPEG movies"
9HOMEPAGE="http://pornview.sourceforge.net" 9HOMEPAGE="http://pornview.sourceforge.net"
10SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz" 10SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
11 11
12LICENSE="GPL-2" 12LICENSE="GPL-2"
13SLOT="0" 13SLOT="0"
14KEYWORDS="amd64 -hppa ppc x86" 14KEYWORDS="amd64 -hppa ppc x86"
15IUSE="exif nls" 15IUSE="exif nls"
16 16
17RDEPEND="media-libs/libpng 17RDEPEND="
18 media-libs/libpng:0
18 virtual/jpeg 19 virtual/jpeg
20 x11-libs/gtk+:2
19 exif? ( media-gfx/exiv2 ) 21 exif? ( media-gfx/exiv2 )"
20 x11-libs/gtk+:2"
21DEPEND="${RDEPEND} 22DEPEND="${RDEPEND}
22 virtual/pkgconfig 23 virtual/pkgconfig
23 nls? ( sys-devel/gettext )" 24 nls? ( sys-devel/gettext )"
24 25
25S=${WORKDIR}/${P/_/} 26S=${WORKDIR}/${P/_/}
30 "${FILESDIR}"/traypatch.diff \ 31 "${FILESDIR}"/traypatch.diff \
31 "${FILESDIR}"/${P}-desktop-entry.patch \ 32 "${FILESDIR}"/${P}-desktop-entry.patch \
32 "${FILESDIR}"/${P}-new-gtk-object-system.diff \ 33 "${FILESDIR}"/${P}-new-gtk-object-system.diff \
33 "${FILESDIR}"/${P}-fix-array-boundaries.patch \ 34 "${FILESDIR}"/${P}-fix-array-boundaries.patch \
34 "${FILESDIR}"/${P}-fix-segfault-comment.patch \ 35 "${FILESDIR}"/${P}-fix-segfault-comment.patch \
35 "${FILESDIR}"/${P}-libpng15.patch 36 "${FILESDIR}"/${P}-libpng15.patch \
37 "${FILESDIR}"/${P}-underlinking.patch \
38 "${FILESDIR}"/${P}-autoconf.patch
36 39
37 # $X_LIBS fails to bring in -lX11 and the build fails with undefined 40 # $X_LIBS fails to bring in -lX11 and the build fails with undefined
38 # references with strict linker 41 # references with strict linker
39 sed -i -e 's:view_LDADD =:view_LDADD = -lX11 -lm:' src/Makefile.{am,in} || die 42 sed -i -e 's:view_LDADD =:view_LDADD = -lX11 -lm:' src/Makefile.{am,in} || die
40 #Bug 325879 43 #Bug 325879
41 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die 44 sed -i -e '1i #pragma GCC optimize ("O0")' src/comment.c || die
45
46 intltoolize --force --copy --automake || die "intltoolize failed"
47 eautoreconf
42} 48}
43 49
44src_configure() { 50src_configure() {
45 tc-export CC 51 tc-export CC
46 econf \ 52 econf \
47 --with-gtk2 \
48 $(use_enable exif) \ 53 $(use_enable exif) \
49 $(use_enable nls) 54 $(use_enable nls)
50} 55}
51 56
52src_install() { 57src_install() {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20