aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/log4cpp.rb
blob: da6cd2eaf925fd72893247a73f080a3cc2729cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'formula'

class Log4cpp < Formula
  url 'http://downloads.sourceforge.net/project/log4cpp/log4cpp-1.0.x%20%28current%29/log4cpp-1.0/log4cpp-1.0.tar.gz'
  homepage 'http://log4cpp.sourceforge.net/'
  md5 '1face50ead0790d1297dfb04bacf273c'

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end
this.Activity = $resource( 'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments', {alt:'json', callback:'JSON_CALLBACK'}, { get: {method:'JSON', params:{visibility:'@self'}}, replies: {method:'JSON', params:{visibility:'@self', comments:'@comments'}} }); }, {inject:['$resource']}); function BuzzController(){ this.$watch('$location.hashPath', this.userChange); } BuzzController.prototype = { userChange: function(){ this.userId = this.$location.hashPath; this.activities = this.Activity.get({userId:this.userId}); }, expandReplies: function(activity) { var self = this; if (activity.replies) { activity.replies.show = !activity.replies.show; } else { activity.replies = this.Activity.replies({userId:this.userId, activityId:activity.id}, function(){ activity.replies.show = true; }); } } }; angular.widget('my:expand', function(element){ element.css('display', 'block'); this.descend(true); return function(element) { element.hide(); var watch = element.attr('expand'); this.$watch(watch, function(value){ if (value) { element.delay(0).slideDown('slow'); } else { element.slideUp('slow'); } }); }; });