Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

Commit d1f3673

Browse files
committed
libgpm 1.20.7 (new formula)
1 parent 805c9c1 commit d1f3673

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

Library/Formula/libgpm.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
7+
head "https://github.com/telmich/gpm.git"
8+
9+
depends_on "autoconf" => :build
10+
depends_on "automake" => :build
11+
depends_on "libtool" => :build
12+
depends_on "bison" => :build
13+
depends_on "texinfo" => :build
14+
depends_on "homebrew/dupes/ncurses" unless OS.mac?
15+
16+
# https://github.com/telmich/gpm/pull/14
17+
patch :DATA
18+
19+
def install
20+
ENV.deparallelize
21+
22+
system "./autogen.sh"
23+
system "./configure", "--prefix=#{prefix}"
24+
system "make", "install"
25+
end
26+
27+
test do
28+
system "#{sbin}/gpm", "-v"
29+
end
30+
end
31+
32+
__END__
33+
diff --git a/acinclude.m4 b/acinclude.m4
34+
index a932e3a..1e828d0 100644
35+
--- a/acinclude.m4
36+
+++ b/acinclude.m4
37+
@@ -22,7 +22,7 @@ AC_DEFUN([ITZ_PATH_SITE_LISP],
38+
sed -e '/^$/d' | sed -n -e 2p`
39+
case x${itz_cv_path_site_lisp} in
40+
x*site-lisp*) ;;
41+
-x*) itz_cv_path_site_lisp='${datadir}/emacs/site-lisp' ;;
42+
+x*) itz_cv_path_site_lisp='${datadir}/emacs/site-lisp/libgpm' ;;
43+
esac])
44+
])
45+
AC_DEFUN([ITZ_CHECK_TYPE],
46+
diff --git a/src/Makefile.in b/src/Makefile.in
47+
index d3b1dcd..56df704 100644
48+
--- a/src/Makefile.in
49+
+++ b/src/Makefile.in
50+
@@ -96,7 +96,7 @@ $(DEPFILE) dep: prog/gpm-root.c
51+
52+
# create dependencies
53+
for DEPS in `echo *.c */*.c`; do \
54+
- $(CC) -I. -I $(srcdir) -M @CPPFLAGS@ $(CPPFLAGS) $$DEPS | \
55+
+ $(CC) -I. -Iheaders -I $(srcdir) -M @CPPFLAGS@ $(CPPFLAGS) $$DEPS | \
56+
$(SED) 's/^\(.*\)\.o\([ :]+\)/\1.o \1.lo\2/g' >> $(DEPFILE) ; done
57+
58+
### INSTALL

0 commit comments

Comments
 (0)