Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/lablgl: ChangeLog lablgl-1.04-r1.ebuild
Date: Sat, 02 Mar 2013 18:00:32
Message-Id: 20130302180028.8BEED2171D@flycatcher.gentoo.org
1 aballier 13/03/02 18:00:28
2
3 Modified: ChangeLog
4 Added: lablgl-1.04-r1.ebuild
5 Log:
6 Drop togl as it does not build with recent tk versions; eapi5 and use slot deps
7
8 (Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.62 dev-ml/lablgl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.62&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.62&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgl/ChangeLog?r1=1.61&r2=1.62
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v
20 retrieving revision 1.61
21 retrieving revision 1.62
22 diff -u -r1.61 -r1.62
23 --- ChangeLog 6 Oct 2012 20:46:11 -0000 1.61
24 +++ ChangeLog 2 Mar 2013 18:00:28 -0000 1.62
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ml/lablgl
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.61 2012/10/06 20:46:11 aballier Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.62 2013/03/02 18:00:28 aballier Exp $
31 +
32 +*lablgl-1.04-r1 (02 Mar 2013)
33 +
34 + 02 Mar 2013; Alexis Ballier <aballier@g.o> +lablgl-1.04-r1.ebuild:
35 + Drop togl as it does not build with recent tk versions; eapi5 and use slot
36 + deps
37
38 06 Oct 2012; Alexis Ballier <aballier@g.o> lablgl-1.04.ebuild:
39 add missing virutal/glu dep, bug #434456
40
41
42
43 1.1 dev-ml/lablgl/lablgl-1.04-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgl/lablgl-1.04-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/lablgl/lablgl-1.04-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lablgl-1.04-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/lablgl-1.04-r1.ebuild,v 1.1 2013/03/02 18:00:28 aballier Exp $
53
54 EAPI="5"
55
56 inherit multilib eutils toolchain-funcs
57
58 IUSE="doc glut +ocamlopt"
59 #tk"
60
61 DESCRIPTION="Objective CAML interface for OpenGL"
62 HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html"
63 LICENSE="BSD"
64
65 # >=dev-lang/ocaml-3.10.2:=[tk?,ocamlopt?]
66 RDEPEND="
67 >=dev-lang/ocaml-3.10.2:=[ocamlopt?]
68 x11-libs/libXext
69 x11-libs/libXmu
70 x11-libs/libX11
71 virtual/opengl
72 virtual/glu
73 glut? ( media-libs/freeglut )
74 "
75 # tk? ( >=dev-lang/tcl-8.3 >=dev-lang/tk-8.3 )
76
77 DEPEND="${RDEPEND}"
78
79 SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz"
80 SLOT="0/${PV}"
81 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
82 S=${WORKDIR}/lablGL-${PV}
83
84 src_configure() {
85 # make configuration file
86 echo "BINDIR=/usr/bin" > Makefile.config
87 echo "GLLIBS = -lGL -lGLU" >> Makefile.config
88 if use glut; then
89 echo "GLUTLIBS = -lglut" >> Makefile.config
90 else
91 echo "GLUTLIBS = " >> Makefile.config
92 fi
93 echo "XLIBS = -lXext -lXmu -lX11" >> Makefile.config
94 echo "RANLIB = $(tc-getRANLIB)" >> Makefile.config
95 echo 'COPTS = -c -O $(CFLAGS)' >> Makefile.config
96 echo 'INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES)' >> Makefile.config
97 }
98
99 src_compile() {
100 #if use tk; then
101 # emake -j1 togl || die "failed to build togl"
102 # if use ocamlopt; then
103 # emake -j1 toglopt || die "failed to build native code togl"
104 # fi
105 #fi
106
107 emake -j1 lib || die "failed to build the library"
108 if use ocamlopt; then
109 emake -j1 libopt || die "failed to build native code library"
110 fi
111
112 if use glut; then
113 emake -j1 glut || die "failed to build glut"
114 if use ocamlopt; then
115 emake -j1 glutopt || die "failed to build native code glutopt"
116 fi
117 fi
118 }
119
120 src_install () {
121 # Makefile do not use mkdir so the library is not installed
122 # but copied as a 'stublibs' file.
123 dodir /usr/$(get_libdir)/ocaml/stublibs
124
125 # Same for lablglut's toplevel
126 dodir /usr/bin
127
128 BINDIR=${ED}/usr/bin
129 BASE=${ED}/usr/$(get_libdir)/ocaml
130 emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" DLLDIR="${BASE}/stublibs" install || die "make install failed"
131
132 dodoc README CHANGES
133
134 if use doc ; then
135 insinto /usr/share/doc/${PF}
136 mv Togl/examples{,.togl}
137 doins -r Togl/examples.togl
138
139 mv LablGlut/examples{,.glut}
140 doins -r LablGlut/examples.glut
141 fi
142 }