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-lang/ocaml: ChangeLog ocaml-3.11.1_rc1.ebuild ocaml-3.11.1_rc0.ebuild
Date: Wed, 03 Jun 2009 11:53:03
Message-Id: E1MBp1g-0008Rq-2e@stork.gentoo.org
1 aballier 09/06/03 11:53:00
2
3 Modified: ChangeLog
4 Added: ocaml-3.11.1_rc1.ebuild
5 Removed: ocaml-3.11.1_rc0.ebuild
6 Log:
7 version bump
8 (Portage version: 2.2_rc33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.163 dev-lang/ocaml/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ocaml/ChangeLog?rev=1.163&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ocaml/ChangeLog?rev=1.163&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ocaml/ChangeLog?r1=1.162&r2=1.163
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v
20 retrieving revision 1.162
21 retrieving revision 1.163
22 diff -u -r1.162 -r1.163
23 --- ChangeLog 19 May 2009 23:12:46 -0000 1.162
24 +++ ChangeLog 3 Jun 2009 11:52:59 -0000 1.163
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/ocaml
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.162 2009/05/19 23:12:46 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.163 2009/06/03 11:52:59 aballier Exp $
30 +
31 +*ocaml-3.11.1_rc1 (03 Jun 2009)
32 +
33 + 03 Jun 2009; Alexis Ballier <aballier@g.o>
34 + -ocaml-3.11.1_rc0.ebuild, +ocaml-3.11.1_rc1.ebuild:
35 + version bump
36
37 *ocaml-3.11.1_rc0 (19 May 2009)
38
39
40
41
42 1.1 dev-lang/ocaml/ocaml-3.11.1_rc1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ocaml/ocaml-3.11.1_rc1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ocaml/ocaml-3.11.1_rc1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ocaml-3.11.1_rc1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-3.11.1_rc1.ebuild,v 1.1 2009/06/03 11:53:00 aballier Exp $
52
53 EAPI="1"
54
55 inherit flag-o-matic eutils multilib versionator toolchain-funcs
56
57 MY_P="${P/_/+}"
58 DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
59 HOMEPAGE="http://www.ocaml.org/"
60 SRC_URI="ftp://ftp.inria.fr/INRIA/cristal/ocaml/ocaml-$( get_version_component_range 1-2)/${MY_P}.tar.gz"
61
62 LICENSE="QPL-1.0 LGPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 IUSE="emacs gdbm latex ncurses +ocamlopt tk X xemacs"
66
67 DEPEND="tk? ( >=dev-lang/tk-3.3.3 )
68 ncurses? ( sys-libs/ncurses )
69 X? ( x11-libs/libX11 x11-proto/xproto )
70 gdbm? ( sys-libs/gdbm )"
71 RDEPEND="${DEPEND}"
72
73 PDEPEND="emacs? ( app-emacs/ocaml-mode )
74 xemacs? ( app-xemacs/ocaml )"
75
76 S="${WORKDIR}/${MY_P}"
77 pkg_setup() {
78 # dev-lang/ocaml creates its own objects but calls gcc for linking, which will
79 # results in relocations if gcc wants to create a PIE executable
80 if gcc-specs-pie ; then
81 append-ldflags -nopie
82 ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
83 ewarn "We have appended -nopie to ocaml build options"
84 ewarn "because linking an executable with pie while the objects are not pic will not work"
85 fi
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91
92 # Fix the EXEC_STACK in ocaml compiled binaries (#153382)
93 epatch "${FILESDIR}"/${PN}-3.11.0_beta1-exec-stack-fixes.patch
94
95 # The configure script doesn't inherit previous defined variables,
96 # overwriting previous declarations of bytecccompopts, bytecclinkopts,
97 # nativecccompopts and nativecclinkopts. Reported upstream as issue 0004267.
98 epatch "${FILESDIR}"/${PN}-3.11.0_beta1-configure.patch
99
100 # ocaml has automagics on libX11 and gdbm
101 # http://caml.inria.fr/mantis/view.php?id=4278
102 epatch "${FILESDIR}/${PN}-3.10.0-automagic.patch"
103
104 # Respect LDFLAGS for ocamlyacc
105 epatch "${FILESDIR}"/${PN}-3.11.0_beta1-yaccldflags.patch
106 }
107
108 src_compile() {
109 export LC_ALL=C
110 local myconf="--host ${CHOST}"
111
112 # It doesn't compile on alpha without this LDFLAGS
113 use alpha && append-ldflags "-Wl,--no-relax"
114
115 use tk || myconf="${myconf} -no-tk"
116 use ncurses || myconf="${myconf} -no-curses"
117 use X || myconf="${myconf} -no-graph"
118 use gdbm || myconf="${myconf} -no-dbm"
119
120 # ocaml uses a home-brewn configure script, preventing it to use econf.
121 RAW_LDFLAGS="$(raw-ldflags)" ./configure -prefix /usr \
122 --bindir /usr/bin \
123 --libdir /usr/$(get_libdir)/ocaml \
124 --mandir /usr/share/man \
125 --with-pthread ${myconf} || die "configure failed!"
126
127 make world || die "make world failed!"
128
129 # Native code generation can be disabled now
130 if use ocamlopt ; then
131 make opt || die "make opt failed!"
132 make opt.opt || die "make opt.opt failed!"
133 fi
134 }
135
136 src_install() {
137 make BINDIR="${D}"/usr/bin \
138 LIBDIR="${D}"/usr/$(get_libdir)/ocaml \
139 MANDIR="${D}"/usr/share/man \
140 install || die "make install failed!"
141
142 # Install the compiler libs
143 dodir /usr/$(get_libdir)/ocaml/compiler-libs
144 insinto /usr/$(get_libdir)/ocaml/compiler-libs
145 doins {utils,typing,parsing}/*.{mli,cmi,cmo}
146 use ocamlopt && doins {utils,typing,parsing}/*.{cmx,o}
147
148 # Symlink the headers to the right place
149 dodir /usr/include
150 dosym /usr/$(get_libdir)/ocaml/caml /usr/include/
151
152 # Remove ${D} from ld.conf, as the buildsystem isn't $(DESTDIR) aware
153 dosed "s:${D}::g" /usr/$(get_libdir)/ocaml/ld.conf
154
155 dodoc Changes INSTALL README Upgrading
156
157 # Create and envd entry for latex input files (this definitely belongs into
158 # CONTENT and not in pkg_postinst.
159 if use latex ; then
160 echo "TEXINPUTS=/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
161 doenvd "${T}"/99ocamldoc
162 fi
163
164 # Install ocaml-rebuild.sh script rather than keeping it in $PORTDIR
165 dosbin "${FILESDIR}/ocaml-rebuild.sh"
166 }
167
168 pkg_postinst() {
169 echo
170 ewarn "OCaml is not binary compatible from version to version, so you"
171 ewarn "need to rebuild all packages depending on it, that are actually"
172 ewarn "installed on your system. To do so, you can run:"
173 ewarn "/usr/sbin/ocaml-rebuild.sh [-h | emerge options]"
174 ewarn "Which will call emerge on all old packages with the given options"
175 echo
176 }