Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/x11
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17028/10.3/unstable/main/finkinfo/x11

Added Files:
        hotbabe.info hotbabe.patch 
Log Message:
New Package: hotbabe

--- NEW FILE: hotbabe.patch ---
diff -Nru hot-babe-0.2.2/hot-babe.c hot-babe-0.2.2.fink/hot-babe.c
--- hot-babe-0.2.2/hot-babe.c   Mon Dec  6 07:59:38 2004
+++ hot-babe-0.2.2.fink/hot-babe.c      Fri May 27 15:43:33 2005
@@ -28,6 +28,10 @@
 #include <sys/dkstat.h>
 #endif
 #endif                                                                         
+#ifdef __APPLE__
+#include <mach/mach_host.h>
+#include <mach/mach_init.h>
+#endif
 
 /* x11 includes */
 #include <gdk/gdk.h>
@@ -99,6 +103,13 @@
   long cp_time[CPUSTATES];
   size_t len = sizeof(cp_time);
 #endif
+#ifdef __APPLE__
+  unsigned long load, total, oload, ototal;
+  unsigned long ab, ac, ad, ae;
+  static mach_port_t port = NULL;
+  mach_msg_type_number_t count = HOST_CPU_LOAD_INFO_COUNT;
+  host_cpu_load_info_data_t aa;
+#endif
 
 #ifdef __linux__
   stat = fopen("/proc/stat", "r");
@@ -113,6 +124,16 @@
   ac = cp_time[CP_NICE];
   ad = cp_time[CP_SYS];
   ae = cp_time[CP_IDLE];
+#endif
+#ifdef __APPLE__
+  if (port == NULL)
+  port = mach_host_self();
+  if (host_statistics(port, HOST_CPU_LOAD_INFO, (host_info_t)&aa, &count) != 
KERN_SUCCESS)
+  (void)fprintf(stderr, "Cannot get HOST_CPU_LOAD_INFO");
+  ab = aa.cpu_ticks[CPU_STATE_USER];
+  ac = aa.cpu_ticks[CPU_STATE_NICE];
+  ad = aa.cpu_ticks[CPU_STATE_SYSTEM];
+  ae = aa.cpu_ticks[CPU_STATE_IDLE];
 #endif
 
 

--- NEW FILE: hotbabe.info ---
Package: hotbabe
Version: 0.2.2
Revision: 1
Description: Displays the system activity
License: Artistic
Maintainer: Todai Fink Team <[EMAIL PROTECTED]> 

Depends: gtk+2-shlibs, glib2-shlibs, pango1-xft2-shlibs, x11
BuildDepends: gtk+2-dev, glib2-dev, pango1-xft2-dev, pkgconfig, gettext-dev, 
libiconv-dev, x11-dev

Source: http://dindinx.net/%n/downloads/hot-babe-%v.tar.bz2
Source-MD5: 482a9496b493d2394601689659971042

Patch: %n.patch

CompileScript: make PREFIX=%p

InstallScript: make install PREFIX=%p DESTDIR=%d

DescDetail: <<
Hot-babe is a small graphical utility which displays the system activity in a
very special way. When the CPU is idle, it displays a dressed girl, and when
the activity goes up, as the temperature increases, the girl begins to undress,
to finish totally naked when the system activity reaches 100%. Of course, if
you can be shocked by nudity, don't use it!
<<
DescPort: <<
The patch is provided by 2ch.net. Thanks, Nanashi-san!
http://pc7.2ch.net/test/read.cgi/mac/1089767349/226-227
<<
Homepage: http://dindinx.net/hotbabe/



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to