104 Commits

Author SHA1 Message Date
Xu Cheng
cf3ee4546f add inspect to Requirement subclass
Closes Homebrew/homebrew#37116.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-24 01:39:53 +08:00
Jack Nagel
291e900abc AprRequirement should not generate a build-time dependency
We want the apr requirement to act as a build-time requirement in case
it is satisfied (that is, the CLT is installed), as the resulting
binaries will link to the system libapr which is always present.

When it is *not* satisfied by the CLT, and we need to install the
formula, we have to treat it as a runtime dependency since the resulting
binaries will link to it.

Fixes Homebrew/homebrew#36301.
Fixes Homebrew/homebrew#36438.
Closes Homebrew/homebrew#36443.
2015-02-02 00:39:04 -05:00
Jack Nagel
208bc0516b AprRequirement should not short-circuit if apr is installed
If apr is installed, we still want to grab it during dependency
resolution in case we need to pass options to the generated dependency.

In other words, it doesn't make sense for the satisfiable condition to
include the default formula, as the default formula is the fallback for
when the requirement is *not* satisfied.
2015-02-02 00:39:04 -05:00
Jack Nagel
d362f5a2fb Remove message that is never displayed
Requirements with default formulae cannot fail the build.
2015-02-02 00:39:04 -05:00
Jack Nagel
12e4602a3b AprRequirement's default formula should be apr-util
This matches the recommendation in the message.
2015-02-02 00:39:04 -05:00
Dominyk Tiller
dd8950d0a9 apr 1.5.1 (new formula)
Migrates Apr from Homebrew/Apache to Homebrew/Homebrew, adds a
requirement to allow people to use this Apr instead of requiring
people to download the full CLT package. Tested against subversion
with consistent success.

Closes Homebrew/homebrew#34987.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-06 17:29:06 +00:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Mike McQuaid
515395171c Set cask and download DSL values on requirements.
Closes Homebrew/homebrew#35257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-28 12:14:49 +00:00
Mike McQuaid
99ecc9ac34 unsigned_kext_req: use new cask/download DSL. 2014-12-28 12:14:49 +00:00
Mike McQuaid
7afe1ed67a requirements: recommend casks where available.
Also, tweak the XQuartz requirement to not show 0.0.0 versions being required.

Closes Homebrew/homebrew#35254.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-25 20:45:57 +00:00
Jaime Marquínez Ferrándiz
a0b36563ea language_module_dependency: fix finding opam.
`opam list <package>` only checks if the package is available

Closes Homebrew/homebrew#35209.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-23 10:14:53 +00:00
Mike McQuaid
dc1f58dead unsigned_kext: use binary and cask options now. 2014-12-12 09:52:55 +00:00
Dominyk Tiller
00445c48c7 MaximumMacOSRequirement
Slightly loosens up the wording to make it less narrow and more
tolerant of wider usage. Relates to Homebrew/homebrew#34041 and Homebrew/homebrew#34039.

Closes Homebrew/homebrew#34042.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-11-10 16:32:32 -06:00
Dominyk Tiller
97eac8853e tuntap: recommend upstream signed binary.
We have an upstream signed binary available! Big big love to Mattias
for this.

This PR converts all the existing tuntap dependencies into
binary-friendly tuntap dependencies, and adds a tuntap dependency to
requirements to look for the kexts.

Closes Homebrew/homebrew#33894.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-07 09:12:29 +00:00
Dominyk Tiller
d8c34e83b7 Add unsigned kext requirement.
Creates a new requirement that dictates packages are unable to install due to requiring a signed kext to function.

Closes Homebrew/homebrew#33404.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-23 08:57:12 +01:00
Dominyk Tiller
029a604fb5 phantomjs: Yosemite fixes.
Closes Homebrew/homebrew#32953.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-06 20:09:26 +01:00
Johnathan Conley
0d154a991d Add :osxfuse dependency to support binary install.
add :osxfuse symbolic dependency
add ConflictsWithFuseForOsx requirement for osxfuse/fuse4x/fuse4x-kext

Closes Homebrew/homebrew#31975.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-09 10:17:03 +01:00
Jack Nagel
618b894c3e Replace ComparableSet with a Requirements collection 2014-07-03 14:50:57 -05:00
Jack Nagel
cabc451ca8 Add min_version to X11Dependency inspect string 2014-07-02 15:45:24 -05:00
Jack Nagel
4743105216 Fix typo 2014-07-01 23:56:00 -05:00
Jack Nagel
330e18bb17 Use predicate methods instead of inspecting the tags array 2014-07-01 21:57:30 -05:00
Jack Nagel
fe3e802c50 X11Dependency objects: fix hash equality 2014-07-01 21:26:41 -05:00
Jack Nagel
fc2d403a82 X11Dependency: use Version objects 2014-07-01 21:26:41 -05:00
Mike McQuaid
326d3e07e9 fortran_dependency: use gcc instead of gfortran. 2014-05-16 17:42:07 +01:00
Mike McQuaid
efe7fe77a1 python_dependency: don't block pour when :build. 2014-04-04 11:55:36 +01:00
Mike McQuaid
1207ba4f8c python_dependency: only pour with system python.
This is as Python bindings are not build in a way that can have
system or Homebrew Python used interchangeably.
2014-04-03 19:47:15 +01:00
Misty De Meo
0475dbe5cc LD64Dependency: super before setting env proc
Otherwise super will overwrite @env_proc with the default value.
2014-03-23 15:32:34 -07:00
Misty De Meo
497123f7ec LD64Dependency: adjust initializer signature
The method signature of Dependency changed in
1fdf69b90382c43493a5f62f0020729289db6c70, however LD64Dependency was
missed in the update. This resulted in failures in merge_repeats(),
which creates many dependency objects using all three arguments.
2014-03-22 18:50:54 -07:00
Mike McQuaid
8dcadc54d2 python_dependency: no brewed python for bottles 2014-03-18 12:08:12 +00:00
Mike McQuaid
afec712a86 python_dependency: move bottle check into method. 2014-03-14 18:21:29 +00:00
Mike McQuaid
5b6d872459 python_dependency: always bottle with brew Python. 2014-03-13 10:05:20 +00:00
Mike McQuaid
c594053449 python_dependency: fixes, features, cleanup.
- PythonDependency now implies Python 2.7
- PythonDependency now uses brewed Python for bottling
- Use double-quotes everywhere

Closes Homebrew/homebrew#27112.
2014-03-12 13:56:41 +00:00
Mike McQuaid
686f829f2f language_module_dependency: handle nil import_name 2014-03-09 17:24:50 +00:00
Jack Nagel
8bfcdf0bd8 Remove special X11 proxy deps 2014-03-05 20:45:44 -06:00
Mike McQuaid
f42f4e45c1 python_dependency: only set PYTHONPATH for system. 2014-02-10 18:49:26 +00:00
Jack Nagel
15db61f25a X11Dependency: style 2014-02-09 14:23:56 -05:00
Jack Nagel
f16003f58c X11Dependency: return nil instead of raising in #<=>
Returning nil is in the contract of the Comparable module, and a future
version of Ruby will no longer hide this error.
2014-02-09 14:23:56 -05:00
Mike McQuaid
a42ac924dd language_module_dependency: don't use build_env.
This is so a e.g. brewed Python's modules can be found by superenv.

References Homebrew/homebrew#26229.
Closes Homebrew/homebrew#26197.
2014-01-30 09:51:42 +01:00
Mike McQuaid
ed53bb333b python_dependency: cleanup and fix build env.
* Only set PYTHONPATH for Python 2.
* Set the Python binary for superenv.

References Homebrew/homebrew#24842.
Closes Homebrew/homebrew#26197.
Closes Homebrew/homebrew#26216.
Closes Homebrew/homebrew#26218.
Closes Homebrew/homebrew#26228.
2014-01-29 17:49:57 +01:00
Mike McQuaid
689be66203 python_dependency: cleanup, fix satisfy.
Closes Homebrew/homebrew#26067.
2014-01-20 23:30:32 -08:00
Mike McQuaid
28143fb653 PythonDependency: massive refactoring.
Closes Homebrew/homebrew#24842.
2014-01-20 15:42:52 -08:00
Jack Nagel
92ac63fd94 LanguageModuleDependency: remove code that only worked by accident
The array elements here are individual arguments to exec, not a string
to pass to the shell; this only appeared to work. In reality, `opam
list` accepts "|" as valid argument, and the command works fine without
grepping the output.
2014-01-11 19:37:19 -06:00
Mike McQuaid
4c2e7b1659 Update docs, comment mxcl/homebrew refs. 2013-12-14 18:18:35 +00:00
MinRK
cb7f158663 safer check for sys.executable in sitecustomize.py
make sure it doesn't actually point to something else

since sitecustomize.py is put in a location found by pypy,
it breaks pypy by setting sys.executable to a path that is definitely wrong,
and may not even exist.

Closes Homebrew/homebrew#24581.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-25 20:48:41 -08:00
Jack Nagel
4943a81373 Python might not be up-to-date, so use opt_prefix
Fixes Homebrew/homebrew#24456.
2013-11-18 17:08:04 -06:00
Adam Vandenberg
7df136cd50 grammar edits 2013-11-13 20:23:27 -08:00
Mike McQuaid
bdbaf61304 python_dependency: fix includes location on 10.9.
Fixes Homebrew/homebrew#23837.
Fixes Homebrew/homebrew#23866.
2013-11-01 11:19:23 -07:00
Jack Nagel
3df31557c8 Avoid the need to defensively flatten tags array 2013-10-15 13:26:23 -05:00
Mike McQuaid
315c7a1212 Rename PythonInstalled to PythonDependency.
Make it more consistent with other requirements.
2013-09-14 12:21:49 +01:00
Mike McQuaid
a16394fde8 MinimumMacOSRequirement: rename file.
Should be using minimum_mac_os_requirement.rb
2013-09-14 12:21:49 +01:00