summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/xli/ChangeLog7
-rw-r--r--media-gfx/xli/Manifest6
-rw-r--r--media-gfx/xli/files/digest-xli-1.17.0-r11
-rw-r--r--media-gfx/xli/xli-1.17.0-r1.ebuild89
4 files changed, 100 insertions, 3 deletions
diff --git a/media-gfx/xli/ChangeLog b/media-gfx/xli/ChangeLog
index 6ca1262dab50..759d44bee032 100644
--- a/media-gfx/xli/ChangeLog
+++ b/media-gfx/xli/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/xli
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.12 2005/02/05 21:51:24 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.13 2005/02/28 11:22:14 taviso Exp $
+
+*xli-1.17.0-r1 (28 Feb 2005)
+
+ 28 Feb 2005; Tavis Ormandy <taviso@gentoo.org> +xli-1.17.0-r1.ebuild:
+ new snapshot with security fixes.
05 Feb 2005; Bryan Østergaard <kloeri@gentoo.org> xli-1.17.0.ebuild:
~alpha keyworded, bug 76234.
diff --git a/media-gfx/xli/Manifest b/media-gfx/xli/Manifest
index fbe2ca8e640a..bd050419e93b 100644
--- a/media-gfx/xli/Manifest
+++ b/media-gfx/xli/Manifest
@@ -1,5 +1,7 @@
-MD5 bd26c90f039774be9da650c4572599d5 ChangeLog 1359
+MD5 2974bcaef29ae6c00d0cadb99cbfe0e5 xli-1.17.0-r1.ebuild 2169
+MD5 676aca5d36e1c8b76d0b78e8d9a1f63f ChangeLog 1498
MD5 dffd46174e78b327c834fc3e4b1cf848 metadata.xml 160
MD5 5c84d7cced4dd40138016823859803ab xli-1.17.0.ebuild 2109
-MD5 56c2673ad567dbf5ca2163c932571234 files/digest-xli-1.17.0 62
MD5 88664b266f34957e871e07457c605227 files/Xli.ad 123
+MD5 4f4d73aa9e90de9931e810d283ab6db6 files/digest-xli-1.17.0-r1 66
+MD5 56c2673ad567dbf5ca2163c932571234 files/digest-xli-1.17.0 62
diff --git a/media-gfx/xli/files/digest-xli-1.17.0-r1 b/media-gfx/xli/files/digest-xli-1.17.0-r1
new file mode 100644
index 000000000000..0a00458cf658
--- /dev/null
+++ b/media-gfx/xli/files/digest-xli-1.17.0-r1
@@ -0,0 +1 @@
+MD5 db470da53500017fd6969457c12c98f7 xli-2005-02-27.tar.gz 201011
diff --git a/media-gfx/xli/xli-1.17.0-r1.ebuild b/media-gfx/xli/xli-1.17.0-r1.ebuild
new file mode 100644
index 000000000000..ae13b0cc7cd9
--- /dev/null
+++ b/media-gfx/xli/xli-1.17.0-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0-r1.ebuild,v 1.1 2005/02/28 11:22:14 taviso Exp $
+
+inherit alternatives
+
+SNAPSHOT="2005-02-27"
+DESCRIPTION="X Load Image: view images or load them to root window"
+HOMEPAGE="http://pantransit.reptiles.org/prog/"
+SRC_URI="http://pantransit.reptiles.org/prog/xli/xli-${SNAPSHOT}.tar.gz"
+
+LICENSE="X11"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc-macos ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/x11
+ >=sys-libs/zlib-1.1.4
+ >=media-libs/libpng-1.0.5
+ >=media-libs/jpeg-6b-r2"
+
+S=${WORKDIR}/${PN}-${SNAPSHOT}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+ if use ppc-macos ; then
+ for f in $(grep zopen * | cut -d':' -f1 | uniq); do
+ sed -i "s:zopen:xli_zopen:g" $f
+ done
+ fi
+
+ 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.
+ sed -i png.c \
+ -e "/^#include \"xli.h\"/i#undef _BSD_SOURCE"
+
+ # This hack will allow xli to compile using gcc-3.3
+ sed -i rlelib.c \
+ -e "s/#include <varargs.h>//"
+
+}
+
+src_compile() {
+ /usr/X11R6/bin/xmkmf || die
+
+ emake CDEBUGFLAGS="${CFLAGS}" || die
+}
+
+
+src_install() {
+ into /usr
+ dobin xli xlito
+ dodoc README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg
+ newman xli.man xli.1
+ newman xliguide.man xliguide.1
+ newman xlito.man xlito.1
+ #dosym /usr/bin/xli /usr/bin/xview
+ #dosym /usr/bin/xli /usr/bin/xsetbg
+
+ insinto /etc/X11/app-defaults
+ newins ${FILESDIR}/Xli.ad Xli || die
+ fperms a+r /etc/X11/app-defaults/Xli
+}
+
+update_alternatives() {
+ alternatives_makesym /usr/bin/xview \
+ /usr/bin/{xloadimage,xli}
+ alternatives_makesym /usr/bin/xsetbg \
+ /usr/bin/{xloadimage,xli}
+ alternatives_makesym /usr/share/man/man1/xview.1.gz \
+ /usr/share/man/man1/{xloadimage,xli}.1.gz
+ alternatives_makesym /usr/share/man/man1/xsetbg.1.gz \
+ /usr/share/man/man1/{xloadimage,xli}.1.gz
+}
+
+pkg_postinst() {
+ use ppc-macos || update_alternatives
+}
+
+pkg_postrm() {
+ use ppc-macos || update_alternatives
+}