1 |
bicatali 09/01/09 23:31:31 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: fltk-1.1.9.ebuild |
5 |
Log: |
6 |
Version bump for 1.1, with ebuild modernization and added games. Dropping ppc64 and hppa until htmldoc is keyworded. |
7 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.107 x11-libs/fltk/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.107&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.107&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?r1=1.106&r2=1.107 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v |
19 |
retrieving revision 1.106 |
20 |
retrieving revision 1.107 |
21 |
diff -u -r1.106 -r1.107 |
22 |
--- ChangeLog 9 Jan 2009 13:45:51 -0000 1.106 |
23 |
+++ ChangeLog 9 Jan 2009 23:31:31 -0000 1.107 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for x11-libs/fltk |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.106 2009/01/09 13:45:51 remi Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.107 2009/01/09 23:31:31 bicatali Exp $ |
29 |
+ |
30 |
+*fltk-1.1.9 (09 Jan 2009) |
31 |
+ |
32 |
+ 09 Jan 2009; Sébastien Fabbro <bicatali@g.o> |
33 |
+ +files/fltk-1.1.9-as-needed.patch, +files/fltk-1.1.9-conf-tests.patch, |
34 |
+ +files/fltk-1.1.9-desktop.patch, metadata.xml, +fltk-1.1.9.ebuild: |
35 |
+ Version bump for 1.1, with ebuild modernization and added games. Dropping |
36 |
+ ppc64 and hppa until htmldoc is keyworded. |
37 |
|
38 |
09 Jan 2009; Rémi Cardona <remi@g.o> fltk-1.1.7.ebuild, |
39 |
fltk-1.1.7-r2.ebuild, fltk-1.1.7-r3.ebuild, fltk-2.0_pre6525.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.5 x11-libs/fltk/metadata.xml |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/metadata.xml?rev=1.5&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/metadata.xml?rev=1.5&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/metadata.xml?r1=1.4&r2=1.5 |
48 |
|
49 |
Index: metadata.xml |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/fltk/metadata.xml,v |
52 |
retrieving revision 1.4 |
53 |
retrieving revision 1.5 |
54 |
diff -u -r1.4 -r1.5 |
55 |
--- metadata.xml 5 Jan 2009 21:53:47 -0000 1.4 |
56 |
+++ metadata.xml 9 Jan 2009 23:31:31 -0000 1.5 |
57 |
@@ -5,8 +5,15 @@ |
58 |
<maintainer> |
59 |
<email>desktop-misc@g.o</email> |
60 |
</maintainer> |
61 |
-<longdescription>C++ user interface toolkit for X and OpenGL.</longdescription> |
62 |
+<longdescription> |
63 |
+ The Fast Light ToolKit is a cross-platform C++ user interface |
64 |
+ toolkit for X and OpenGL. FLTK (pronounced "fulltick") provides GUI |
65 |
+ functionality and supports 3D graphics via OpenGL and its built-in |
66 |
+ GLUT emulation. FLTK also includes a UI builder called FLUID that |
67 |
+ can be used to create applications. |
68 |
+</longdescription> |
69 |
<use> |
70 |
- <flag name='noxft'>Disables xft; use for non-english characters</flag> |
71 |
+ <flag name='noxft'>Disables xft; use for non-english characters</flag> |
72 |
+ <flag name='games'>Builds and installs some extra games</flag> |
73 |
</use> |
74 |
</pkgmetadata> |
75 |
|
76 |
|
77 |
|
78 |
1.1 x11-libs/fltk/fltk-1.1.9.ebuild |
79 |
|
80 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-1.1.9.ebuild?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-1.1.9.ebuild?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: fltk-1.1.9.ebuild |
84 |
=================================================================== |
85 |
# Copyright 1999-2009 Gentoo Foundation |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.9.ebuild,v 1.1 2009/01/09 23:31:31 bicatali Exp $ |
88 |
|
89 |
EAPI=2 |
90 |
inherit eutils autotools versionator fdo-mime |
91 |
|
92 |
DESCRIPTION="C++ user interface toolkit for X and OpenGL." |
93 |
HOMEPAGE="http://www.fltk.org" |
94 |
SRC_URI="http://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2" |
95 |
|
96 |
KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sh ~sparc ~x86 ~x86-fbsd" |
97 |
LICENSE="FLTK LGPL-2" |
98 |
|
99 |
SLOT="$(get_version_component_range 1-2)" |
100 |
|
101 |
IUSE="doc examples games opengl threads xft xinerama" |
102 |
|
103 |
RDEPEND="x11-libs/libXext |
104 |
x11-libs/libICE |
105 |
x11-libs/libSM |
106 |
x11-libs/libXt |
107 |
media-libs/jpeg |
108 |
media-libs/libpng |
109 |
sys-libs/zlib |
110 |
opengl? ( virtual/opengl virtual/glu ) |
111 |
xinerama? ( x11-libs/libXinerama ) |
112 |
xft? ( x11-libs/libXft )" |
113 |
|
114 |
DEPEND="${RDEPEND} |
115 |
x11-proto/xextproto |
116 |
doc? ( app-text/htmldoc ) |
117 |
xinerama? ( x11-proto/xineramaproto )" |
118 |
|
119 |
INCDIR=/usr/include/fltk-${SLOT} |
120 |
LIBDIR=/usr/$(get_libdir)/fltk-${SLOT} |
121 |
|
122 |
src_prepare() { |
123 |
#epatch "${FILESDIR}"/${P}-fromdebian.patch |
124 |
epatch "${FILESDIR}"/${P}-desktop.patch |
125 |
epatch "${FILESDIR}"/${P}-as-needed.patch |
126 |
# prevent to run twice configure (needs eautoconf), to compile tests, |
127 |
# remove forced -Os compile |
128 |
epatch "${FILESDIR}"/${P}-conf-tests.patch |
129 |
# remove forced flags from fltk-config |
130 |
sed -i \ |
131 |
-e '/C\(XX\)\?FLAGS=/s:@C\(XX\)\?FLAGS@::' \ |
132 |
-e '/^LDFLAGS=/d' \ |
133 |
"${S}/fltk-config.in" || die |
134 |
# some fixes introduced because slotting |
135 |
sed -i \ |
136 |
-e '/RANLIB/s:$(libdir)/\(.*LIBNAME)\):$(libdir)/`basename \1`:g' \ |
137 |
src/Makefile || die |
138 |
# docs in proper docdir |
139 |
sed -i \ |
140 |
-e "/^docdir/s:fltk:${PF}/html:" \ |
141 |
makeinclude.in || die |
142 |
sed -e "s/7/$(get_version_component_range 3)/" \ |
143 |
"${FILESDIR}"/FLTKConfig.cmake > CMake/FLTKConfig.cmake |
144 |
eautoconf |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
econf \ |
149 |
--includedir=${INCDIR}\ |
150 |
--libdir=${LIBDIR} \ |
151 |
--docdir=/usr/share/doc/${PF}/html \ |
152 |
--enable-largefile \ |
153 |
--enable-shared \ |
154 |
--enable-xdbe \ |
155 |
$(use_enable opengl gl) \ |
156 |
$(use_enable threads) \ |
157 |
$(use_enable xft) \ |
158 |
$(use_enable xinerama) |
159 |
} |
160 |
|
161 |
src_compile() { |
162 |
emake || die "emake failed" |
163 |
if use doc; then |
164 |
cd "${S}"/documentation |
165 |
emake alldocs || die "emake doc failed" |
166 |
fi |
167 |
if use games; then |
168 |
cd "${S}"/test |
169 |
emake blocks checkers sudoku || die "emake games failed" |
170 |
fi |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
emake DESTDIR="${D}" install || die "emake install failed" |
175 |
emake -C fluid \ |
176 |
DESTDIR="${D}" install-linux || die "emake install fluid failed" |
177 |
if use doc; then |
178 |
emake -C documentation \ |
179 |
DESTDIR="${D}" install || die "emake install doc failed" |
180 |
fi |
181 |
local apps="fluid" |
182 |
if use games; then |
183 |
emake -C test \ |
184 |
DESTDIR="${D}" install-linux || die "emake install games failed" |
185 |
emake -C documentation \ |
186 |
DESTDIR="${D}" install-linux || die "emake install doc games failed" |
187 |
apps="${apps} sudoku blocks checkers" |
188 |
fi |
189 |
for app in ${apps}; do |
190 |
dosym /usr/share/icons/hicolor/32x32/apps/${app}.png \ |
191 |
/usr/share/pixmaps/${app}.png |
192 |
done |
193 |
dodoc CHANGES README CREDITS ANNOUNCEMENT |
194 |
|
195 |
if use examples; then |
196 |
insinto /usr/share/doc/${PF}/examples |
197 |
doins test/*.{h,cxx,fl} test/demo.menu |
198 |
fi |
199 |
|
200 |
insinto /usr/share/cmake/Modules |
201 |
doins CMake/FLTK*.cmake |
202 |
|
203 |
echo "LDPATH=${LIBDIR}" > 99fltk-${SLOT} |
204 |
echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT} |
205 |
doenvd 99fltk-${SLOT} |
206 |
} |
207 |
|
208 |
pkg_postinst() { |
209 |
fdo-mime_desktop_database_update |
210 |
} |
211 |
|
212 |
pkg_postrm() { |
213 |
fdo-mime_desktop_database_update |
214 |
} |