diff options
author | Tom Wijsman <TomWij@live.com> | 2012-10-19 18:31:26 +0200 |
---|---|---|
committer | Tom Wijsman <TomWij@live.com> | 2012-10-19 18:31:26 +0200 |
commit | de1f25450b00f1b8b74c2a3a45eea4aa06536fdd (patch) | |
tree | a2ebf27a557c72778f2475ca170baf0be0ce24a3 | |
parent | Added Meteor 0.4.2 ebuild. (diff) | |
download | TomWij-de1f25450b00f1b8b74c2a3a45eea4aa06536fdd.tar.gz TomWij-de1f25450b00f1b8b74c2a3a45eea4aa06536fdd.tar.bz2 TomWij-de1f25450b00f1b8b74c2a3a45eea4aa06536fdd.zip |
Added Meteor 0.5.0 ebuild.
-rw-r--r-- | www-servers/meteor/meteor-0.5.0.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/meteor/meteor-0.5.0.ebuild b/www-servers/meteor/meteor-0.5.0.ebuild new file mode 100644 index 0000000..bdf7dea --- /dev/null +++ b/www-servers/meteor/meteor-0.5.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="Meteor is an open-source platform for building top-quality web apps in a fraction of the time, whether you're an expert developer or just getting started." +HOMEPAGE="http://meteor.com/" +SRC_URI="https://github.com/meteor/meteor/tarball/v${PV} -> $P.tar.gz" +LICENSE="https://raw.github.com/meteor/meteor/master/LICENSE.txt" + +SLOT="0" +KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd" + +src_unpack() { + unpack ${A} + mv meteor* ${P} +} + +src_prepare() { + cd ${P} + + touch .git + ./meteor --version || die + git rev-parse HEAD > .git_version.txt + rm .git + mv dev_bundle/* . + mv dev_bundle/.bundle_version.txt . + rm -rf dev_bundle + + rm -rf admin + rm -rf packages/*/.meteor/local + rm -rf examples/*/.meteor/local + rm -rf examples/unfinished + + sed -e 's/DEV_BUNDLE=$(dirname "$SCRIPT_DIR")/DEV_BUNDLE=$SCRIPT_DIR/g' -i meteor +} + +src_install() { + mkdir -p ${D}/usr/local/meteor + cp -ar ${WORKDIR}/${P}/* ${D}/usr/local/meteor + cp ${WORKDIR}/${P}/.bundle_version.txt ${D}/usr/local/meteor + + mkdir -p ${D}/usr/local/bin + ln -s /usr/local/meteor/meteor ${D}/usr/local/bin/meteor +} + |