summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-05-14 17:43:00 +0000
committerSamuli Suominen <drac@gentoo.org>2007-05-14 17:43:00 +0000
commit969eca63d3281ea6b0c523148a1223fd035da287 (patch)
tree53c1344718c53185beb9af7ec86abbc629ee9255 /media-gfx
parentia64 stable wrt security bug 177029 (diff)
downloadgentoo-2-969eca63d3281ea6b0c523148a1223fd035da287.tar.gz
gentoo-2-969eca63d3281ea6b0c523148a1223fd035da287.tar.bz2
gentoo-2-969eca63d3281ea6b0c523148a1223fd035da287.zip
Use ecompress to define manpage format. Relative to bug 173522.
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/xli/ChangeLog9
-rw-r--r--media-gfx/xli/files/digest-xli-1.17.0-r33
-rw-r--r--media-gfx/xli/xli-1.17.0-r3.ebuild94
3 files changed, 104 insertions, 2 deletions
diff --git a/media-gfx/xli/ChangeLog b/media-gfx/xli/ChangeLog
index 581a47936438..26430cae5764 100644
--- a/media-gfx/xli/ChangeLog
+++ b/media-gfx/xli/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/xli
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.38 2006/08/06 02:03:32 chriswhite Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/ChangeLog,v 1.39 2007/05/14 17:43:00 drac Exp $
+
+*xli-1.17.0-r3 (14 May 2007)
+
+ 14 May 2007; Samuli Suominen <drac@gentoo.org> +xli-1.17.0-r3.ebuild:
+ Use ecompress to define manpage format. Relative to bug 173522.
05 Aug 2006; Chris White <chriswhite@gentoo.org> -xli-1.17.0.ebuild,
-xli-1.17.0-r1.ebuild:
diff --git a/media-gfx/xli/files/digest-xli-1.17.0-r3 b/media-gfx/xli/files/digest-xli-1.17.0-r3
new file mode 100644
index 000000000000..fd23893b7816
--- /dev/null
+++ b/media-gfx/xli/files/digest-xli-1.17.0-r3
@@ -0,0 +1,3 @@
+MD5 db470da53500017fd6969457c12c98f7 xli-2005-02-27.tar.gz 201011
+RMD160 fc83fa5173befa73a0eeb56ad323dad148ef1426 xli-2005-02-27.tar.gz 201011
+SHA256 442dcf5ac75841e648c3bffed795d9301a6a485dc55f7998d0acfc2b8daad2bc xli-2005-02-27.tar.gz 201011
diff --git a/media-gfx/xli/xli-1.17.0-r3.ebuild b/media-gfx/xli/xli-1.17.0-r3.ebuild
new file mode 100644
index 000000000000..1772318f7e93
--- /dev/null
+++ b/media-gfx/xli/xli-1.17.0-r3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2007 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-r3.ebuild,v 1.1 2007/05/14 17:43:00 drac Exp $
+
+inherit alternatives eutils
+
+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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXext
+ >=sys-libs/zlib-1.1.4
+ >=media-libs/libpng-1.0.5
+ >=media-libs/jpeg-6b-r2
+ app-arch/bzip2"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto
+ x11-misc/imake
+ app-text/rman"
+
+S="${WORKDIR}"/${PN}-${SNAPSHOT}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if use userland_Darwin ; 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 -DHAVE_BUNZIP2 /" \
+ -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>//"
+
+ # fix potential security issues.
+ EPATCH_OPTS="-F3 -l" epatch ${FILESDIR}/xli-security-gentoo.diff
+}
+
+src_compile() {
+ xmkmf || die "xmkmf failed."
+
+ emake CDEBUGFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+
+src_install() {
+ 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
+
+ insinto /etc/X11/app-defaults
+ newins ${FILESDIR}/Xli.ad Xli
+ fperms a+r /etc/X11/app-defaults/Xli
+}
+
+update_alternatives() {
+ local mansuffix=$(ecompress --suffix)
+
+ 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${mansuffix} \
+ /usr/share/man/man1/{xloadimage,xli}.1${mansuffix}
+ alternatives_makesym /usr/share/man/man1/xsetbg.1${mansuffix} \
+ /usr/share/man/man1/{xloadimage,xli}.1${mansuffix}
+}
+
+pkg_postinst() {
+ use ppc-macos || update_alternatives
+}
+
+pkg_postrm() {
+ use ppc-macos || update_alternatives
+}