summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@gentoo.org>2010-10-06 02:28:00 +0000
committerTomás Touceda <chiiph@gentoo.org>2010-10-06 02:28:00 +0000
commit8579de5c64e2e4f646bac91f4c1c27a3d57cb3b2 (patch)
tree9d143d8a535165e2150ca8afc3ec92e8907220a6
parentDo not warn about global options #329437 by Marcin Mirosław. (diff)
downloadgentoo-2-8579de5c64e2e4f646bac91f4c1c27a3d57cb3b2.tar.gz
gentoo-2-8579de5c64e2e4f646bac91f4c1c27a3d57cb3b2.tar.bz2
gentoo-2-8579de5c64e2e4f646bac91f4c1c27a3d57cb3b2.zip
Fix SRC_URI and port to EAPI 3
(Portage version: 2.2_rc86/cvs/Linux i686)
-rw-r--r--dev-scheme/schoca/ChangeLog8
-rw-r--r--dev-scheme/schoca/metadata.xml4
-rw-r--r--dev-scheme/schoca/schoca-0.3.0.ebuild41
3 files changed, 23 insertions, 30 deletions
diff --git a/dev-scheme/schoca/ChangeLog b/dev-scheme/schoca/ChangeLog
index 9a178af39b93..6ead74e6ba78 100644
--- a/dev-scheme/schoca/ChangeLog
+++ b/dev-scheme/schoca/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-scheme/schoca
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v 1.3 2009/03/28 18:25:11 vadimk Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v 1.4 2010/10/06 02:28:00 chiiph Exp $
+
+ 06 Oct 2010; Tomas Touceda <chiiph@gentoo.org> schoca-0.3.0.ebuild,
+ metadata.xml:
+ Fix SRC_URI and port to EAPI 3
28 Mar 2009; Vadim Kuznetsov vadimk@gentoo.org schoca-0.3.0.ebuild:
Passing LDFLAGS to C linker via -cclib. Bug #239574
diff --git a/dev-scheme/schoca/metadata.xml b/dev-scheme/schoca/metadata.xml
index 7f78590f395e..653fddcad62c 100644
--- a/dev-scheme/schoca/metadata.xml
+++ b/dev-scheme/schoca/metadata.xml
@@ -4,6 +4,8 @@
<herd>scheme</herd>
<herd>ml</herd>
<longdescription lang="en">
-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).
+ 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).
</longdescription>
</pkgmetadata>
diff --git a/dev-scheme/schoca/schoca-0.3.0.ebuild b/dev-scheme/schoca/schoca-0.3.0.ebuild
index 9cdb2cb759cd..3aee95c6d2a0 100644
--- a/dev-scheme/schoca/schoca-0.3.0.ebuild
+++ b/dev-scheme/schoca/schoca-0.3.0.ebuild
@@ -1,50 +1,37 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild,v 1.3 2009/03/28 18:25:11 vadimk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/schoca-0.3.0.ebuild,v 1.4 2010/10/06 02:28:00 chiiph Exp $
-EAPI="1"
+EAPI="3"
inherit eutils
-RESTRICT="installsources"
-
DESCRIPTION="Schoca is a Scheme implementation in OCaml."
-
-HOMEPAGE="http://home.arcor.de/chr_bauer/schoca.html
- http://chesslib.sourceforge.net/"
-
+HOMEPAGE="http://sourceforge.net/projects/chesslib/"
SRC_URI="mirror://sourceforge/chesslib/${P}.tar.bz2"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt"
-DEPEND="dev-ml/findlib"
+DEPEND="dev-ml/findlib
+ dev-lang/ocaml[ocamlopt?]"
RDEPEND="${DEPEND}"
-pkg_setup() {
- if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
- eerror "In order to build ${PN} with native code support from ocaml"
- eerror "You first need to have a native code ocaml compiler."
- eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
- die "Please install ocaml with ocamlopt useflag"
- fi
-}
+RESTRICT="installsources"
-src_unpack() {
- unpack ${A}; cd "${S}"
- cp OCaml.mk OCaml.mk.old
- sed "s:\$(CFLAGS):\$(CCFLAGS):g" -i OCaml.mk
- sed "s:CCFLAGS= -ccopt -O2:CCFLAGS= -ccopt \"${CFLAGS}\":" -i OCaml.mk
- sed -i -e "s:\$(LDFLAGS):-cclib \"${LDFLAGS}\":" OCaml.mk
- sed -i -e "s:DESTDURFLAG:DESTDIRFLAG:" OCaml.mk
+src_configure() {
+ sed "s:\$(CFLAGS):\$(CCFLAGS):g" -i OCaml.mk || die "sed failed"
+ sed "s:CCFLAGS= -ccopt -O2:CCFLAGS= -ccopt \"${CFLAGS}\":" -i OCaml.mk || die "sed failed"
+ sed -i -e "s:\$(LDFLAGS):-cclib \"${LDFLAGS}\":" OCaml.mk || die "sed failed"
+ sed -i -e "s:DESTDURFLAG:DESTDIRFLAG:" OCaml.mk || die "sed failed"
if ! use ocamlopt; then
sed -i -e 's/ \$(PROGRAM)\.opt/ \$(PROGRAM)/' OCaml.mk || die "sed failed"
sed -i -e 's/ \$(LIBRARY)\.cmxa//' OCaml.mk || die "sed failed"
sed -i -e 's/ \$(LIBRARY)\.a//' OCaml.mk || die "sed failed"
sed -i -e 's/) \$(NCOBJECTS)/)/' OCaml.mk || die "sed failed"
fi
- diff -u OCaml.mk.old OCaml.mk
}
src_compile() {
@@ -54,6 +41,6 @@ src_compile() {
src_install() {
use ocamlopt || export STRIP_MASK="*bin/schoca"
- dodir "$(ocamlfind printconf destdir)"
+ dodir "$(ocamlfind printconf destdir)" || die "dodir failed"
emake PREFIX="/usr" DESTDIR="${D}" DESTDIRFLAG="-destdir ${D}$(ocamlfind printconf destdir)" install || die "emake install failed"
}