aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2014-10-08 16:36:21 +0100
committerMike McQuaid2014-10-10 00:01:07 +0100
commit5bdc4311bb82bd09ad2bf61ac9fdfaf79ccb78ae (patch)
tree12ac9df7a7102ed5f7ee6badb91f6d1030021ae2
parentfc1e6867f0b82a635dbfed305d7f302f5f966a78 (diff)
downloadhomebrew-5bdc4311bb82bd09ad2bf61ac9fdfaf79ccb78ae.tar.bz2
fceux: migrate to homebrew-games.
Closes #33024. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/fceux.rb90
-rw-r--r--Library/Homebrew/tap_migrations.rb1
2 files changed, 1 insertions, 90 deletions
diff --git a/Library/Formula/fceux.rb b/Library/Formula/fceux.rb
deleted file mode 100644
index ee97b5147..000000000
--- a/Library/Formula/fceux.rb
+++ /dev/null
@@ -1,90 +0,0 @@
-require 'formula'
-
-class Fceux < Formula
- homepage 'http://fceux.com'
- url 'https://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.2%20src/fceux-2.2.2.src.tar.gz'
- sha1 'ec50d8eae04794ba10f441a26cdb410c1cf6832b'
- revision 1
-
- option 'no-gtk', "Build without Gtk+ support"
-
- depends_on 'pkg-config' => :build
- depends_on 'scons' => :build
- depends_on 'sdl'
- depends_on 'libzip'
- depends_on 'gtk+' unless build.include? "no-gtk"
- depends_on :x11
-
- # Make scons honor PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR
- # Reported upstream: https://sourceforge.net/p/fceultra/bugs/625
- # Also temporarily kill Lua support pending further investigation as to build failures.
- # It is listed as 'Optional' in the build docs, but will be reinstated asap.
- patch :DATA
-
- def install
- args = []
- args << "GTK=0" if build.include? "no-gtk"
- scons *args
- bin.install 'src/fceux'
- end
-end
-
-__END__
-diff --git a/SConstruct b/SConstruct
-index 4d5b446..36be2c4 100644
---- a/SConstruct
-+++ b/SConstruct
-@@ -62,6 +62,10 @@ if os.environ.has_key('CPPFLAGS'):
- env.Append(CPPFLAGS = os.environ['CPPFLAGS'].split())
- if os.environ.has_key('LDFLAGS'):
- env.Append(LINKFLAGS = os.environ['LDFLAGS'].split())
-+if os.environ.has_key('PKG_CONFIG_PATH'):
-+ env['ENV']['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH']
-+if os.environ.has_key('PKG_CONFIG_LIBDIR'):
-+ env['ENV']['PKG_CONFIG_LIBDIR'] = os.environ['PKG_CONFIG_LIBDIR']
-
- print "platform: ", env['PLATFORM']
-
-@@ -112,16 +116,12 @@ else:
- Exit(1)
- # Add compiler and linker flags from pkg-config
- config_string = 'pkg-config --cflags --libs gtk+-2.0'
-- if env['PLATFORM'] == 'darwin':
-- config_string = 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ ' + config_string
- env.ParseConfig(config_string)
- env.Append(CPPDEFINES=["_GTK2"])
- env.Append(CCFLAGS = ["-D_GTK"])
- if env['GTK3']:
- # Add compiler and linker flags from pkg-config
- config_string = 'pkg-config --cflags --libs gtk+-3.0'
-- if env['PLATFORM'] == 'darwin':
-- config_string = 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ ' + config_string
- env.ParseConfig(config_string)
- env.Append(CPPDEFINES=["_GTK3"])
- env.Append(CCFLAGS = ["-D_GTK"])
-diff --git a/SConstruct b/SConstruct
-index dc6698e..a23350a 100644
---- a/SConstruct
-+++ b/SConstruct
-@@ -18,7 +18,7 @@ opts.AddVariables(
- BoolVariable('RELEASE', 'Set to 1 to build for release', 1),
- BoolVariable('FRAMESKIP', 'Enable frameskipping', 1),
- BoolVariable('OPENGL', 'Enable OpenGL support', 1),
-- BoolVariable('LUA', 'Enable Lua support', 1),
-+ BoolVariable('LUA', 'Enable Lua support', 0),
- BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 1),
- BoolVariable('GTK3', 'Enable GTK3 GUI (SDL only)', 0),
- BoolVariable('NEWPPU', 'Enable new PPU core', 1),
-diff --git a/src/drivers/sdl/SConscript b/src/drivers/sdl/SConscript
-index 7a53b07..23e11b9 100644
---- a/src/drivers/sdl/SConscript
-+++ b/src/drivers/sdl/SConscript
-@@ -2,8 +2,6 @@
- # Thanks Antonio Ospite!
- Import('env')
- config_string = 'pkg-config --cflags --libs x11'
--if env['PLATFORM'] == 'darwin':
-- config_string = 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ ' + config_string
- env.ParseConfig(config_string)
- Export('env')
-
diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb
index 780ee2f80..f1fa07049 100644
--- a/Library/Homebrew/tap_migrations.rb
+++ b/Library/Homebrew/tap_migrations.rb
@@ -22,6 +22,7 @@ TAP_MIGRATIONS = {
"drush" => "homebrew/php",
"dsniff" => "homebrew/boneyard",
"electric-fence" => "homebrew/boneyard",
+ "fceux" => "homebrew/games",
"gnunet" => "homebrew/boneyard",
"grads" => "homebrew/binary",
"gromacs" => "homebrew/science",