Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=matchbox.git;a=commitdiff;h=469cf18b371365a212fab8b69bbb8c9482860643
commit 469cf18b371365a212fab8b69bbb8c9482860643 Author: James Buren <[EMAIL PROTECTED]> Date: Tue Nov 11 06:20:28 2008 -0600 matchbox-panel-0.9.3-1-i686 * new package diff --git a/source/x11-extra/matchbox-panel/FrugalBuild b/source/x11-extra/matchbox-panel/FrugalBuild new file mode 100644 index 0000000..698e411 --- /dev/null +++ b/source/x11-extra/matchbox-panel/FrugalBuild @@ -0,0 +1,22 @@ +# Compiling Time: 0.03 SBU +# Maintainer: James Buren <[EMAIL PROTECTED]> + +pkgname=matchbox-panel +pkgver=0.9.3 +pkgrel=1 +pkgdesc="The panel for Matchbox." +url="http://matchbox-project.org" +depends=('libmatchbox' 'startup-notification' 'wireless_tools') +groups=('x11-extra') +archs=('i686' 'x86_64') +up2date="Flasttar $url/sources/$pkgname/0.9/" +# scriplet since we pull in pango +options=('scriptlet') +source=($url/sources/$pkgname/0.9/$pkgname-$pkgver.tar.bz2\ + $pkgname-$pkgver-gcc4-no-nested-functions.patch) +Fconfopts="${Fconfopts} --enable-dnotify --enable-startup-notification\ + --enable-nls --enable-acpi-linux" +sha1sums=('c54a0c1f35fcdc883e529ecdec123977c6325160' \ + '21d58dfc59e714f49e6195e40c0d7c07d80615fe') + +# optimization OK diff --git a/source/x11-extra/matchbox-panel/matchbox-panel-0.9.3-gcc4-no-nested-functions.patch b/source/x11-extra/matchbox-panel/matchbox-panel-0.9.3-gcc4-no-nested-functions.patch new file mode 100644 index 0000000..8dcafbd --- /dev/null +++ b/source/x11-extra/matchbox-panel/matchbox-panel-0.9.3-gcc4-no-nested-functions.patch @@ -0,0 +1,93 @@ +diff -Naurp matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c matchbox-panel-0.9.3/applets/mb-applet-battery.c +--- matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c 2006-02-07 22:27:24.000000000 +0000 ++++ matchbox-panel-0.9.3/applets/mb-applet-battery.c 2006-06-20 18:12:00.000000000 +0000 +@@ -157,50 +157,50 @@ struct avg_consumption { + + static struct avg_consumption a; + ++enum ac_state { AC_UNKNOWN = -1, AC_OFFLINE = 0, AC_ONLINE = 1 }; ++enum bat_state { BAT_UNKNOWN = -1, BAT_CHARGING = 1, BAT_DISCHARGING = 2 }; ++ ++struct entry { ++ char *key; ++ char *value; ++ char *unit; ++}; ++ ++struct acpi_status { ++ enum ac_state ac_state; ++ enum bat_state bat_state; ++ unsigned long design_capacity; ++ unsigned long remaining_capacity; ++ unsigned long present_rate; ++}; ++ + static int +-read_apm(int *values) ++line_parse(char *line, struct entry *e) + { +- enum ac_state { AC_UNKNOWN = -1, AC_OFFLINE = 0, AC_ONLINE = 1 }; +- enum bat_state { BAT_UNKNOWN = -1, BAT_CHARGING = 1, BAT_DISCHARGING = 2 }; +- +- struct entry { +- char *key; +- char *value; +- char *unit; +- }; +- +- struct acpi_status { +- enum ac_state ac_state; +- enum bat_state bat_state; +- unsigned long design_capacity; +- unsigned long remaining_capacity; +- unsigned long present_rate; +- }; ++ char *ptr; + +- static int +- line_parse(char *line, struct entry *e) +- { +- char *ptr; +- +- ptr = strchr(line, ':'); +- if (!ptr) +- return -1; +- e->key = line; +- *ptr = 0; +- while (*++ptr && *ptr == ' '); +- e->value = ptr; +- while (*++ptr && *ptr != '\n' && *ptr != ' '); ++ ptr = strchr(line, ':'); ++ if (!ptr) ++ return -1; ++ e->key = line; ++ *ptr = 0; ++ while (*++ptr && *ptr == ' '); ++ e->value = ptr; ++ while (*++ptr && *ptr != '\n' && *ptr != ' '); ++ *ptr = 0; ++ if (*++ptr) { ++ e->unit = ptr; ++ while (*++ptr && *ptr != '\n'); + *ptr = 0; +- if (*++ptr) { +- e->unit = ptr; +- while (*++ptr && *ptr != '\n'); +- *ptr = 0; +- } else +- e->unit = 0; +- +- return 0; +- } ++ } else ++ e->unit = 0; ++ ++ return 0; ++} + ++static int ++read_apm(int *values) ++{ + FILE *f; + char line[1024]; + struct entry e; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
