1 |
aballier 08/02/24 16:24:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lablgl-1.03-r1.ebuild |
5 |
Removed: lablgl-1.03.ebuild |
6 |
Log: |
7 |
Build ocamlopt support if use ocamlopt is enabled... it was not built due to a typo |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.44 dev-ml/lablgl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.44&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?rev=1.44&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/ChangeLog?r1=1.43&r2=1.44 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v |
20 |
retrieving revision 1.43 |
21 |
retrieving revision 1.44 |
22 |
diff -u -r1.43 -r1.44 |
23 |
--- ChangeLog 12 Jan 2008 19:13:19 -0000 1.43 |
24 |
+++ ChangeLog 24 Feb 2008 16:24:28 -0000 1.44 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-ml/lablgl |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.43 2008/01/12 19:13:19 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgl/ChangeLog,v 1.44 2008/02/24 16:24:28 aballier Exp $ |
30 |
+ |
31 |
+*lablgl-1.03-r1 (24 Feb 2008) |
32 |
+ |
33 |
+ 24 Feb 2008; Alexis Ballier <aballier@g.o> -lablgl-1.03.ebuild, |
34 |
+ +lablgl-1.03-r1.ebuild: |
35 |
+ Build ocamlopt support if use ocamlopt is enabled... it was not built due to |
36 |
+ a typo |
37 |
|
38 |
12 Jan 2008; Alexis Ballier <aballier@g.o> lablgl-1.03.ebuild: |
39 |
Readd more modularity, bug #204121 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-ml/lablgl/lablgl-1.03-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/lablgl-1.03-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/lablgl/lablgl-1.03-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: lablgl-1.03-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 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.03-r1.ebuild,v 1.1 2008/02/24 16:24:28 aballier Exp $ |
53 |
|
54 |
inherit multilib eutils toolchain-funcs |
55 |
|
56 |
EAPI="1" |
57 |
|
58 |
IUSE="doc glut +ocamlopt tk" |
59 |
|
60 |
DESCRIPTION="Objective CAML interface for OpenGL" |
61 |
HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html" |
62 |
LICENSE="BSD" |
63 |
|
64 |
DEPEND=">=dev-lang/ocaml-3.05 |
65 |
virtual/opengl |
66 |
x11-libs/libXext |
67 |
x11-libs/libXmu |
68 |
x11-libs/libX11 |
69 |
glut? ( virtual/glut ) |
70 |
tk? ( >=dev-lang/tcl-8.3 |
71 |
>=dev-lang/tk-8.3 )" |
72 |
|
73 |
SRC_URI="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${P}.tar.gz" |
74 |
SLOT="0" |
75 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
76 |
|
77 |
pkg_setup() { |
78 |
if use tk && ! built_with_use dev-lang/ocaml tk ; then |
79 |
eerror "You don't have ocaml compiled with tk support" |
80 |
eerror "" |
81 |
eerror "lablgl requires ocaml be built with tk support." |
82 |
eerror "" |
83 |
eerror "Please recompile ocaml with tk useflag enabled." |
84 |
die "Ocaml is missing tk support" |
85 |
fi |
86 |
|
87 |
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
88 |
eerror "In order to build ${PN} with native code support from ocaml" |
89 |
eerror "You first need to have a native code ocaml compiler." |
90 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
91 |
die "Please install ocaml with ocamlopt useflag" |
92 |
fi |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
# make configuration file |
97 |
echo "BINDIR=/usr/bin" > Makefile.config |
98 |
echo "GLLIBS = -lGL -lGLU" >> Makefile.config |
99 |
if use glut; then |
100 |
echo "GLUTLIBS = -lglut" >> Makefile.config |
101 |
else |
102 |
echo "GLUTLIBS = " >> Makefile.config |
103 |
fi |
104 |
echo "XLIBS = -lXext -lXmu -lX11" >> Makefile.config |
105 |
echo "RANLIB = $(tc-getRANLIB)" >> Makefile.config |
106 |
echo 'COPTS = -c -O $(CFLAGS)' >> Makefile.config |
107 |
echo 'INCLUDES = $(TKINCLUDES) $(GLINCLUDES) $(XINCLUDES)' >> Makefile.config |
108 |
|
109 |
if use tk; then |
110 |
emake -j1 togl || die "failed to build togl" |
111 |
if use ocamlopt; then |
112 |
emake -j1 toglopt || die "failed to build native code togl" |
113 |
fi |
114 |
fi |
115 |
|
116 |
emake -j1 lib || die "failed to build the library" |
117 |
if use ocamlopt; then |
118 |
emake -j1 libopt || die "failed to build native code library" |
119 |
fi |
120 |
|
121 |
if use glut; then |
122 |
emake -j1 glut || die "failed to build glut" |
123 |
if use ocamlopt; then |
124 |
emake -j1 glutopt || die "failed to build native code glutopt" |
125 |
fi |
126 |
fi |
127 |
} |
128 |
|
129 |
src_install () { |
130 |
# Makefile do not use mkdir so the library is not installed |
131 |
# but copied as a 'stublibs' file. |
132 |
dodir /usr/$(get_libdir)/ocaml/stublibs |
133 |
|
134 |
# Same for lablglut's toplevel |
135 |
dodir /usr/bin |
136 |
|
137 |
BINDIR=${D}/usr/bin |
138 |
BASE=${D}/usr/$(get_libdir)/ocaml |
139 |
emake BINDIR="${BINDIR}" INSTALLDIR="${BASE}/lablGL" DLLDIR="${BASE}/stublibs" install || die "make install failed" |
140 |
|
141 |
dodoc README CHANGES |
142 |
|
143 |
if use doc ; then |
144 |
insinto /usr/share/doc/${PF} |
145 |
mv Togl/examples{,.togl} |
146 |
doins -r Togl/examples.togl |
147 |
|
148 |
mv LablGlut/examples{,.glut} |
149 |
doins -r LablGlut/examples.glut |
150 |
fi |
151 |
} |
152 |
|
153 |
|
154 |
|
155 |
-- |
156 |
gentoo-commits@l.g.o mailing list |