Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/fbida: ChangeLog fbida-2.07.ebuild
Date: Mon, 08 Sep 2008 22:01:54
Message-Id: E1Kconv-0002jM-15@stork.gentoo.org
1 spock 08/09/08 22:01:51
2
3 Modified: ChangeLog
4 Added: fbida-2.07.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5 x86_64)
8
9 Revision Changes Path
10 1.52 media-gfx/fbida/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/fbida/ChangeLog?rev=1.52&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/fbida/ChangeLog?rev=1.52&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/fbida/ChangeLog?r1=1.51&r2=1.52
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/fbida/ChangeLog,v
19 retrieving revision 1.51
20 retrieving revision 1.52
21 diff -u -r1.51 -r1.52
22 --- ChangeLog 7 Sep 2008 10:39:13 -0000 1.51
23 +++ ChangeLog 8 Sep 2008 22:01:50 -0000 1.52
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-gfx/fbida
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/fbida/ChangeLog,v 1.51 2008/09/07 10:39:13 spock Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/fbida/ChangeLog,v 1.52 2008/09/08 22:01:50 spock Exp $
29 +
30 +*fbida-2.07 (08 Sep 2008)
31 +
32 + 08 Sep 2008; Michał Januszewski <spock@g.o> +fbida-2.07.ebuild:
33 + Version bump.
34
35 07 Sep 2008; Michał Januszewski <spock@g.o>
36 -files/fbida-2.03-fbgs.patch, -fbida-2.03-r4.ebuild:
37
38
39
40 1.1 media-gfx/fbida/fbida-2.07.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/fbida/fbida-2.07.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/fbida/fbida-2.07.ebuild?rev=1.1&content-type=text/plain
44
45 Index: fbida-2.07.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-gfx/fbida/fbida-2.07.ebuild,v 1.1 2008/09/08 22:01:50 spock Exp $
50
51 inherit eutils toolchain-funcs
52
53 DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)."
54 HOMEPAGE="http://linux.bytesex.org/fbida/"
55 SRC_URI="http://dl.bytesex.org/releases/${PN}/${P}.tar.gz"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
60 IUSE="curl fbcon gif imagemagick lirc pdf png scanner tiff X"
61
62 RDEPEND="png? ( media-libs/libpng )
63 gif? ( media-libs/giflib )
64 pdf? ( virtual/ghostscript media-libs/tiff )
65 tiff? ( media-libs/tiff )
66 curl? ( net-misc/curl )
67 lirc? ( app-misc/lirc )
68 imagemagick? ( media-gfx/imagemagick )
69 scanner? ( media-gfx/sane-backends )
70 X? ( x11-libs/libX11
71 x11-libs/libXt
72 x11-libs/libXpm
73 x11-libs/openmotif
74 )
75 !media-gfx/fbi
76 >=media-libs/jpeg-6b
77 media-libs/libexif
78 >=media-libs/freetype-2.0
79 >=media-libs/fontconfig-2.2
80 media-fonts/ttf-bitstream-vera"
81
82 DEPEND="${RDEPEND}
83 X? ( x11-proto/xextproto x11-proto/xproto )"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88 sed -e 's/DGifOpenFileName,ungif/DGifOpenFileName,gif/' \
89 -e 's/-lungif/-lgif/' -i "${S}/GNUmakefile"
90
91 if [[ `gcc-major-version` -lt 4 ]]; then
92 sed -e 's/-Wno-pointer-sign//' -i "${S}/GNUmakefile"
93 fi
94
95 epatch "${FILESDIR}/ida-desktop.patch"
96 }
97
98 src_compile() {
99 # Let autoconf do its job and then fix things to build fbida
100 # according to our specifications
101 emake Make.config || die
102
103 set_feat() {
104 local useflag=${1}
105 local config=${2}
106
107 local option="yes"
108 if ! use ${useflag}; then
109 option="no"
110 fi
111
112 sed -e "s/${config}.*/${config} := ${option}/" -i "${S}/Make.config"
113 }
114
115 set_feat fbcon HAVE_LINUX_FB_H
116 set_feat X HAVE_MOTIF
117 set_feat tiff HAVE_LIBTIFF
118
119 # The 'pdf' flag forces the use of libtiff.
120 set_feat pdf HAVE_LIBTIFF
121 set_feat png HAVE_LIBPNG
122 set_feat gif HAVE_LIBUNGIF
123 set_feat lirc HAVE_LIBLIRC
124 set_feat curl HAVE_LIBCURL
125 set_feat scanner HAVE_LIBSANE
126 set_feat imagemagick HAVE_LIBMAGICK
127
128 emake || die
129 }
130
131 src_install() {
132 make \
133 DESTDIR="${D}" \
134 STRIP="" \
135 prefix=/usr \
136 install || die
137 dodoc README
138
139 if ! use pdf; then
140 rm -f "${D}"/usr/bin/fbgs "${D}"/usr/share/man/man1/fbgs.1
141 fi
142
143 if use X ; then
144 doicon "${FILESDIR}/ida.png"
145 domenu desktop/ida.desktop
146 fi
147 }