2010-04-16 11:46:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgtop < Formula
|
2010-04-16 11:46:05 +00:00
|
|
|
homepage 'http://library.gnome.org/devel/libgtop/stable/'
|
2012-03-17 23:15:40 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/libgtop/2.28/libgtop-2.28.4.tar.xz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8c88e14ae21ac5a7071f77aad41deaccf59d88e3'
|
2010-04-16 11:46:05 +00:00
|
|
|
|
2012-03-17 23:15:40 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-04-16 11:46:05 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'intltool'
|
|
|
|
|
2012-03-17 23:15:40 +00:00
|
|
|
# Patch per MacPorts:
|
|
|
|
# https://trac.macports.org/ticket/21165
|
2010-04-16 11:46:05 +00:00
|
|
|
def patches; DATA; end
|
|
|
|
|
|
|
|
def install
|
2012-03-17 23:15:40 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2012-09-22 04:35:31 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-x"
|
2010-04-16 11:46:05 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/sysdeps/darwin/proclist.c b/sysdeps/darwin/proclist.c
|
|
|
|
index 8cfb85d..27a1098 100644
|
|
|
|
--- a/sysdeps/darwin/proclist.c
|
|
|
|
+++ b/sysdeps/darwin/proclist.c
|
|
|
|
@@ -43,7 +43,7 @@ _glibtop_init_proclist_p (glibtop *server)
|
|
|
|
|
|
|
|
pid_t *
|
|
|
|
glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
|
|
|
|
- int64_t which, int64_t arg)
|
|
|
|
+ gint64 which, gint64 arg)
|
|
|
|
{
|
|
|
|
unsigned count, total, i;
|
|
|
|
pid_t *pids_chain;
|