1 |
hwoarang 10/05/30 17:03:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: fltk-1.1.10-r1.ebuild |
5 |
Log: |
6 |
Apply datadir fix from bug #31553 to latest ebuild as well |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.158 x11-libs/fltk/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.158&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.158&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/fltk/ChangeLog?r1=1.157&r2=1.158 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v |
19 |
retrieving revision 1.157 |
20 |
retrieving revision 1.158 |
21 |
diff -u -r1.157 -r1.158 |
22 |
--- ChangeLog 30 May 2010 10:44:20 -0000 1.157 |
23 |
+++ ChangeLog 30 May 2010 17:03:05 -0000 1.158 |
24 |
@@ -1,6 +1,11 @@ |
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.157 2010/05/30 10:44:20 hwoarang Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.158 2010/05/30 17:03:05 hwoarang Exp $ |
29 |
+ |
30 |
+*fltk-1.1.10-r1 (30 May 2010) |
31 |
+ |
32 |
+ 30 May 2010; Markos Chandras <hwoarang@g.o> +fltk-1.1.10-r1.ebuild: |
33 |
+ Apply datadir fix from bug #31553 to latest ebuild as well |
34 |
|
35 |
*fltk-1.1.9-r2 (30 May 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 x11-libs/fltk/fltk-1.1.10-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/fltk/fltk-1.1.10-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/fltk/fltk-1.1.10-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: fltk-1.1.10-r1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.10-r1.ebuild,v 1.1 2010/05/30 17:03:05 hwoarang Exp $ |
50 |
|
51 |
EAPI=2 |
52 |
inherit eutils autotools versionator fdo-mime |
53 |
|
54 |
DESCRIPTION="C++ user interface toolkit for X and OpenGL." |
55 |
HOMEPAGE="http://www.fltk.org" |
56 |
SRC_URI="mirror://easysw/${PN}/${PV}/${P}-source.tar.bz2" |
57 |
|
58 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
59 |
LICENSE="FLTK LGPL-2" |
60 |
|
61 |
SLOT="$(get_version_component_range 1-2)" |
62 |
|
63 |
IUSE="debug doc examples games opengl threads xft xinerama" |
64 |
|
65 |
RDEPEND="x11-libs/libXext |
66 |
x11-libs/libICE |
67 |
x11-libs/libSM |
68 |
x11-libs/libXt |
69 |
media-libs/jpeg |
70 |
media-libs/libpng |
71 |
sys-libs/zlib |
72 |
opengl? ( virtual/opengl virtual/glu ) |
73 |
xinerama? ( x11-libs/libXinerama ) |
74 |
xft? ( x11-libs/libXft ) |
75 |
>=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695 |
76 |
DEPEND="${RDEPEND} |
77 |
x11-proto/xextproto |
78 |
doc? ( app-text/htmldoc ) |
79 |
xinerama? ( x11-proto/xineramaproto )" |
80 |
|
81 |
INCDIR=/usr/include/fltk-${SLOT} |
82 |
LIBDIR=/usr/$(get_libdir)/fltk-${SLOT} |
83 |
|
84 |
src_prepare() { |
85 |
epatch "${FILESDIR}"/fltk-1.1.9-share.patch |
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 |
} |