Keep DSL related code in one place

This commit is contained in:
Jack Nagel 2014-06-22 15:00:15 -05:00
parent 07660bb7b6
commit 4b0255f7aa

View File

@ -14,7 +14,6 @@ require 'pkg_version'
class Formula class Formula
include FileUtils include FileUtils
include Utils::Inreplace include Utils::Inreplace
extend BuildEnvironmentDSL
attr_reader :name, :path, :homepage, :build attr_reader :name, :path, :homepage, :build
attr_reader :stable, :devel, :head, :active_spec attr_reader :stable, :devel, :head, :active_spec
@ -605,6 +604,7 @@ class Formula
# The methods below define the formula DSL. # The methods below define the formula DSL.
class << self class << self
include BuildEnvironmentDSL
attr_reader :keg_only_reason, :cc_failures attr_reader :keg_only_reason, :cc_failures
attr_rw :homepage, :plist_startup, :plist_manual, :revision attr_rw :homepage, :plist_startup, :plist_manual, :revision