diff options
author | Guy Martin <gmsoft@gentoo.org> | 2003-12-29 21:08:59 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2003-12-29 21:08:59 +0000 |
commit | cb95d07b8ad2c82787766bf4aedcdbc31f26f47e (patch) | |
tree | 01c8c1ca019d91d73a56aee0c2ef92bd013e085a /media-gfx/xli | |
parent | If match for @GCC is found, close all pipes _before_ exit(1) (diff) | |
download | gentoo-2-cb95d07b8ad2c82787766bf4aedcdbc31f26f47e.tar.gz gentoo-2-cb95d07b8ad2c82787766bf4aedcdbc31f26f47e.tar.bz2 gentoo-2-cb95d07b8ad2c82787766bf4aedcdbc31f26f47e.zip |
Added hppa to KEYWORDS and moved sed stuff in src_unpack.
Diffstat (limited to 'media-gfx/xli')
-rw-r--r-- | media-gfx/xli/ChangeLog | 5 | ||||
-rw-r--r-- | media-gfx/xli/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/xli/xli-1.17.0.ebuild | 34 |
3 files changed, 27 insertions, 16 deletions
diff --git a/media-gfx/xli/ChangeLog b/media-gfx/xli/ChangeLog index c6fade76521d..10edfb10146b 100644 --- a/media-gfx/xli/ChangeLog +++ b/media-gfx/xli/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-gfx/xli # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.5 2003/12/14 04:22:42 pylon Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.6 2003/12/29 21:08:51 gmsoft Exp $ + + 29 Dec 2003; Guy Martin <gmsoft@gentoo.org> xli-1.17.0.ebuild : + Added hppa to KEYWORDS and moved sed stuff in src_unpack. 14 Dec 2003; Lars Weiler <pylon@gentoo.org> xli-1.17.0.ebuild: Make stable on ppc diff --git a/media-gfx/xli/Manifest b/media-gfx/xli/Manifest index be90075a8ab6..053d78bde8d4 100644 --- a/media-gfx/xli/Manifest +++ b/media-gfx/xli/Manifest @@ -1,4 +1,4 @@ -MD5 f4cbf73d1c7280c0dea2a2db79a3df50 xli-1.17.0.ebuild 1935 -MD5 71ab39535fd50304be83436aec986c66 ChangeLog 686 +MD5 9ef51b8c90fa647309206fa9fa331b6f ChangeLog 814 MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160 +MD5 bbbbbafb270af4d3add7c7f835fe9cfc xli-1.17.0.ebuild 1836 MD5 56c2673ad567dbf5ca2163c932571234 files/digest-xli-1.17.0 62 diff --git a/media-gfx/xli/xli-1.17.0.ebuild b/media-gfx/xli/xli-1.17.0.ebuild index cb2a37ff6649..550123acc152 100644 --- a/media-gfx/xli/xli-1.17.0.ebuild +++ b/media-gfx/xli/xli-1.17.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0.ebuild,v 1.8 2003/12/14 04:22:42 pylon Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0.ebuild,v 1.9 2003/12/29 21:08:51 gmsoft Exp $ S=${WORKDIR}/${P} DESCRIPTION="X Load Image: view images or load them to root window" @@ -9,34 +9,42 @@ HOMEPAGE="http://pantransit.reptiles.org/prog/" SLOT="0" LICENSE="X11" -KEYWORDS="x86 ppc" +KEYWORDS="x86 ppc hppa" DEPEND="virtual/x11 >=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.0.5 >=media-libs/jpeg-6b-r2" -src_compile() { - cp Imakefile Imakefile.orig - sed -e "/^DEFINES =/s/$/ -DHAVE_GUNZIP/" < Imakefile.orig > Imakefile +src_unpack() { - /usr/X11R6/bin/xmkmf || die + unpack ${A} - cp Makefile Makefile.orig - sed -e "/CDEBUGFLAGS =/s/=.*/= ${CFLAGS}/" < Makefile.orig > Makefile + cd ${S} + + sed -i Imakefile \ + -e "/^DEFINES =/s/$/ -DHAVE_GUNZIP/" \ + -e "/CCOPTIONS =/s/=.*/=/" # This is a hack to avoid a parse error on /usr/include/string.h # when _BSD_SOURCE is defined. This may be a bug in that header. - cp png.c png.c.orig - sed -e "/^#include \"xli.h\"/i#undef _BSD_SOURCE" < png.c.orig > png.c + sed -i png.c \ + -e "/^#include \"xli.h\"/i#undef _BSD_SOURCE" # This hack will allow xli to compile using gcc-3.3 - cp rlelib.c rlelib.c.orig - sed -e "s/#include <varargs.h>//" < rlelib.c.orig > rlelib.c + sed -i rlelib.c \ + -e "s/#include <varargs.h>//" + +} - emake || die +src_compile() { + + /usr/X11R6/bin/xmkmf || die + + emake CDEBUGFLAGS="${CFLAGS}" || die } + src_install() { into /usr dobin xli xlito |