|
| 1 | +class Libgpm < Formula |
| 2 | + desc "general purpose mouse" |
| 3 | + homepage "http://www.nico.schottelius.org/software/gpm/" |
| 4 | + url "http://www.nico.schottelius.org/software/gpm/archives/gpm-1.20.7.tar.bz2" |
| 5 | + sha256 "f011b7dc7afb824e0a017b89b7300514e772853ece7fc4ee640310889411a48d" |
| 6 | + # tag "linuxbrew" |
| 7 | + |
| 8 | + head "https://github.com/telmich/gpm.git" |
| 9 | + |
| 10 | + depends_on "autoconf" => :build |
| 11 | + depends_on "automake" => :build |
| 12 | + depends_on "libtool" => :build |
| 13 | + depends_on "bison" => :build |
| 14 | + depends_on "texinfo" => :build |
| 15 | + depends_on "homebrew/dupes/ncurses" unless OS.mac? |
| 16 | + |
| 17 | + patch :DATA |
| 18 | + patch do |
| 19 | + url "https://patch-diff.githubusercontent.com/raw/telmich/gpm/pull/14.patch" |
| 20 | + sha256 "53c7d470ccdad04a769223995c085e4b3d46f8931bc4febfa75bd7bd9519a937" |
| 21 | + end |
| 22 | + |
| 23 | + def install |
| 24 | + ENV.deparallelize |
| 25 | + |
| 26 | + system "./autogen.sh" |
| 27 | + system "./configure", "--prefix=#{prefix}" |
| 28 | + system "make", "install" |
| 29 | + end |
| 30 | + |
| 31 | + test do |
| 32 | + system "#{sbin}/gpm", "-v" |
| 33 | + end |
| 34 | +end |
| 35 | + |
| 36 | +__END__ |
| 37 | +diff --git a/acinclude.m4 b/acinclude.m4 |
| 38 | +index a932e3a..1e828d0 100644 |
| 39 | +--- a/acinclude.m4 |
| 40 | ++++ b/acinclude.m4 |
| 41 | +@@ -22,7 +22,7 @@ AC_DEFUN([ITZ_PATH_SITE_LISP], |
| 42 | + sed -e '/^$/d' | sed -n -e 2p` |
| 43 | + case x${itz_cv_path_site_lisp} in |
| 44 | + x*site-lisp*) ;; |
| 45 | +-x*) itz_cv_path_site_lisp='${datadir}/emacs/site-lisp' ;; |
| 46 | ++x*) itz_cv_path_site_lisp='${datadir}/emacs/site-lisp/libgpm' ;; |
| 47 | + esac]) |
| 48 | + ]) |
| 49 | + AC_DEFUN([ITZ_CHECK_TYPE], |
0 commit comments