├── willgit.rb ├── wol.rb ├── titlecase.rb ├── git-utils.rb ├── tcpstat.rb ├── gerrit-tools.rb ├── bonnie.rb ├── shaper-probe.rb ├── blink1.rb ├── unyaffs.rb ├── rtl-sdr.rb ├── stp.rb ├── hg-fast-export.rb ├── git-svn-abandon.rb ├── redis-tools.rb ├── uniset.rb ├── despotify.rb ├── lastfm_fplib.rb ├── otx.rb ├── open-sg.rb ├── qt-mobility.rb ├── git-hg.rb ├── codemod.rb ├── odt2txt.rb ├── google-js-test.rb ├── playdar.rb ├── git-hooks.rb ├── libemu.rb ├── colormake.rb ├── opentracker.rb ├── libgarmin.rb ├── darwinbuild.rb ├── exact-image.rb ├── smpeg.rb ├── README.md └── sigar.rb /willgit.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Willgit < Formula 4 | homepage 'http://git-wt-commit.rubyforge.org/' 5 | head 'git://gitorious.org/willgit/mainline.git' 6 | 7 | def install 8 | prefix.install 'bin' 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /wol.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Wol < Formula 4 | head 'https://github.com/kylef/wol.git' 5 | homepage 'http://kylefuller.co.uk/' 6 | 7 | def install 8 | system "make" 9 | bin.install "bin/wol" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /titlecase.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Titlecase < Formula 4 | head 'https://github.com/ap/titlecase.git' 5 | homepage 'http://plasmasturm.org/code/titlecase/' 6 | 7 | def install 8 | bin.install "titlecase" 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /git-utils.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class GitUtils < Formula 4 | head 'https://github.com/ddollar/git-utils.git' 5 | homepage 'https://github.com/ddollar/git-utils' 6 | 7 | def install 8 | bin.install Dir['git-*'] 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /tcpstat.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Tcpstat < Formula 4 | head 'https://github.com/jtt/tcpstat.git' 5 | homepage 'https://github.com/jtt/tcpstat' 6 | 7 | def install 8 | system "make" 9 | bin.install 'tcpstat' 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /gerrit-tools.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class GerritTools < Formula 4 | head 'https://github.com/indirect/gerrit-tools.git' 5 | homepage 'https://github.com/indirect/gerrit-tools' 6 | 7 | def install 8 | prefix.install 'bin' 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /bonnie.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Bonnie < Formula 4 | homepage 'http://code.google.com/p/bonnie-64/' 5 | head 'http://bonnie-64.googlecode.com/svn/trunk/' 6 | 7 | def install 8 | system "make" 9 | bin.install "Bonnie" => "bonnie" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /shaper-probe.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class ShaperProbe < Formula 4 | homepage 'https://code.google.com/p/shaperprobe/' 5 | head 'https://code.google.com/p/shaperprobe/' 6 | 7 | def install 8 | system "make -f Makefile.osx" 9 | bin.install "prober" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /blink1.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Blink1 < Formula 4 | homepage 'http://thingm.com/products/blink-1.html' 5 | head 'https://github.com/todbot/blink1.git' 6 | 7 | def install 8 | system "cd commandline && make" 9 | bin.install "commandline/blink1-tool" 10 | end 11 | end 12 | 13 | -------------------------------------------------------------------------------- /unyaffs.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Unyaffs < Formula 4 | head 'http://unyaffs.googlecode.com/svn/trunk/' 5 | homepage 'http://code.google.com/p/unyaffs/' 6 | 7 | def install 8 | system "#{ENV.cc} #{ENV.cflags} -o unyaffs unyaffs.c" 9 | bin.install 'unyaffs' 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /rtl-sdr.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class RtlSdr < Formula 4 | homepage 'http://sdr.osmocom.org/trac/wiki/rtl-sdr' 5 | head 'git://git.osmocom.org/rtl-sdr.git' 6 | 7 | depends_on 'cmake' => :build 8 | depends_on 'libusb' 9 | 10 | def install 11 | system "cmake", ".", *std_cmake_args 12 | system "make", "install" 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /stp.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Stp < Formula 4 | head 'http://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp', :revision => '1134' 5 | homepage 'http://sites.google.com/site/stpfastprover/' 6 | 7 | def install 8 | system "./scripts/configure", "--with-prefix=#{prefix}" 9 | system "make install" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /hg-fast-export.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class HgFastExport < Formula 4 | homepage 'http://packages.debian.org/source/sid/hg-fast-export' 5 | head 'git://repo.or.cz/fast-export.git' 6 | 7 | def install 8 | bin.install 'hg-fast-export.py', 'hg-fast-export.sh', 9 | 'hg-reset.py', 'hg-reset.sh', 10 | 'hg2git.py' 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /git-svn-abandon.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class GitSvnAbandon < Formula 4 | homepage 'https://github.com/nothingmuch/git-svn-abandon' 5 | head 'https://github.com/nothingmuch/git-svn-abandon.git' 6 | 7 | # Pending request for stable tab: 8 | # https://github.com/nothingmuch/git-svn-abandon/issues/2 9 | 10 | def install 11 | bin.install Dir['git-svn-abandon-*'] 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /redis-tools.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class RedisTools < Formula 4 | head 'https://github.com/antirez/redis-tools.git' 5 | homepage 'https://github.com/antirez/redis-tools' 6 | 7 | def install 8 | # Architecture isn't detected correctly on 32bit Snow Leopard without help 9 | ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386" 10 | system "make" 11 | bin.install ["redis-load", "redis-stat"] 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /uniset.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Uniset < Formula 4 | homepage 'https://github.com/depp/uniset' 5 | head 'https://github.com/depp/uniset.git' 6 | 7 | depends_on 'autoconf' => :build 8 | depends_on 'automake' => :build 9 | 10 | def install 11 | system "autoreconf -i" 12 | system "./configure", "--disable-dependency-tracking", 13 | "--prefix=#{prefix}" 14 | system "make install" 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /despotify.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Despotify < Formula 4 | homepage 'http://despotify.se/' 5 | head 'https://svn.code.sf.net/p/despotify/code/src' 6 | 7 | depends_on 'pkg-config' => :build 8 | depends_on 'libao' 9 | depends_on 'libvorbis' 10 | depends_on 'mpg123' 11 | depends_on 'libtool' 12 | 13 | def install 14 | system "make Makefile.local.mk" 15 | inreplace "Makefile.local.mk", "# INSTALL_PREFIX = /usr", "INSTALL_PREFIX = #{prefix}" 16 | system "make" 17 | system "make install" 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /lastfm_fplib.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class LastfmFplib < Formula 4 | homepage 'http://blog.last.fm/2007/08/29/audio-fingerprinting-for-clean-metadata' 5 | head 'svn://svn.audioscrobbler.net/recommendation/MusicID/lastfm_fplib' 6 | 7 | depends_on 'cmake' => :build 8 | depends_on 'taglib' 9 | depends_on 'mad' 10 | depends_on 'libsamplerate' 11 | depends_on 'fftw' 12 | 13 | def install 14 | Formula.factory("lastfmfpclient").inreplace_fix 15 | system "cmake", ".", *std_cmake_args 16 | system "make install" 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /otx.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Otx < Formula 4 | homepage 'http://otx.osxninja.com/' 5 | head 'http://otx.osxninja.com/builds/trunk/', :using => :svn 6 | 7 | depends_on :xcode # For working xcodebuild. 8 | 9 | def install 10 | inreplace 'otx.xcodeproj/project.pbxproj' do |s| 11 | s.gsub! "MacOSX10.6.sdk", "MacOSX#{MacOS.version}.sdk" 12 | end 13 | 14 | system 'xcodebuild SYMROOT=build' 15 | build = buildpath/'build/Release' 16 | bin.install build/"otx" 17 | prefix.install build/"otx.app" 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /open-sg.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class OpenSg < Formula 4 | homepage 'http://www.opensg.org/wiki' 5 | 6 | head 'cvs://:pserver:anonymous@opensg.cvs.sourceforge.net:/cvsroot/opensg:OpenSG' 7 | 8 | depends_on 'libtiff' 9 | depends_on 'jpeg' 10 | 11 | def install 12 | ENV.deparallelize 13 | ENV.no_optimization 14 | system "./configure", "--prefix=#{prefix}", "--enable-glut", "--enable-tif", "--enable-jpg" 15 | cd 'Builds/i386-apple-darwin-g++' do 16 | system "make opt" 17 | system "make install" 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /qt-mobility.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class QtMobility < Formula 4 | homepage 'http://qt.nokia.com/products/qt-addons/mobility' 5 | head 'git://gitorious.org/qt-mobility/qt-mobility.git' 6 | 7 | depends_on 'qt' 8 | 9 | def install 10 | system "./configure", "-release", "-prefix", prefix, "-qmake-exec", "#{HOMEBREW_PREFIX}/bin/qmake" 11 | system "make" 12 | ENV.j1 13 | system "make install" 14 | 15 | # Move all .apps out of the "bin/" and into the prefix (like qt formula) 16 | Pathname.glob(bin + '*.app').each do |path| 17 | mv path, prefix 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /git-hg.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class HgInstalled < Requirement 4 | satisfy { which 'hg' } 5 | 6 | def message; <<-EOS.undent 7 | Mercurial is required to use this software. 8 | 9 | You can install this with Homebrew using: 10 | brew install mercurial 11 | 12 | Or you can use an official installer from: 13 | http://mercurial.selenic.com/ 14 | EOS 15 | end 16 | end 17 | 18 | class GitHg < Formula 19 | head 'https://github.com/offbytwo/git-hg.git' 20 | homepage 'http://offbytwo.com/git-hg/' 21 | 22 | depends_on HgInstalled 23 | 24 | def install 25 | prefix.install Dir['*'] 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /codemod.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Codemod < Formula 4 | homepage 'https://github.com/facebook/codemod' 5 | head 'https://github.com/facebook/codemod.git' 6 | 7 | depends_on :python 8 | 9 | def install 10 | ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages' 11 | (libexec+'lib/python2.7/site-packages').mkpath 12 | system "python", 'setup.py', 'install', "--prefix=#{libexec}" 13 | bin.install libexec+'bin/codemod.py' => 'codemod' 14 | bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH']) 15 | end 16 | 17 | test do 18 | system "#{bin}/codemod", '--test' 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /odt2txt.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Odt2txt < Formula 4 | # Retrieve the HEAD because no releases have been made since the commit that 5 | # includes Makefile rules for Mac OS X. 6 | head 'git://repo.or.cz/odt2txt.git' 7 | homepage 'http://stosberg.net/odt2txt/' 8 | 9 | def install 10 | # the build flags in the Makefile contain "/opt" paths 11 | args = ["CC=#{ENV.cc}", 12 | "CFLAGS=#{ENV.cflags}", 13 | "LDFLAGS=#{ENV.cppflags}", 14 | "DESTDIR=#{prefix}"] 15 | 16 | # Use the -B flag to force make the install target to circumvent bugs in the Makefile 17 | system "make", "-B", "install", *args 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /google-js-test.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class NeedsSnowLeopard < Requirement 4 | satisfy MacOS.version >= :snow_leopard 5 | 6 | def message 7 | "Google JS Test requires Mac OS X 10.6 (Snow Leopard) or newer." 8 | end 9 | end 10 | 11 | class GoogleJsTest < Formula 12 | homepage 'http://code.google.com/p/google-js-test/' 13 | url 'http://google-js-test.googlecode.com/files/gjstest-1.0.8.tar.bz2' 14 | sha1 '2209dd0c700f9420e29a844920f8614e3d97156d' 15 | 16 | depends_on NeedsSnowLeopard 17 | depends_on 'gflags' 18 | depends_on 'glog' 19 | depends_on 'protobuf' 20 | depends_on 're2' 21 | depends_on 'v8' 22 | 23 | def install 24 | system "make", "PREFIX=#{prefix}" 25 | system "make", "PREFIX=#{prefix}", "install" 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /playdar.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Playdar < Formula 4 | homepage 'http://www.playdar.org' 5 | head 'https://github.com/RJ/playdar-core.git' 6 | 7 | depends_on 'taglib' 8 | depends_on 'erlang' 9 | 10 | def install 11 | system "make all" 12 | system "make scanner" 13 | 14 | Dir['playdar_modules/*/src'].each{ |fn| rm_rf fn } 15 | rm_rf 'playdar_modules/library/priv/taglib_driver/scanner_visual_studio_sln' 16 | File.unlink 'playdar_modules/library/priv/taglib_driver/taglib_json_reader.cpp' 17 | 18 | # otherwise playdar crashes 19 | prefix.install 'ebin', 'playdar_modules', 'priv', 'etc' 20 | 21 | inreplace 'playdarctl', 'cd `dirname $0`', "cd #{prefix}" 22 | inreplace 'playdarctl', 'EBIN=./ebin/', "EBIN=#{prefix}/ebin" 23 | 24 | bin.install 'playdarctl' 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /git-hooks.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class GitHooks < Formula 4 | 5 | homepage 'https://github.com/icefox/git-hooks' 6 | head 'https://github.com/icefox/git-hooks.git' 7 | 8 | def install 9 | bin.install "git-hooks" 10 | end 11 | 12 | def caveats 13 | <<-EOS.undent 14 | Run 'git hooks --install' Inside a git project to change that projects 15 | git hooks to use git-hooks hooks. 'git hooks --uninstall' can be run at 16 | any time to go back to the old hooks that were installed before 17 | (typically the default which does nothing). 18 | 19 | Run 'git hooks --installglobal' to force any new git repository or any 20 | git repository you clone to have a reminders to install git hooksi. (It 21 | can't be on by default for security reasons of course) 22 | EOS 23 | end 24 | 25 | end 26 | -------------------------------------------------------------------------------- /libemu.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Libemu < Formula 4 | head 'http://git.carnivore.it/libemu.git' 5 | homepage 'http://libemu.carnivore.it/' 6 | 7 | option "enable-python-bindings", "Compile bindings for Python" 8 | 9 | depends_on 'pkg-config' => :build 10 | depends_on :automake 11 | depends_on :libtool 12 | 13 | def install 14 | inreplace 'Makefile.am' do |s| 15 | # Need to fix the static location of pkgconfigpath 16 | s.gsub! '/usr/lib/pkgconfig/', "#{lib}/pkgconfig/" 17 | end 18 | args = %W[ 19 | --disable-debug 20 | --disable-dependency-tracking 21 | --prefix=#{prefix} 22 | ] 23 | args << "--enable-python-bindings" if build.include? 'enable-python-bindings' 24 | 25 | system "autoreconf -v -i" 26 | system "./configure", *args 27 | system "make install" 28 | end 29 | end 30 | -------------------------------------------------------------------------------- /colormake.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Colormake < Formula 4 | homepage 'http://bre.klaki.net/programs/colormake/' 5 | head 'https://github.com/pagekite/Colormake.git' 6 | 7 | def install 8 | libexec.install 'colormake.pl' 9 | 10 | # The following two scripts are not the ones shipped with colormake, 11 | # but heavily based on the ones used by Debian. 12 | (bin+'colormake').write <<-EOS.undent 13 | #!/bin/sh 14 | /usr/bin/make \"$@\" 2>&1 | #{libexec}/colormake.pl 15 | exit ${PIPESTATUS[0]} 16 | EOS 17 | 18 | (bin+'clmake').write <<-EOS.undent 19 | #!/bin/sh 20 | SIZE=`/bin/stty size` 21 | [ -z "${CLMAKE_OPTS}" ] && CLMAKE_OPTS='-r -pError' 22 | /usr/bin/make \"$@\" 2>&1 | #{libexec}/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS} 23 | exit ${PIPESTATUS[0]} 24 | EOS 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /opentracker.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Libowfat < Formula 4 | url 'http://dl.fefe.de/libowfat-0.28.tar.bz2' 5 | sha1 '' 6 | homepage 'http://www.fefe.de/libowfat/' 7 | end 8 | 9 | class Opentracker < Formula 10 | head 'cvs://:pserver:anoncvs:@cvs.erdgeist.org:/home/cvsroot:opentracker' 11 | homepage 'http://erdgeist.org/arts/software/opentracker/' 12 | 13 | def install 14 | # First libowfat must be compiled and installed where opentracker is expecting it 15 | libowfat_include = Pathname.new(pwd) + 'libowfat' 16 | Libowfat.new.brew do 17 | system "make", "install", "INCLUDEDIR=#{libowfat_include}", "LIBDIR=#{libowfat_include}", "MAN3DIR=." 18 | end 19 | 20 | # Tell opentracker that libowfat headers are located in the same directory as itself 21 | ENV['PREFIX'] = '.' 22 | 23 | system "make", "opentracker" 24 | bin.install "opentracker" 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /libgarmin.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Libgarmin < Formula 4 | head 'http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev/' 5 | homepage 'http://libgarmin.sourceforge.net/' 6 | 7 | def rewrite_version 8 | File.open("version.h","w") { |f| f.puts "#define LIBVERSION \"libgarmin 0.1\"" } 9 | end 10 | 11 | def install 12 | system "./autosh.sh" unless File.exist? "configure" 13 | system "./configure", "--prefix=#{prefix}" 14 | 15 | # Fix OS X include 16 | inreplace Dir["{src,utils}/*.c"], "#include ", "#include " 17 | 18 | # The code for creating 'verison.h' doesn't work on OS X. 19 | inreplace "Makefile" do |s| 20 | s.change_make_var! "BUILT_SOURCES", "" 21 | end 22 | 23 | # Yep, need to recreate before make and make install 24 | rewrite_version 25 | system "make" 26 | rewrite_version 27 | system "make install" 28 | end 29 | end 30 | -------------------------------------------------------------------------------- /darwinbuild.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Darwinbuild < Formula 4 | homepage 'http://darwinbuild.macosforge.org/' 5 | head 'http://svn.macosforge.org/repository/darwinbuild/trunk/' 6 | 7 | def patches 8 | DATA 9 | end 10 | 11 | depends_on :xcode # For working xcodebuild. 12 | 13 | def install 14 | ENV.delete('CC') 15 | ENV.delete('LD') 16 | system "xcodebuild", "-configuration", "Release", "install", "DSTROOT=/", "PREFIX=#{prefix}", "SYMROOT=build" 17 | end 18 | end 19 | 20 | __END__ 21 | diff --git a/common.mk b/common.mk 22 | index 424109b..56fad54 100644 23 | --- a/common.mk 24 | +++ b/common.mk 25 | @@ -15,9 +15,9 @@ BINDIR=$(DESTDIR)$(PREFIX)/bin 26 | DATDIR=$(DESTDIR)$(PREFIX)/share 27 | INCDIR=$(DESTDIR)$(PREFIX)/include 28 | INSTALL=install 29 | -INSTALL_EXE_FLAGS=-m 0755 -o root -g wheel 30 | +INSTALL_EXE_FLAGS=-m 0755 31 | INSTALL_DIR_FLAGS=$(INSTALL_EXE_FLAGS) 32 | -INSTALL_DOC_FLAGS=-m 0644 -o root -g wheel 33 | +INSTALL_DOC_FLAGS=-m 0644 34 | 35 | SED=/usr/bin/sed 36 | 37 | 38 | -------------------------------------------------------------------------------- /exact-image.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class ExactImage < Formula 4 | homepage 'http://www.exactcode.com/site/open_source/exactimage/' 5 | head 'https://svn.exactcode.de/exact-image/trunk' 6 | 7 | depends_on 'libagg' => :build 8 | depends_on 'pkg-config' => :build 9 | depends_on 'freetype' => :optional 10 | 11 | # fixing a double inclusion with a #pragma once 12 | patch :DATA 13 | 14 | def install 15 | system "./configure", "--prefix=#{prefix}" 16 | system "make", "install" 17 | end 18 | 19 | end 20 | __END__ 21 | diff --git a/lib/scale.hh b/lib/scale.hh 22 | index 0b9f75a..f3329c1 100644 23 | --- a/lib/scale.hh 24 | +++ b/lib/scale.hh 25 | @@ -16,6 +16,9 @@ 26 | * copyright holder ExactCODE GmbH Germany. 27 | */ 28 | 29 | +#ifndef _SCALE_HH 30 | +#define _SCALE_HH 31 | + 32 | // pick the best 33 | void scale (Image& image, double xscale, double yscale); 34 | 35 | @@ -29,3 +32,5 @@ void bicubic_scale (Image& image, double xscale, double yscale); 36 | void ddt_scale (Image& image, double xscale, double yscale); 37 | 38 | void thumbnail_scale (Image& image, double xscale, double yscale); 39 | + 40 | +#endif 41 | 42 | -------------------------------------------------------------------------------- /smpeg.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Smpeg < Formula 4 | homepage 'http://icculus.org/smpeg/' 5 | # current HEAD only works with SDL 2, which has no stable release 6 | # This is all really a mess and why we removed it from core! 7 | # When SDL 2 comes out, move this back to HEAD 8 | # Or, if the author tags a stable release, use that 9 | head 'svn://svn.icculus.org/smpeg/trunk', :revision => '398' 10 | 11 | depends_on :autoconf 12 | depends_on :automake 13 | depends_on :libtool 14 | depends_on 'pkg-config' => :build 15 | depends_on 'sdl' 16 | depends_on 'gtk+' 17 | 18 | def install 19 | sdl = Formula.factory("sdl") 20 | system "./autogen.sh" 21 | system "./configure", "--disable-debug", "--disable-dependency-tracking", 22 | "--prefix=#{prefix}", 23 | "--disable-sdltest", 24 | # For non-/usr/local installs 25 | "--with-sdl-prefix=#{sdl.opt_prefix}" 26 | system "make" 27 | # Install script is not +x by default for some reason 28 | system "chmod +x ./install-sh" 29 | system "make install" 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Homebrew-headonly 2 | ================= 3 | These formulae are only available in head-only versions, and have no 4 | stable tarballs. 5 | 6 | How do I install these formulae? 7 | -------------------------------- 8 | Just `brew tap homebrew/headonly` and then `brew install `. 9 | 10 | If the formula conflicts with one from mxcl/master or another tap, you can `brew install homebrew/headonly/`. 11 | 12 | You can also install via URL: 13 | 14 | ``` 15 | brew install https://raw.github.com/Homebrew/homebrew-headonly/master/.rb 16 | ``` 17 | 18 | Why is "head-only" bad? 19 | ----------------------- 20 | 21 | There are a few problems with head-only software: 22 | 23 | * Since there's no stable release, the software is liable to change at any moment. We can't guarantee that head-only software will build reliably or be compatible with other software which builds against it, and that increases our support burden. 24 | * Homebrew's version-management and upgrade mechanics don't work with head-only software. 25 | 26 | What can I do to get this back in Homebrew core? 27 | ------------------------------------------------ 28 | 29 | Contact the software's developer and ask them to tag a stable release. If the software has a stable release and works reliably, feel free to submit a pull request at the main Homebrew repository. 30 | 31 | Docs 32 | ---- 33 | `brew help`, `man brew`, or the Homebrew [wiki][]. 34 | 35 | [wiki]:http://wiki.github.com/mxcl/homebrew 36 | -------------------------------------------------------------------------------- /sigar.rb: -------------------------------------------------------------------------------- 1 | require 'formula' 2 | 3 | class Sigar < Formula 4 | # HEAD has up to date bindings that are actually useful. 5 | head 'https://github.com/hyperic/sigar.git' 6 | homepage 'http://sigar.hyperic.com/' 7 | 8 | option "perl", "Build Perl bindings" 9 | option "python", "Build Python bindings" 10 | option "ruby", "Build Ruby bindings" 11 | 12 | def java_script; <<-EOS.undent 13 | #!/bin/sh 14 | # Runs SIGAR's REPL. 15 | java -jar #{prefix}/sigar.jar 16 | EOS 17 | end 18 | 19 | def install 20 | # Build Java JAR & C library first. 21 | cd "bindings/java" do 22 | system "ant" 23 | 24 | cd "sigar-bin/lib" do 25 | prefix.install 'sigar.jar' 26 | lib.install Dir['*.dylib'] 27 | end 28 | 29 | include.install Dir['sigar-bin/include/*'] 30 | 31 | (bin/'sigar').write java_script 32 | end 33 | 34 | # Install Python bindings 35 | cd "bindings/python" do 36 | system "python", "setup.py", "install", "--prefix=#{prefix}" 37 | end if build.include? "python" 38 | 39 | # Install Perl bindings 40 | cd "bindings/perl" do 41 | 42 | system "perl", "Makefile.PL" 43 | 44 | # Tweak the Makefile to install. 45 | # Can't pass PREFIX, as the Sigar build system uses ARGV[0] 46 | inreplace "Makefile" do |s| 47 | s.change_make_var! 'PREFIX', prefix 48 | s.change_make_var! 'PERLPREFIX', '$(PREFIX)' 49 | s.change_make_var! 'SITEPREFIX', '$(PREFIX)' 50 | s.change_make_var! 'VENDORPREFIX', '$(PREFIX)' 51 | s.change_make_var! 'INSTALLPRIVLIB', "$(PERLPREFIX)\\1" 52 | s.change_make_var! 'INSTALLSITELIB', "$(PERLPREFIX)\\1" 53 | s.change_make_var! 'INSTALLVENDORLIB', "$(PERLPREFIX)\\1" 54 | s.change_make_var! 'INSTALLARCHLIB', "$(PERLPREFIX)\\1" 55 | s.change_make_var! 'INSTALLSITEARCH', "$(PERLPREFIX)\\1" 56 | s.change_make_var! 'INSTALLVENDORARCH', "$(PERLPREFIX)\\1" 57 | end 58 | 59 | system "make install" 60 | end if build.include? "perl" 61 | 62 | # Install Ruby bindings 63 | cd "bindings/ruby" do 64 | system "ruby", "extconf.rb", "--prefix=#{prefix}" 65 | system "make install" 66 | end if build.include? "ruby" 67 | end 68 | end 69 | --------------------------------------------------------------------------------