diff options
author | Tomás Touceda <chiiph@gentoo.org> | 2010-10-06 02:28:00 +0000 |
---|---|---|
committer | Tomás Touceda <chiiph@gentoo.org> | 2010-10-06 02:28:00 +0000 |
commit | 25ab4a12a42f21fb9d6cee43fa37c30105d42a8d (patch) | |
tree | 4af61c82f5fbd7a71c332c5fc0d7f581a11d4c0f /dev-scheme/schoca | |
parent | Do not warn about global options #329437 by Marcin Mirosław. (diff) | |
download | historical-25ab4a12a42f21fb9d6cee43fa37c30105d42a8d.tar.gz historical-25ab4a12a42f21fb9d6cee43fa37c30105d42a8d.tar.bz2 historical-25ab4a12a42f21fb9d6cee43fa37c30105d42a8d.zip |
Fix SRC_URI and port to EAPI 3
Package-Manager: portage-2.2_rc86/cvs/Linux i686
Diffstat (limited to 'dev-scheme/schoca')
-rw-r--r-- | dev-scheme/schoca/ChangeLog | 8 | ||||
-rw-r--r-- | dev-scheme/schoca/Manifest | 6 | ||||
-rw-r--r-- | dev-scheme/schoca/metadata.xml | 4 | ||||
-rw-r--r-- | dev-scheme/schoca/schoca-0.3.0.ebuild | 41 |
4 files changed, 26 insertions, 33 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/Manifest b/dev-scheme/schoca/Manifest index 00da30936232..593b5be6cae3 100644 --- a/dev-scheme/schoca/Manifest +++ b/dev-scheme/schoca/Manifest @@ -1,4 +1,4 @@ DIST schoca-0.3.0.tar.bz2 49738 RMD160 e900118731d94ebd735aa4108b28261fff03e948 SHA1 57374cd0e605ea12194cd90ce9e5c3be8a528f80 SHA256 5527a8bf07faa7e715626612735a044bf970480637d98eea612bf61bb7042511 -EBUILD schoca-0.3.0.ebuild 1881 RMD160 d1392f863d5a92a227592064abbeba2aac994757 SHA1 ce821263739580247ab240402f760a6647c74740 SHA256 2e4fe8df10408a85299893b015401a876ec64643cd47674bb5ab7a15174ca94d -MISC ChangeLog 772 RMD160 c3bd76cb5a0f63d564e88ea429bdff905f6f52d2 SHA1 307a3e7af62b5d77debdb7bbfc37ed5787a7a061 SHA256 c4109d17bb17b7d0f07c826bd5f58d858522fdca7662e9fcab21074b1d0ed52e -MISC metadata.xml 399 RMD160 17c5ed6283d55f70d27dea5cb05401ae627765d0 SHA1 af62fec14a9e69a3e3d0fb9a42af34e9405b36aa SHA256 2bbf2111d3d894d0a7dd521dc2f4513bd9465a82b2c62ec561d2c0c2ad74ca27 +EBUILD schoca-0.3.0.ebuild 1532 RMD160 132e33403e9fd8f1dcfb35da06fd2409930aed02 SHA1 6ea6bfd56f6f253ca54754047b7e92c3b11b8df6 SHA256 253460d1043391c98add8f115fc61bf64d3b3cffacbcddb5086ced68568aad3d +MISC ChangeLog 892 RMD160 f770d8b60b2aa40a635d9e97aac72992a0cc1725 SHA1 6552fc7bc9444f8a95728ef2551219a14fe09e3d SHA256 251a23e76b2d07c29c9efb818ee90cb33dfa7aff53ae2f9e2825b16035f66e8a +MISC metadata.xml 407 RMD160 75ada7f66e8f425d48a3d3a778506b5711a77fdd SHA1 b8c3a5185e64d938c5ebf8d601812b1dea12fe94 SHA256 3e64c19d07b75b1b88de25361554d6ba649cc3c2494c288e297d45e8a655ca80 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" } |