Skip to content

Commit

Permalink
mytop: pick up debian patches
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Jul 31, 2016
1 parent 1e5faaf commit 4d771e7
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions Formula/mytop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,38 @@ class Mytop < Formula
sha256 "b7eca365ea16bcf4c96c2fc0221304ff9c4995e7a551886837804a8f66b61937"
end

resource "Config::IniFiles" do
url "https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.93.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Config-IniFiles-2.93.tar.gz"
sha256 "2fc79e5616c176b97f49f3d57b8d8068695639209ff9de7aa7f28a550d0478e4"
end

# Pick up some patches from Debian to improve functionality & fix
# some syntax warnings when using recent versions of Perl.
patch do
url "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/m/mytop/mytop_1.9.1-2.debian.tar.xz"
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/m/mytop/mytop_1.9.1-2.debian.tar.xz"
sha256 "9c97b7d2a2d4d169c5f263ce0adb6340b71e3a0afd4cdde94edcead02421489a"
apply "patches/01_fix_pod.patch",
"patches/02_remove_db_test.patch",
"patches/03_fix_newlines.patch",
"patches/04_fix_unitialized.patch",
"patches/05_prevent_ctrl_char_printing.patch",
"patches/06_fix_screenwidth.patch",
"patches/07_add_doc_on_missing_cli_options.patch",
"patches/08_add_mycnf.patch",
"patches/09_q_is_quit.patch",
"patches/10_fix_perl_warnings.patch",
"patches/13_fix_scope_for_show_slave_status_data.patch"
end

def install
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"

resource("DBD::mysql").stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make", "install"
resources.each do |r|
r.stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make", "install"
end
end

system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}"
Expand Down

0 comments on commit 4d771e7

Please sign in to comment.