Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-scheme/schoca
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/schoca/ChangeLog,v 1.2 2008/01/17 19:35:08 aballier Exp $
17 Jan 2008; Alexis Ballier
Add support to build without ocamlopt, install in findlib destdir, install
binaries in /usr, dont strip non ocamlopt binaries, restrict installsources
as debugedit has the same effect as stripping on ocamlc -custom binaries
*schoca-0.3.0 (08 Jan 2008)
08 Jan 2008; Marijn Schouten
+schoca-0.3.0.ebuild:
Initial ebuild
DIST schoca-0.3.0.tar.bz2 49738 RMD160 e900118731d94ebd735aa4108b28261fff03e948 SHA1 57374cd0e605ea12194cd90ce9e5c3be8a528f80 SHA256 5527a8bf07faa7e715626612735a044bf970480637d98eea612bf61bb7042511
EBUILD schoca-0.3.0.ebuild 1819 RMD160 455bf0018b232348fb0d4a47f231973c234e7539 SHA1 21f24ee3dc1c04317554698771a5514da157668d SHA256 63462dcf4d7efa493dd3fe3818facceddbc5090a982fd2943647b81f6bce4300
MISC ChangeLog 649 RMD160 be401d2b0e84928384f425c1953061abc6572954 SHA1 00372009e1c807e5ff82a7eb0ad1198eff303143 SHA256 b7a2a45538e6fb9ceecf9767170481b9ed587f2549329b59ef2fe5cccf503a86
MISC metadata.xml 399 RMD160 17c5ed6283d55f70d27dea5cb05401ae627765d0 SHA1 af62fec14a9e69a3e3d0fb9a42af34e9405b36aa SHA256 2bbf2111d3d894d0a7dd521dc2f4513bd9465a82b2c62ec561d2c0c2ad74ca27
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).
# Copyright 1999-2008 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.2 2008/01/17 19:35:08 aballier Exp $
EAPI="1"
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/"
SRC_URI="mirror://sourceforge/chesslib/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ocamlopt"
DEPEND="dev-ml/findlib"
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
}
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:DESTDURFLAG:DESTDIRFLAG:" OCaml.mk
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() {
#parallel fails
emake -j1 || die "emake failed"
}
src_install() {
use ocamlopt || export STRIP_MASK="*bin/schoca"
dodir "$(ocamlfind printconf destdir)"
emake PREFIX="/usr" DESTDIR="${D}" DESTDIRFLAG="-destdir ${D}$(ocamlfind printconf destdir)" install || die "emake install failed"
}