diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-08-05 17:17:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-08-05 17:17:41 +0000 |
commit | fa4ef949e0e17aabb8f06c66fd3b382aac7b0f8e (patch) | |
tree | 7b2b1f3e49269ba689fb61c3bb611c8b8790c4dc /media-gfx/xv | |
parent | Fix for bug #25879 (diff) | |
download | gentoo-2-fa4ef949e0e17aabb8f06c66fd3b382aac7b0f8e.tar.gz gentoo-2-fa4ef949e0e17aabb8f06c66fd3b382aac7b0f8e.tar.bz2 gentoo-2-fa4ef949e0e17aabb8f06c66fd3b382aac7b0f8e.zip |
epatch needs eutil
Diffstat (limited to 'media-gfx/xv')
-rw-r--r-- | media-gfx/xv/xv-3.10a-r2.ebuild | 35 | ||||
-rw-r--r-- | media-gfx/xv/xv-3.10a-r3.ebuild | 44 | ||||
-rw-r--r-- | media-gfx/xv/xv-3.10a-r4.ebuild | 52 |
3 files changed, 40 insertions, 91 deletions
diff --git a/media-gfx/xv/xv-3.10a-r2.ebuild b/media-gfx/xv/xv-3.10a-r2.ebuild index a233bc5d49f1..6963cb8f5d09 100644 --- a/media-gfx/xv/xv-3.10a-r2.ebuild +++ b/media-gfx/xv/xv-3.10a-r2.ebuild @@ -1,18 +1,18 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r2.ebuild,v 1.14 2003/02/13 12:39:09 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r2.ebuild,v 1.15 2003/08/05 17:17:40 vapier Exp $ -IUSE="png" +inherit eutils -S=${WORKDIR}/${P} DESCRIPTION="An interactive image manipulation program for X which can deal with a wide variety of image formats" +HOMEPAGE="http://www.trilon.com/xv/index.html" SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz png? http://www.ibiblio.org/gentoo/distfiles/xv-png-patch.tar.bz2" -HOMEPAGE="http://www.trilon.com/xv/index.html" -SLOT="0" LICENSE="as-is" -KEYWORDS="x86 ppc sparc " +SLOT="0" +KEYWORDS="x86 ppc sparc" +IUSE="png" DEPEND="virtual/x11 png? ( media-libs/jpeg @@ -20,30 +20,19 @@ DEPEND="virtual/x11 media-libs/libpng >=sys-libs/zlib-1.1.4 )" -PATCHDIR=${WORKDIR}/patches - src_unpack() { unpack ${A} - - use png && ( \ - cd ${S} - patch -p1 < ${WORKDIR}/${P}-naz-gentoo.patch || die - ) - - if [ `use ppc` ] && [ -z `use png` ] - then - cd ${S} - patch -p1 < ${FILESDIR}/xv-${PV}-ppc.patch || die - fi + + cd ${S} + [ `use png` ] && epatch ${WORKDIR}/${P}-naz-gentoo.patch + [ `use ppc` ] && [ -z `use png` ] && epatch ${FILESDIR}/xv-${PV}-ppc.patch } src_compile() { - make || die } -src_install () { - +src_install() { dodir /usr/bin dodir /usr/share/man/man1 @@ -54,5 +43,5 @@ src_install () { LIBDIR=${D}/usr/lib \ install || die - dodoc README INSTALL CHANGELOG BUGS IDEAS + dodoc README INSTALL CHANGELOG BUGS IDEAS } diff --git a/media-gfx/xv/xv-3.10a-r3.ebuild b/media-gfx/xv/xv-3.10a-r3.ebuild index 4aebc77d0888..b4e1e264626d 100644 --- a/media-gfx/xv/xv-3.10a-r3.ebuild +++ b/media-gfx/xv/xv-3.10a-r3.ebuild @@ -1,20 +1,18 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r3.ebuild,v 1.6 2003/06/16 08:36:19 naz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r3.ebuild,v 1.7 2003/08/05 17:17:41 vapier Exp $ -inherit ccc +inherit ccc eutils -IUSE="png" - -S=${WORKDIR}/${P} DESCRIPTION="An interactive image manipulation program for X which can deal with a wide variety of image formats" +HOMEPAGE="http://www.trilon.com/xv/index.html" SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz png? http://www.ibiblio.org/gentoo/distfiles/xv-png-patch.tar.bz2" -HOMEPAGE="http://www.trilon.com/xv/index.html" -SLOT="0" LICENSE="as-is" +SLOT="0" KEYWORDS="x86 ~ppc ~sparc ~alpha" +IUSE="png" DEPEND="virtual/x11 png? ( media-libs/jpeg @@ -22,38 +20,22 @@ DEPEND="virtual/x11 media-libs/libpng >=sys-libs/zlib-1.1.4 )" -PATCHDIR=${WORKDIR}/patches - src_unpack() { unpack ${A} - - use png && ( \ - cd ${S} - patch -p1 < ${WORKDIR}/${P}-naz-gentoo.patch || die - ) - - if [ `use ppc` ] && [ -z `use png` ] - then - cd ${S} - patch -p1 < ${FILESDIR}/xv-${PV}-ppc.patch || die - fi + + cd ${S} + [ `use png` ] && epatch ${WORKDIR}/${P}-naz-gentoo.patch + [ `use ppc` ] && [ -z `use png` ] && epatch ${FILESDIR}/xv-${PV}-ppc.patch } src_compile() { - mv Makefile Makefile.orig - sed -e "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" \ - Makefile.orig > Makefile - cd tiff - mv Makefile Makefile.orig - sed -e "s:COPTS=\t-O:COPTS= ${CFLAGS}:" \ - Makefile.orig > Makefile - cd .. + sed -i "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" Makefile + sed -i "s:COPTS=\t-O:COPTS= ${CFLAGS}:" tiff/Makefile is-ccc && replace-cc-hardcode make || die } -src_install () { - +src_install() { dodir /usr/bin dodir /usr/share/man/man1 @@ -64,5 +46,5 @@ src_install () { LIBDIR=${D}/usr/lib \ install || die - dodoc README INSTALL CHANGELOG BUGS IDEAS docs/*.ps docs/*.doc + dodoc README INSTALL CHANGELOG BUGS IDEAS docs/*.ps docs/*.doc } diff --git a/media-gfx/xv/xv-3.10a-r4.ebuild b/media-gfx/xv/xv-3.10a-r4.ebuild index e653adc3ec9d..39e12446f528 100644 --- a/media-gfx/xv/xv-3.10a-r4.ebuild +++ b/media-gfx/xv/xv-3.10a-r4.ebuild @@ -1,23 +1,24 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r4.ebuild,v 1.2 2003/08/03 05:04:18 rphillips Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r4.ebuild,v 1.3 2003/08/05 17:17:41 vapier Exp $ -IUSE="jpeg tiff png zlib X" +inherit flag-o-matic eutils DESCRIPTION="An interactive image manipulation program for X which can deal with a wide variety of image formats" -SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz" HOMEPAGE="http://www.trilon.com/xv/index.html" +SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz" -KEYWORDS="~x86 ~ppc ~sparc ~alpha" +LICENSE="as-is" SLOT="0" -LICENSE="shareware; only free for personal use." +KEYWORDS="~x86 ~ppc ~sparc ~alpha" +IUSE="jpeg tiff png zlib X" +RESTRICT="fetch" DEPEND="virtual/x11 jpeg? ( >=media-libs/jpeg-6b ) tiff? ( >=media-libs/tiff-3.5 ) png? ( >=media-libs/libpng-1.2 ) >=sys-libs/zlib-1.1.4" -RESTRICT="fetch" src_unpack() { unpack ${A} @@ -25,42 +26,19 @@ src_unpack() { cd ${S} epatch ${FILESDIR}/${P}-enhanced-Nu.patch || die epatch ${FILESDIR}/${P}-gentoo-Nu.patch || die - - if [ `use ppc` ] - then - cd ${S} - patch -p1 < ${FILESDIR}/${P}-ppc.patch || die - fi + [ `use ppc` ] && epatch ${FILESDIR}/${P}-ppc.patch } src_compile() { - if [ `use jpeg` ] - then - export CFLAGS="${CFLAGS} -DDOJPEG" - fi - - if [ `use png` ] - then - export CFLAGS="${CFLAGS} -DDOPNG" - fi - - if [ `use tiff` ] - then - export CFLAGS="${CFLAGS} -DDOTIFF" - fi - mv Makefile Makefile.orig - sed -e "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" \ - Makefile.orig > Makefile - cd tiff - mv Makefile Makefile.orig - sed -e "s:COPTS=\t-O:COPTS= ${CFLAGS}:" \ - Makefile.orig > Makefile - cd .. + [ `use jpeg` ] && append-flags -DDOJPEG + [ `use png` ] && append-flags -DDOPNG + [ `use tiff` ] && append-flags -DDOTIFF + sed -i "s:CCOPTS = -O:CCOPTS = ${CFLAGS}:" Makefile + sed -i "s:COPTS=\t-O:COPTS= ${CFLAGS}:" tiff/Makefile make || die } -src_install () { - +src_install() { dodir /usr/bin dodir /usr/share/man/man1 @@ -71,5 +49,5 @@ src_install () { LIBDIR=${D}/usr/lib \ install || die - dodoc README INSTALL CHANGELOG BUGS IDEAS docs/*.ps docs/*.doc + dodoc README INSTALL CHANGELOG BUGS IDEAS docs/*.ps docs/*.doc } |