Permalink
Browse files

misc fixups

* latest_version_for is different for dbs and normal packages
* export CC explicitly for kenneth reitz's executables
  • Loading branch information...
1 parent 9ccf0c4 commit 042611a40246e12a5a85c4a9d9479197678b4221 @atmos atmos committed Dec 8, 2011
@@ -44,6 +44,11 @@ def plist_for(name)
"postgresql" => "org.postgresql.postgres.plist" }[name]
end
+ def latest_version_for(name)
+ path = %x{#{HOMEBREW} info #{name}| grep files | head -n1 | awk '{print $1}'}.chomp
+ path.split('/').last
+ end
+
def plist_fullpath_for(name)
"#{PREFIX}/Cellar/#{name}/#{latest_version_for(name)}/#{plist_for(name)}"
end
@@ -9,6 +9,8 @@ LDFLAGS="-L$SMEAGOL_ROOT_DIR/lib"; export LDFLAGS
HOMEBREW_TEMP="$SMEAGOL_ROOT_DIR/tmp"; export HOMEBREW_TEMP
RBENV_ROOT="$SMEAGOL_ROOT_DIR/.rbenv"; export RBENV_ROOT
+CC=/usr/bin/gcc-4.2; export CC
+
export CONFIGURE_ARGS="--with-cflags='$CFLAGS' --with-ldflags='$LDFLAGS'"
if [[ -s $SMEAGOL_ROOT_DIR/.rvm/scripts/rvm ]] ; then
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>Label</key>
- <string>io.redis.redis-server</string>
- <key>ProgramArguments</key>
- <array>
- <string><%= @root %>/Cellar/redis/HEAD/bin/redis-server</string>
- <string><%= @root %>/etc/redis.conf</string>
- </array>
- <key>RunAtLoad</key>
- <true/>
- <key>KeepAlive</key>
- <true/>
- <key>UserName</key>
- <string>atmos</string>
- <key>WorkingDirectory</key>
- <string><%= @root %></string>
- <key>StandardErrorPath</key>
- <string><%= @root %>/var/log/redis/output.log</string>
- <key>StandardOutPath</key>
- <string><%= @root %>/var/log/redis/output.log</string>
-</dict>
-</plist>

0 comments on commit 042611a

Please sign in to comment.