1 |
jer 10/02/08 20:12:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: fltk-1.1.10.ebuild |
5 |
Log: |
6 |
Version bump (bug #299632) and add USE=debug (bug #281230) thanks to sven.jonsson. Prevent jpeg/png/zlib automagic configuration. |
7 |
(Portage version: 2.2_rc62/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.147 x11-libs/fltk/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.147&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.147&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?r1=1.146&r2=1.147 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v |
19 |
retrieving revision 1.146 |
20 |
retrieving revision 1.147 |
21 |
diff -u -r1.146 -r1.147 |
22 |
--- ChangeLog 7 Feb 2010 17:21:53 -0000 1.146 |
23 |
+++ ChangeLog 8 Feb 2010 20:12:58 -0000 1.147 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-libs/fltk |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.146 2010/02/07 17:21:53 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.147 2010/02/08 20:12:58 jer Exp $ |
29 |
+ |
30 |
+*fltk-1.1.10 (08 Feb 2010) |
31 |
+ |
32 |
+ 08 Feb 2010; Jeroen Roovers <jer@g.o> +fltk-1.1.10.ebuild: |
33 |
+ Version bump (bug #299632) and add USE=debug (bug #281230) thanks to |
34 |
+ sven.jonsson. Prevent jpeg/png/zlib automagic configuration. |
35 |
|
36 |
07 Feb 2010; Jeroen Roovers <jer@g.o> fltk-1.1.9-r1.ebuild: |
37 |
Stable for HPPA (bug #294147). |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-libs/fltk/fltk-1.1.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-1.1.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-1.1.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: fltk-1.1.10.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.10.ebuild,v 1.1 2010/02/08 20:12:58 jer Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils autotools versionator fdo-mime |
54 |
|
55 |
DESCRIPTION="C++ user interface toolkit for X and OpenGL." |
56 |
HOMEPAGE="http://www.fltk.org" |
57 |
SRC_URI="mirror://easysw/${PN}/${PV}/${P}-source.tar.bz2" |
58 |
|
59 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
LICENSE="FLTK LGPL-2" |
61 |
|
62 |
SLOT="$(get_version_component_range 1-2)" |
63 |
|
64 |
IUSE="debug doc examples games opengl threads xft xinerama" |
65 |
|
66 |
RDEPEND="x11-libs/libXext |
67 |
x11-libs/libICE |
68 |
x11-libs/libSM |
69 |
x11-libs/libXt |
70 |
media-libs/jpeg |
71 |
media-libs/libpng |
72 |
sys-libs/zlib |
73 |
opengl? ( virtual/opengl virtual/glu ) |
74 |
xinerama? ( x11-libs/libXinerama ) |
75 |
xft? ( x11-libs/libXft ) |
76 |
>=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 |
77 |
DEPEND="${RDEPEND} |
78 |
x11-proto/xextproto |
79 |
doc? ( app-text/htmldoc ) |
80 |
xinerama? ( x11-proto/xineramaproto )" |
81 |
|
82 |
INCDIR=/usr/include/fltk-${SLOT} |
83 |
LIBDIR=/usr/$(get_libdir)/fltk-${SLOT} |
84 |
|
85 |
src_prepare() { |
86 |
#epatch "${FILESDIR}"/${P}-fromdebian.patch |
87 |
epatch "${FILESDIR}"/${PN}-1.1.9-desktop.patch |
88 |
epatch "${FILESDIR}"/${PN}-1.1.9-as-needed.patch |
89 |
# prevent to run twice configure (needs eautoconf), to compile tests, |
90 |
# remove forced -Os compile |
91 |
epatch "${FILESDIR}"/${PN}-1.1.9-conf-tests.patch |
92 |
# fix stricter c++ handling in glibc-2.10/gcc-4.4 (bug 270487) |
93 |
epatch "${FILESDIR}"/${PN}-1.1.9-glibc2.10-scandir.patch |
94 |
# remove forced flags from fltk-config |
95 |
sed -i \ |
96 |
-e '/C\(XX\)\?FLAGS=/s:@C\(XX\)\?FLAGS@::' \ |
97 |
-e '/^LDFLAGS=/d' \ |
98 |
"${S}/fltk-config.in" || die |
99 |
# some fixes introduced because slotting |
100 |
sed -i \ |
101 |
-e '/RANLIB/s:$(libdir)/\(.*LIBNAME)\):$(libdir)/`basename \1`:g' \ |
102 |
src/Makefile || die |
103 |
# docs in proper docdir |
104 |
sed -i \ |
105 |
-e "/^docdir/s:fltk:${PF}/html:" \ |
106 |
makeinclude.in || die |
107 |
sed -e "s/7/$(get_version_component_range 3)/" \ |
108 |
"${FILESDIR}"/FLTKConfig.cmake > CMake/FLTKConfig.cmake |
109 |
eautoconf |
110 |
} |
111 |
|
112 |
src_configure() { |
113 |
econf \ |
114 |
--includedir=${INCDIR}\ |
115 |
--libdir=${LIBDIR} \ |
116 |
--docdir=/usr/share/doc/${PF}/html \ |
117 |
--enable-largefile \ |
118 |
--enable-shared \ |
119 |
--enable-xdbe \ |
120 |
--disable-localjpeg \ |
121 |
--disable-localpng \ |
122 |
--disable-localzlib \ |
123 |
$(use_enable debug) \ |
124 |
$(use_enable opengl gl) \ |
125 |
$(use_enable threads) \ |
126 |
$(use_enable xft) \ |
127 |
$(use_enable xinerama) |
128 |
} |
129 |
|
130 |
src_compile() { |
131 |
emake || die "emake failed" |
132 |
if use doc; then |
133 |
cd "${S}"/documentation |
134 |
emake alldocs || die "emake doc failed" |
135 |
fi |
136 |
if use games; then |
137 |
cd "${S}"/test |
138 |
emake blocks checkers sudoku || die "emake games failed" |
139 |
fi |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
emake DESTDIR="${D}" install || die "emake install failed" |
144 |
emake -C fluid \ |
145 |
DESTDIR="${D}" install-linux || die "emake install fluid failed" |
146 |
if use doc; then |
147 |
emake -C documentation \ |
148 |
DESTDIR="${D}" install || die "emake install doc failed" |
149 |
fi |
150 |
local apps="fluid" |
151 |
if use games; then |
152 |
emake -C test \ |
153 |
DESTDIR="${D}" install-linux || die "emake install games failed" |
154 |
emake -C documentation \ |
155 |
DESTDIR="${D}" install-linux || die "emake install doc games failed" |
156 |
apps="${apps} sudoku blocks checkers" |
157 |
fi |
158 |
for app in ${apps}; do |
159 |
dosym /usr/share/icons/hicolor/32x32/apps/${app}.png \ |
160 |
/usr/share/pixmaps/${app}.png |
161 |
done |
162 |
dodoc CHANGES README CREDITS ANNOUNCEMENT |
163 |
|
164 |
if use examples; then |
165 |
insinto /usr/share/doc/${PF}/examples |
166 |
doins test/*.{h,cxx,fl} test/demo.menu |
167 |
fi |
168 |
|
169 |
insinto /usr/share/cmake/Modules |
170 |
doins CMake/FLTK*.cmake |
171 |
|
172 |
echo "LDPATH=${LIBDIR}" > 99fltk-${SLOT} |
173 |
echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT} |
174 |
doenvd 99fltk-${SLOT} |
175 |
} |
176 |
|
177 |
pkg_postinst() { |
178 |
fdo-mime_desktop_database_update |
179 |
} |
180 |
|
181 |
pkg_postrm() { |
182 |
fdo-mime_desktop_database_update |
183 |
} |