]> Pileus Git - ~andy/sunrise/commitdiff
media-video/mtasc: New ebuild for bug 110341, thanks to James Le Cuirot and Gorazd...
authorMikael Lammentausta <mikael.lammentausta@gmail.com>
Fri, 16 May 2008 05:59:51 +0000 (05:59 +0000)
committerMikael Lammentausta <mikael.lammentausta@gmail.com>
Fri, 16 May 2008 05:59:51 +0000 (05:59 +0000)
svn path=/sunrise/; revision=6194

media-video/mtasc/ChangeLog [new file with mode: 0644]
media-video/mtasc/Manifest [new file with mode: 0644]
media-video/mtasc/metadata.xml [new file with mode: 0644]
media-video/mtasc/mtasc-1.12.ebuild [new file with mode: 0644]

diff --git a/media-video/mtasc/ChangeLog b/media-video/mtasc/ChangeLog
new file mode 100644 (file)
index 0000000..8b50278
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for media-video/mtasc
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  16 May 2008; Mikael Lammentausta <mikael.lammentausta at gmail.com >
+  +mtasc-1.12.ebuild, +metadata.xml:
+  New ebuild for bug 110341, thanks to James Le Cuirot and Gorazd Bizjak
+
diff --git a/media-video/mtasc/Manifest b/media-video/mtasc/Manifest
new file mode 100644 (file)
index 0000000..34ac494
--- /dev/null
@@ -0,0 +1,4 @@
+DIST install.ml 3764 RMD160 0763f3e975d4de2b894734c3b43f42d578285f7f SHA1 535c968aa3d150881b2c230d18645c25dbfa9980 SHA256 59bfe448e9a65427954100d57593085acaef7f4a222544f81651b442fe3318f8
+EBUILD mtasc-1.12.ebuild 1197 RMD160 0b4fde74ec204ec27d5a98c1efa18539c62b2f12 SHA1 f42a5df199655333f515c16c105cadd32c4f71fc SHA256 c4edf1ba95c4ce4cd470f38ed67b1a22fb9cb893d1af3da7182783d74fb7de99
+MISC ChangeLog 300 RMD160 b70c4eade01d2a2f225f1edcd73cb9b5be6d0c57 SHA1 0d69dd35d1abd9e093a7102429ff1aa756aa67b1 SHA256 1afef04655edbfca6ed7b2127e9444df941128bd90f519eb2879a5b47edb279d
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/media-video/mtasc/metadata.xml b/media-video/mtasc/metadata.xml
new file mode 100644 (file)
index 0000000..7e32869
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/media-video/mtasc/mtasc-1.12.ebuild b/media-video/mtasc/mtasc-1.12.ebuild
new file mode 100644 (file)
index 0000000..98695fa
--- /dev/null
@@ -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 ..."
+}