Commit graph

106 commits

Author SHA1 Message Date
Adam Vandenberg
163aed076d mysql: stop using skip_clean :all
Closes Homebrew/homebrew#14911.
2012-09-13 07:11:42 -07:00
Jack Nagel
53473b6bf5 Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.

"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.

The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:16:54 -05:00
Adam Vandenberg
230619e2c7 Let plists be installed automatically 2012-09-09 13:02:48 -07:00
Adam Vandenberg
03345142be mysql: normalize option name 2012-09-02 12:34:14 -07:00
Dan Burkert
8cfea71f78 MySQL: add debug option
Closes Homebrew/homebrew#14648.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-02 12:28:11 -07:00
Mike McQuaid
19916d42e1 mysql: 5.5.27 2012-08-23 23:32:31 -07:00
Jack Nagel
dddd14fe59 mysql: build without exotic optimization flags
Currently we patch mysql_config to sanitize the CFLAGS that are exported
to software that queries it during builds, such as the mysql gem. Since
there isn't any way to control what compiler is used by Ruby/gem to
build native extensions, we must remove any compiler or CPU specific
flags.

Instead, let's build without these flags to begin with, which will keep
mysql_config clean and provide consistency between the flags used to
build mysql and those used to build software that links to it.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 11:22:20 -05:00
Jack Nagel
f6f57b1026 mysql: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 10:23:01 -05:00
Mike McQuaid
79a40e3166 mysql: add bottles. 2012-08-11 15:57:34 +01:00
Mike McQuaid
41b84a9f7f mysql: remove unnecessary dependencies.
pidof can be replaced with pgrep from proctools on Mountain Lion
and readline uses the system version which, if too old, will use
the bundled version anyway (doesn't on Mountain Lion).

Closes Homebrew/homebrew#13942.
2012-08-08 18:17:11 +01:00
Misty De Meo
596476ad78 Add conflicts_with DSL method
conflicts_with is a thin wrapper around Requirement which simplifies
marking conflicts between formulae.

Closes Homebrew/homebrew#13687.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-30 13:47:12 -03:00
Mike McQuaid
b67246cce4 Add bug URL for MySQL no-CLT bug. 2012-07-24 18:30:24 +01:00
Mike McQuaid
92f3d38f11 Fix MySQL no-CLT compilation. 2012-07-24 14:14:23 +01:00
onewheelskyward
249e7a3283 mysql 5.5.25a
Closes Homebrew/homebrew#13230.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-05 13:37:47 -05:00
Steve King
dc54c1f313 MySQL 5.5.25
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-06 20:22:25 -07:00
Steve King
1d2b8b62ce mysql 5.5.24
Closes Homebrew/homebrew#12459.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-27 23:20:41 -05:00
Mike McQuaid
dfbdda5060 Fix MySQL build with CMake 2.8.8.
Fixes Homebrew/homebrew#11754.
Fixes Homebrew/homebrew#11762.
2012-04-20 18:47:01 +10:00
Jack Nagel
64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Jack Nagel
3446fc7e71 mysql: remove no-op patch
Closes Homebrew/homebrew#10842.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-21 14:40:34 -05:00
Jack Nagel
cc638908c8 mysql: prune clang-isms from mysql_config --cflags
Closes Homebrew/homebrew#10549.
cf Homebrew/homebrew#10842.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-15 20:05:00 -05:00
Adam Vandenberg
80186d0478 mysql 5.5.20 2012-03-10 10:20:13 -08:00
Matthew Lewinski
83dd656d3b Minor cleanup on plist caveats.
Use basename to refer to plist file when loaded. Make cp lines same
across formulas.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-04 08:07:35 -08:00
Jack Nagel
6ce735db99 Add and use plist helper methods
These will be used to unify the label namespaces in embedded plists,
i.e. 'homebrew.mxcl.<formula>'.

plist_path returns the full path to a plist file located at the top
level of the keg; plist_path.basename can be used if just the filename
is needed.

c.f. Homebrew/homebrew#9346.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03 19:50:58 -06:00
Jack Nagel
cce644e300 Normalize paths in embedded plist files
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-03 19:28:56 -06:00
Jaik Dean
7e141937f2 mysql: ARCHIVE and BLACKHOLE engines
Added install flags to the mysql formula to allow the ARCHIVE and BLACKHOLE
storage engines to be compiled in.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-28 20:03:14 -08:00
Marian Theisen
0186f1d16a mysql: fix typo
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-23 06:39:58 -08:00
Adam Vandenberg
054f04fb22 MySQL: fix patches 2012-01-22 09:29:27 -08:00
Adam Vandenberg
ea5c690daa MySQL 5.5.19 2012-01-21 20:46:52 -08:00
Adam Vandenberg
8274847561 mysql 5.5.15 2011-09-25 09:34:51 -07:00
Adam Vandenberg
d205c72966 Fix plist permissions for Lion 2011-09-02 14:41:57 -07:00
Max Howell
6d5730fa2c Don't fails_with_llvm if MacOS.lion?
Not sure how I failed so badly at logic. This should be rewritten so that the build info has a tested MacOS version too. However it seems unlikely that the same LLVM versions on different platforms would have different compile errors. So we'll risk it, and it'll be informative for us too.
2011-09-02 12:12:30 +01:00
Max Howell
d6f51b68a3 MySQL builds with LLVM; Closes Homebrew/homebrew#7372. 2011-09-02 12:12:30 +01:00
Andrew
fc60676242 mysql: fixed typo (differnet => different)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-28 21:13:40 -07:00
CharlieRoot
50038b0dd7 MySQL: Fix compilation on Lion
Do not allow cmake find pthread_init because it is internal to Apple's
pthread library although linkable.

Fixes Homebrew/homebrew#5251
Fixes Homebrew/homebrew#5876
Fixes Homebrew/homebrew#6277

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-20 09:34:29 -07:00
Mislav Marohnić
9d3ef67239 mysql: compile with readline by default
MySQL client compiles with EditLine wrapper by default. This formula
configures the build to use readline since it's superior in handling
multibyte input, enabling use of non-English languages in the mysql
prompt.

Users can still choose to use EditLine with the `--with-libedit` flag.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-10 11:09:55 -07:00
Adam Vandenberg
13e981d9e5 MySQL 5.5.14 2011-07-07 11:39:54 -07:00
Felix Schulze
e086b8c41e MySQL 5.5.12
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-23 16:19:54 -07:00
skim
d5dc8cd30d mysql: add note to caveat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-26 22:15:15 -07:00
Matthew Rudy Jacobs
2fef2be0d2 mysql: ensure the var/mysql exists
* Otherwise mysql will break when it tries to start

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-03 20:41:54 -07:00
Adam Vandenberg
8e41ba70f8 MySQL: --universal builds 32/64-bit Intel 2011-05-01 11:09:56 -07:00
Adam Vandenberg
1f31751977 Use ARGV.build_universal? 2011-04-23 08:36:47 -07:00
Adam Vandenberg
83ba777e5e mysql: warn about /etc/my.cnf 2011-04-13 13:00:07 -07:00
dinkypumpkin
70eb68cd9a mysql: added pidof dependency, changed PATH in mysql.server
1. Added dependency on pidof.  This is necessary for
"mysql.server status" to work fully.
2. Added #{HOMEBREW_PREFIX}/bin to PATH in mysql.server
so that it can find Homebrew-installed pidof.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13 06:54:46 -07:00
dinkypumpkin
a929f4bdfa mysql: tidied install dirs, restored mysql.server
1. Added cmake args necessary to link docs, info files, and
shared data into the usual Homebrew locations.  This prevents
all the message catalogues from being spattered in #{share} and
allows the doc and info files to appear in expected places.
2. Restored mysql.server to #{bin} and put it back in caveats.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-11 12:05:50 -07:00
Chris Meller
b8aa1620c5 mysql: Change download URL.
Switch the MySQL formula to use the official MySQL mirror, rather than
the hardcoded Swedish one that's having issues.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-08 18:13:24 -07:00
Adam Vandenberg
edfb67d937 Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
2011-04-04 16:56:47 -07:00
Adam Vandenberg
b87278a4be mysql: fix typo; use var instead of hardcoding /usr/local 2011-04-04 10:33:26 -07:00
Adam Vandenberg
8fdf733428 MySQL - update caveats
Updated the install instructions in the caveats so that the default case
is installing under the user's own account, and note that you should
do 'mysql -uroot' to test the connection.

Added instructions on how to do a manual setup to any folder under any
user account.
2011-04-02 15:32:32 -07:00
Carlos Borroto
3369fc9c2b mysql - add --enable-local-infile option
Homebrew used this by default in 5.1, but it is a security risk
so make it an option instead.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-01 15:19:30 -07:00
Adam Vandenberg
d317983c00 mysql - remove 'data' from prefix
Remove the 'data' folder from the prefix, so the setup script
will not try to create databases there. Putting databases
in the prefix instead of directly in /usr/local means they
get deleted on a MySQL update, which is not what you want.
2011-04-01 14:24:29 -07:00