1 |
commit: 7d64d2b5443d774b5a205f2c96476bbad426850e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 11:07:47 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 11:11:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d64d2b5 |
7 |
|
8 |
media-gfx/fbida: Add live ebuild. |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
media-gfx/fbida/fbida-9999.ebuild | 126 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 126 insertions(+) |
14 |
|
15 |
diff --git a/media-gfx/fbida/fbida-9999.ebuild b/media-gfx/fbida/fbida-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..abb2322 |
18 |
--- /dev/null |
19 |
+++ b/media-gfx/fbida/fbida-9999.ebuild |
20 |
@@ -0,0 +1,126 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+inherit eutils git-r3 toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)" |
29 |
+HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/" |
30 |
+EGIT_REPO_URI=" |
31 |
+ git://git.kraxel.org/fbida |
32 |
+" |
33 |
+SRC_URI=" |
34 |
+ mirror://gentoo/ida.png.bz2 |
35 |
+" |
36 |
+LICENSE="GPL-2 IJG" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="" |
39 |
+IUSE="curl fbcon +gif lirc pdf +png scanner +tiff X +webp" |
40 |
+REQUIRED_USE=" |
41 |
+ pdf? ( tiff ) |
42 |
+" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ !media-gfx/fbi |
46 |
+ >=media-libs/fontconfig-2.2 |
47 |
+ >=media-libs/freetype-2.0 |
48 |
+ media-libs/libexif |
49 |
+ curl? ( net-misc/curl ) |
50 |
+ gif? ( media-libs/giflib:= ) |
51 |
+ lirc? ( app-misc/lirc ) |
52 |
+ pdf? ( |
53 |
+ media-libs/libepoxy |
54 |
+ media-libs/mesa |
55 |
+ x11-libs/cairo[opengl] |
56 |
+ x11-libs/libdrm |
57 |
+ ) |
58 |
+ png? ( media-libs/libpng:* ) |
59 |
+ scanner? ( media-gfx/sane-backends ) |
60 |
+ tiff? ( media-libs/tiff:* ) |
61 |
+ virtual/jpeg:* |
62 |
+ virtual/ttf-fonts |
63 |
+ webp? ( media-libs/libwebp ) |
64 |
+ X? ( |
65 |
+ >=x11-libs/motif-2.3:0 |
66 |
+ x11-libs/libX11 |
67 |
+ x11-libs/libXpm |
68 |
+ x11-libs/libXt |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+DEPEND=" |
73 |
+ ${RDEPEND} |
74 |
+ X? ( x11-proto/xextproto x11-proto/xproto ) |
75 |
+" |
76 |
+ |
77 |
+src_unpack() { |
78 |
+ unpack ${A} |
79 |
+ git-r3_src_unpack |
80 |
+} |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ eapply \ |
84 |
+ "${FILESDIR}"/ida-desktop.patch \ |
85 |
+ "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \ |
86 |
+ "${FILESDIR}"/${PN}-2.10-fprintf-format.patch |
87 |
+ |
88 |
+ eapply_user |
89 |
+ |
90 |
+ tc-export CC CPP |
91 |
+ |
92 |
+ # upstream omission? |
93 |
+ echo ${PV} > VERSION |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ # Let autoconf do its job and then fix things to build fbida |
98 |
+ # according to our specifications |
99 |
+ emake Make.config |
100 |
+ |
101 |
+ gentoo_fbida() { |
102 |
+ local useflag=${1} |
103 |
+ local config=${2} |
104 |
+ |
105 |
+ local option="no" |
106 |
+ use ${useflag} && option="yes" |
107 |
+ |
108 |
+ sed -i \ |
109 |
+ -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \ |
110 |
+ "${S}/Make.config" || die |
111 |
+ } |
112 |
+ |
113 |
+ gentoo_fbida X MOTIF |
114 |
+ gentoo_fbida curl LIBCURL |
115 |
+ gentoo_fbida fbcon LINUX_FB_H |
116 |
+ gentoo_fbida gif LIBUNGIF |
117 |
+ gentoo_fbida lirc LIBLIRC |
118 |
+ gentoo_fbida pdf LIBTIFF |
119 |
+ gentoo_fbida png LIBPNG |
120 |
+ gentoo_fbida scanner LIBSANE |
121 |
+ gentoo_fbida tiff LIBTIFF |
122 |
+ gentoo_fbida webp LIBWEBP |
123 |
+} |
124 |
+ |
125 |
+src_compile() { |
126 |
+ emake verbose=yes |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ emake \ |
131 |
+ DESTDIR="${D}" \ |
132 |
+ STRIP="" \ |
133 |
+ prefix=/usr \ |
134 |
+ install |
135 |
+ |
136 |
+ dodoc README |
137 |
+ |
138 |
+ if use fbcon && ! use pdf; then |
139 |
+ rm "${D}"/usr/bin/fbgs "${D}"/usr/share/man/man1/fbgs.1 || die |
140 |
+ fi |
141 |
+ |
142 |
+ if use X ; then |
143 |
+ doicon "${WORKDIR}"/ida.png |
144 |
+ domenu desktop/ida.desktop |
145 |
+ fi |
146 |
+} |