summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <TomWij@live.com>2012-09-01 02:41:02 +0200
committerTom Wijsman <TomWij@live.com>2012-09-01 02:41:02 +0200
commit6260e0ffa6f1e49e19924dab9c7365bb95fc5557 (patch)
tree929372a12bdf66ee3ca358b7e4d5e9a4213282f9
parentInitial push. Added Meteor 0.3.9 ebuild. (diff)
downloadTomWij-6260e0ffa6f1e49e19924dab9c7365bb95fc5557.tar.gz
TomWij-6260e0ffa6f1e49e19924dab9c7365bb95fc5557.tar.bz2
TomWij-6260e0ffa6f1e49e19924dab9c7365bb95fc5557.zip
Added Meteor 0.4.0 ebuild.
-rw-r--r--www-servers/meteor/meteor-0.4.0.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/meteor/meteor-0.4.0.ebuild b/www-servers/meteor/meteor-0.4.0.ebuild
new file mode 100644
index 0000000..bdf7dea
--- /dev/null
+++ b/www-servers/meteor/meteor-0.4.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
+}
+