Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/fltk: ChangeLog fltk-2.0_pre6970.ebuild
Date: Tue, 09 Feb 2010 18:15:55
Message-Id: E1Neucq-000854-Cq@stork.gentoo.org
1 jer 10/02/09 18:15:52
2
3 Modified: ChangeLog
4 Added: fltk-2.0_pre6970.ebuild
5 Log:
6 Version bump thanks to Dennis Nezic (bug #303825).
7 (Portage version: 2.2_rc62/cvs/Linux i686)
8
9 Revision Changes Path
10 1.149 x11-libs/fltk/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.149&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?rev=1.149&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/ChangeLog?r1=1.148&r2=1.149
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v
19 retrieving revision 1.148
20 retrieving revision 1.149
21 diff -u -r1.148 -r1.149
22 --- ChangeLog 8 Feb 2010 20:29:12 -0000 1.148
23 +++ ChangeLog 9 Feb 2010 18:15:51 -0000 1.149
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.148 2010/02/08 20:29:12 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.149 2010/02/09 18:15:51 jer Exp $
29 +
30 +*fltk-2.0_pre6970 (09 Feb 2010)
31 +
32 + 09 Feb 2010; Jeroen Roovers <jer@g.o> +fltk-2.0_pre6970.ebuild:
33 + Version bump thanks to Dennis Nezic (bug #303825).
34
35 *fltk-2.0_pre6786-r2 (08 Feb 2010)
36
37
38
39
40 1.1 x11-libs/fltk/fltk-2.0_pre6970.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-2.0_pre6970.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/fltk/fltk-2.0_pre6970.ebuild?rev=1.1&content-type=text/plain
44
45 Index: fltk-2.0_pre6970.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-2.0_pre6970.ebuild,v 1.1 2010/02/09 18:15:51 jer Exp $
50
51 EAPI="2"
52 inherit multilib autotools flag-o-matic
53
54 MY_P=${P/_pre/.x-r}
55 DESCRIPTION="C++ user interface toolkit for X and OpenGL"
56 HOMEPAGE="http://www.fltk.org/"
57 SRC_URI="mirror://easysw/fltk/snapshots/${MY_P}.tar.bz2"
58
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
60 LICENSE="FLTK LGPL-2"
61 SLOT="2"
62 IUSE="cairo debug doc +jpeg +png opengl +xft xinerama zlib"
63
64 RDEPEND="x11-libs/libXext
65 x11-libs/libICE
66 x11-libs/libSM
67 x11-libs/libXt
68 xft? ( x11-libs/libXft )
69 png? ( media-libs/libpng )
70 jpeg? ( media-libs/jpeg )
71 opengl? ( virtual/opengl )
72 cairo? ( x11-libs/cairo )
73 xinerama? ( x11-libs/libXinerama )
74 zlib? ( sys-libs/zlib )
75 >=sys-libs/glibc-2.10" # glibc-2.10 patch breaks with 2.9, bug 276695
76 DEPEND="${RDEPEND}
77 x11-proto/xextproto
78 x11-libs/libXi
79 xinerama? ( x11-proto/xineramaproto )
80 cairo? ( dev-util/pkgconfig )
81 doc? ( app-doc/doxygen )"
82
83 S="${WORKDIR}/${MY_P}"
84
85 src_prepare() {
86 epatch "${FILESDIR}"/fltk2-asneeded.patch # bug 255494
87 epatch "${FILESDIR}"/fltk2-gcc43.patch
88 epatch "${FILESDIR}"/fltk2-ldflags.patch # bug 251233
89 epatch "${FILESDIR}"/fltk2-fluid2.patch # bug 282472
90 sed -i "/STRIP/d" fluid/Makefile # don't pre-strip, bug 246694
91 use opengl || epatch "${FILESDIR}"/fltk2-nogl.patch
92 eautoreconf
93 }
94
95 src_configure() {
96 append-flags -fno-strict-aliasing
97
98 CPPFLAGS="${CPPFLAGS} -DFLTK_DOCDIR=\"/usr/share/doc/${PF}\"" \
99 econf --enable-shared --enable-threads \
100 $(use_enable debug) \
101 $(use_enable xft) \
102 $(use_enable opengl gl) \
103 $(use_enable cairo) \
104 $(use_enable jpeg) \
105 $(use_enable png) \
106 $(use_enable xinerama) \
107 $(use_enable zlib)
108 }
109
110 src_compile() {
111 emake || die "make failed"
112
113 if use doc; then
114 make -C documentation || die "make documentation failed"
115 fi
116 }
117
118 src_install() {
119 einstall includedir="${D}/usr/include" libdir="${D}/usr/$(get_libdir)/fltk"
120
121 if use doc; then
122 emake -C documentation install || die "install documentation failed"
123 dohtml -r documentation/html/* || die "install html documentation failed"
124 fi
125 dodoc CHANGES CREDITS README* TODO
126
127 echo "LDPATH=/usr/$(get_libdir)/fltk" > 99fltk-${SLOT}
128 echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT}
129
130 doenvd 99fltk-${SLOT} || die "installing env.d file failed"
131 }