Homebrew? That's OS X. OS X doesn't have the restrictions that iOS does. For example, f.lux has been distributed just fine on OS X for years.
Oh, sorry. I though they have the same policy. I shouldn't wander away from my waters :)
The Mac App Store has basically the same restrictions as the iOS App Store, but unlike iOS, OS X does not require that apps be installed via the Mac App Store.