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