diff --git a/dev-lang/parrot/Manifest b/dev-lang/parrot/Manifest index 6a4689963..4ab701463 100644 --- a/dev-lang/parrot/Manifest +++ b/dev-lang/parrot/Manifest @@ -1,3 +1,5 @@ DIST parrot-4.3.0.tar.bz2 4322552 RMD160 6fabc852f2128d4d3919a6a7d1d73c7c18819c0e SHA1 da5d86180744fed7c7e020a535f413b4a7520fa7 SHA256 5c3f5ba2de06f6adb53b7835374a4f3e0601ec63e8a1d1dba6c6a07e12cc2990 +DIST parrot-4.4.0.tar.bz2 4324058 RMD160 8420b7d9e2e78a607a6224f6beefbad8f7e4cf32 SHA1 b815fa72a91d4d1e0ae5c830172f61d3e4a3a550 SHA256 348ce13fc136afc74a7b50b094f64d8cb00f83f0cd3d59acc6fa4e63c824fa4d EBUILD parrot-4.3.0.ebuild 2408 RMD160 cc50bb4031f95aee4c27cd1fa7dd1a59a7615e6e SHA1 56a604d9223d796da328697e0f0ba306cb6281f1 SHA256 848b987e3fafaddc5849000546008351e13481067b10ae84bd68ae257ee33618 +EBUILD parrot-4.4.0.ebuild 2310 RMD160 bd9b9b2af4f44041667416e6cbc7dff574cae2dc SHA1 0d818e7efbd6baaedef0a824dafc8f2dfef75e55 SHA256 2208ed2d478774663bb53153d4159b617333391bb237bfccd125ca573c580e60 MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca diff --git a/dev-lang/parrot/parrot-4.4.0.ebuild b/dev-lang/parrot/parrot-4.4.0.ebuild new file mode 100644 index 000000000..153c6c4da --- /dev/null +++ b/dev-lang/parrot/parrot-4.4.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +# There's multiple small issues at the moment, so ... +RESTRICT="test" + +inherit eutils multilib + +DESCRIPTION="Virtual machine designed to efficiently compile and execute bytecode for dynamic languages" +HOMEPAGE="http://www.parrot.org/" +SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/stable/${PV}/${P}.tar.bz2" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="opengl nls doc examples gdbm gmp ssl +unicode pcre" + +RDEPEND="sys-libs/readline + opengl? ( media-libs/freeglut ) + nls? ( sys-devel/gettext ) + unicode? ( >=dev-libs/icu-2.6 ) + gdbm? ( >=sys-libs/gdbm-1.8.3-r1 ) + gmp? ( >=dev-libs/gmp-4.1.4 ) + ssl? ( dev-libs/openssl ) + pcre? ( dev-libs/libpcre )" + +DEPEND="dev-lang/perl[doc?] + ${RDEPEND}" + +src_configure() { + myconf="--disable-rpath" + use unicode || myconf+=" --without-icu" + use ssl || myconf+=" --without-crypto" + use gdbm || myconf+=" --without-gdbm" + use nls || myconf+=" --without-gettext" + use gmp || myconf+=" --without-gmp" + use opengl || myconf+=" --without-opengl" + use pcre || myconf+=" --without-pcre" + + perl Configure.pl \ + --ccflags="${CFLAGS}" \ + --linkflags="${LDFLAGS}" \ + --prefix="${EPREFIX}"/usr \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --mandir="${EPREFIX}"/usr/share/man \ + --sysconfdir="${EPREFIX}"/etc \ + --sharedstatedir="${EPREFIX}"/var/lib/parrot \ + $myconf || die +} + +src_compile() { + export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib + # occasionally dies in parallel make + emake -j1 || die + if use doc ; then + emake -j1 html || die + fi +} + +src_test() { + emake -j1 test || die +} + +src_install() { + emake -j1 install-dev DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" || die + dodoc CREDITS DONORS.pod PBC_COMPAT PLATFORMS RESPONSIBLE_PARTIES TODO || die + if use examples; then + insinto "/usr/share/doc/${PF}/examples" + doins -r examples/* || die + fi + if use doc; then + insinto "/usr/share/doc/${PF}/editor" + doins -r editor || die + cd docs/html + dohtml -r developer.html DONORS.pod.html index.html ops.html parrotbug.html pdds.html \ + pmc.html tools.html docs src tools || die + fi +}