Gentoo Archives: gentoo-commits

From: "TomAs Touceda (chiiph)" <chiiph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-scheme/schoca: metadata.xml ChangeLog schoca-0.3.0.ebuild
Date: Wed, 06 Oct 2010 03:02:37
Message-Id: 20101006022800.83FA520054@flycatcher.gentoo.org
1 chiiph 10/10/06 02:28:00
2
3 Modified: metadata.xml ChangeLog schoca-0.3.0.ebuild
4 Log:
5 Fix SRC_URI and port to EAPI 3
6
7 (Portage version: 2.2_rc86/cvs/Linux i686)
8
9 Revision Changes Path
10 1.2 dev-scheme/schoca/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-scheme/schoca/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 8 Jan 2008 15:57:19 -0000 1.1
23 +++ metadata.xml 6 Oct 2010 02:28:00 -0000 1.2
24 @@ -4,6 +4,8 @@
25 <herd>scheme</herd>
26 <herd>ml</herd>
27 <longdescription lang="en">
28 -Schoca is an implementation of the Scheme language. The primary purpose of Schoca is the use as an embedded extension language in OCaml applications (e.g. the ibgsclient).
29 + Schoca is an implementation of the Scheme language. The primary
30 + purpose of Schoca is the use as an embedded extension language
31 + in OCaml applications (e.g. the ibgsclient).
32 </longdescription>
33 </pkgmetadata>
34
35
36
37 1.4 dev-scheme/schoca/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/ChangeLog?rev=1.4&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/ChangeLog?rev=1.4&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/ChangeLog?r1=1.3&r2=1.4
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v
46 retrieving revision 1.3
47 retrieving revision 1.4
48 diff -u -r1.3 -r1.4
49 --- ChangeLog 28 Mar 2009 18:25:11 -0000 1.3
50 +++ ChangeLog 6 Oct 2010 02:28:00 -0000 1.4
51 @@ -1,6 +1,10 @@
52 # ChangeLog for dev-scheme/schoca
53 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v 1.3 2009/03/28 18:25:11 vadimk Exp $
55 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
56 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v 1.4 2010/10/06 02:28:00 chiiph Exp $
57 +
58 + 06 Oct 2010; Tomas Touceda <chiiph@g.o> schoca-0.3.0.ebuild,
59 + metadata.xml:
60 + Fix SRC_URI and port to EAPI 3
61
62 28 Mar 2009; Vadim Kuznetsov vadimk@g.o schoca-0.3.0.ebuild:
63 Passing LDFLAGS to C linker via -cclib. Bug #239574
64
65
66
67 1.4 dev-scheme/schoca/schoca-0.3.0.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild?rev=1.4&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild?rev=1.4&content-type=text/plain
71 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild?r1=1.3&r2=1.4
72
73 Index: schoca-0.3.0.ebuild
74 ===================================================================
75 RCS file: /var/cvsroot/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild,v
76 retrieving revision 1.3
77 retrieving revision 1.4
78 diff -u -r1.3 -r1.4
79 --- schoca-0.3.0.ebuild 28 Mar 2009 18:25:11 -0000 1.3
80 +++ schoca-0.3.0.ebuild 6 Oct 2010 02:28:00 -0000 1.4
81 @@ -1,50 +1,37 @@
82 -# Copyright 1999-2009 Gentoo Foundation
83 +# Copyright 1999-2010 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild,v 1.3 2009/03/28 18:25:11 vadimk Exp $
86 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild,v 1.4 2010/10/06 02:28:00 chiiph Exp $
87
88 -EAPI="1"
89 +EAPI="3"
90
91 inherit eutils
92
93 -RESTRICT="installsources"
94 -
95 DESCRIPTION="Schoca is a Scheme implementation in OCaml."
96 -
97 -HOMEPAGE="http://home.arcor.de/chr_bauer/schoca.html
98 - http://chesslib.sourceforge.net/"
99 -
100 +HOMEPAGE="http://sourceforge.net/projects/chesslib/"
101 SRC_URI="mirror://sourceforge/chesslib/${P}.tar.bz2"
102 +
103 LICENSE="GPL-2"
104 SLOT="0"
105 KEYWORDS="~amd64 ~x86"
106 IUSE="+ocamlopt"
107
108 -DEPEND="dev-ml/findlib"
109 +DEPEND="dev-ml/findlib
110 + dev-lang/ocaml[ocamlopt?]"
111 RDEPEND="${DEPEND}"
112
113 -pkg_setup() {
114 - if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
115 - eerror "In order to build ${PN} with native code support from ocaml"
116 - eerror "You first need to have a native code ocaml compiler."
117 - eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
118 - die "Please install ocaml with ocamlopt useflag"
119 - fi
120 -}
121 +RESTRICT="installsources"
122
123 -src_unpack() {
124 - unpack ${A}; cd "${S}"
125 - cp OCaml.mk OCaml.mk.old
126 - sed "s:\$(CFLAGS):\$(CCFLAGS):g" -i OCaml.mk
127 - sed "s:CCFLAGS= -ccopt -O2:CCFLAGS= -ccopt \"${CFLAGS}\":" -i OCaml.mk
128 - sed -i -e "s:\$(LDFLAGS):-cclib \"${LDFLAGS}\":" OCaml.mk
129 - sed -i -e "s:DESTDURFLAG:DESTDIRFLAG:" OCaml.mk
130 +src_configure() {
131 + sed "s:\$(CFLAGS):\$(CCFLAGS):g" -i OCaml.mk || die "sed failed"
132 + sed "s:CCFLAGS= -ccopt -O2:CCFLAGS= -ccopt \"${CFLAGS}\":" -i OCaml.mk || die "sed failed"
133 + sed -i -e "s:\$(LDFLAGS):-cclib \"${LDFLAGS}\":" OCaml.mk || die "sed failed"
134 + sed -i -e "s:DESTDURFLAG:DESTDIRFLAG:" OCaml.mk || die "sed failed"
135 if ! use ocamlopt; then
136 sed -i -e 's/ \$(PROGRAM)\.opt/ \$(PROGRAM)/' OCaml.mk || die "sed failed"
137 sed -i -e 's/ \$(LIBRARY)\.cmxa//' OCaml.mk || die "sed failed"
138 sed -i -e 's/ \$(LIBRARY)\.a//' OCaml.mk || die "sed failed"
139 sed -i -e 's/) \$(NCOBJECTS)/)/' OCaml.mk || die "sed failed"
140 fi
141 - diff -u OCaml.mk.old OCaml.mk
142 }
143
144 src_compile() {
145 @@ -54,6 +41,6 @@
146
147 src_install() {
148 use ocamlopt || export STRIP_MASK="*bin/schoca"
149 - dodir "$(ocamlfind printconf destdir)"
150 + dodir "$(ocamlfind printconf destdir)" || die "dodir failed"
151 emake PREFIX="/usr" DESTDIR="${D}" DESTDIRFLAG="-destdir ${D}$(ocamlfind printconf destdir)" install || die "emake install failed"
152 }