blob: 12edac8581c539a39fa3a77716d102b5190ff9e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libungif/libungif-4.1.3-r1.ebuild,v 1.2 2005/09/06 22:46:17 vapier Exp $
inherit eutils libtool
DESCRIPTION="A library for reading and writing gif images without LZW compression"
HOMEPAGE="http://sourceforge.net/projects/libungif/"
SRC_URI="mirror://sourceforge/libungif/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~sparc ~x86"
IUSE="X"
RDEPEND="X? ( virtual/x11 )
!media-libs/giflib"
src_unpack() {
unpack ${A}
cd "${S}"
elibtoolize || die
epunt_cxx
}
src_compile() {
export WANT_AUTOCONF=2.5
econf $(use_with X x) || die
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
rm -r "${D}"/usr/bin "${D}"/usr/include/gif_lib.h
dodoc AUTHORS BUGS ChangeLog NEWS ONEWS UNCOMPRESSED_GIF \
README TODO doc/*.txt || die "dodoc failed"
dohtml -r doc || die "dohtml failed"
}
src_test() {
if has_version 'media-gfx/xv' ; then
if [ -z "$DISPLAY" ] || ! (/usr/X11R6/bin/xhost &>/dev/null) ; then
ewarn
ewarn "You are not authorised to conntect to X server to make check."
ewarn "Disabling make check."
ewarn
epause; ebeep; epause
else
make check || die "make check failed"
fi
else
ewarn
ewarn "You need media-gfx/xv to run src_test for this package."
ewarn
epause; ebeep; epause
fi
}
|