diff options
author | Mikael Lammentausta <mikael.lammentausta@gmail.com> | 2008-05-16 05:59:51 +0000 |
---|---|---|
committer | Mikael Lammentausta <mikael.lammentausta@gmail.com> | 2008-05-16 05:59:51 +0000 |
commit | 46b7a6d501add73be1068c3085ac4653994a15b6 (patch) | |
tree | 38ca506c7a52f1d2d7153af92032ce41da9c1bc6 /media-video/mtasc/mtasc-1.12.ebuild | |
parent | media-video/swfmill: New ebuild for bug 109611, thanks to James Le Cuirot and... (diff) | |
download | sunrise-46b7a6d501add73be1068c3085ac4653994a15b6.tar.gz sunrise-46b7a6d501add73be1068c3085ac4653994a15b6.tar.bz2 sunrise-46b7a6d501add73be1068c3085ac4653994a15b6.zip |
media-video/mtasc: New ebuild for bug 110341, thanks to James Le Cuirot and Gorazd Bizjak
svn path=/sunrise/; revision=6194
Diffstat (limited to 'media-video/mtasc/mtasc-1.12.ebuild')
-rw-r--r-- | media-video/mtasc/mtasc-1.12.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-video/mtasc/mtasc-1.12.ebuild b/media-video/mtasc/mtasc-1.12.ebuild new file mode 100644 index 000000000..98695fa09 --- /dev/null +++ b/media-video/mtasc/mtasc-1.12.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit cvs versionator + +ECVS_SERVER="cvs.motion-twin.com:/cvsroot" + +DESCRIPTION="The Motion-Twin ActionScript 2 Compiler" +HOMEPAGE="http://www.mtasc.org" +SRC_URI="http://www.mtasc.org/doc/mtasc/install.ml" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="dev-lang/ocaml" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/install.ml" . + sed -i "/download();/d" install.ml + + for M in extlib-dev swflib extc; do + ECVS_MODULE="ocaml/${M}" + cvs_src_unpack + done + + ECVS_MODULE="ocaml/mtasc" + ECVS_BRANCH="v`replace_all_version_separators -`" + cvs_src_unpack +} + +src_compile() { + ocaml install.ml || die "ocaml install failed" +} + +src_install() { + # Don't install CVS directories. + find ocaml/mtasc/std{,8} -name "CVS" -exec rm -rf {} \; 2> /dev/null + + dobin bin/mtasc bin/mtasc-byte + insinto /usr/share/mtasc + doins -r ocaml/mtasc/std{,8} + dodoc ocaml/mtasc/doc/{Readme.linux,CHANGES.txt} +} + +pkg_postinst() { + einfo "mm classes are installed in /usr/share/mtasc/std" + einfo "so when needed you should compile with:" + einfo "mtasc -cp /usr/share/mtasc/std ..." +} |