Gentoo Archives: gentoo-commits

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