summaryrefslogtreecommitdiff
path: root/community-testing
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-03 12:50:27 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-03 12:50:27 -0300
commit692010aa202808a5b0ab62a132e5e366e34273fc (patch)
treea2c48fc9ef2c8ae3f6d1ff4f0905c36257fc9707 /community-testing
parent01dfa0016c313f5ec5be0a8b624bac5031ff74a8 (diff)
parent6c10ff06abb7ca3a4db4c73624f73aafdd3b2e63 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/lightspark/PKGBUILD community-testing/gambas3/PKGBUILD community-testing/shotwell/PKGBUILD
Diffstat (limited to 'community-testing')
-rw-r--r--community-testing/acpitool/PKGBUILD32
-rw-r--r--community-testing/acpitool/linux-3.0.patch18
-rw-r--r--community-testing/acpitool/sysfs-battery.patch50
-rw-r--r--community-testing/shotwell/fix-with-libraw-0.4.patch50
4 files changed, 150 insertions, 0 deletions
diff --git a/community-testing/acpitool/PKGBUILD b/community-testing/acpitool/PKGBUILD
new file mode 100644
index 000000000..d9b079988
--- /dev/null
+++ b/community-testing/acpitool/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 57685 2011-11-01 09:10:22Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Gerhard Brauer <gerhard.brauer@web.de>
+# Contributor: Milosz Piglas <archeofuture@gmail.com>
+
+pkgname=acpitool
+pkgver=0.5.1
+pkgrel=4
+pkgdesc="ACPI client - replacement for apm tool"
+url="http://sourceforge.net/projects/acpitool/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('gcc-libs')
+source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2
+ linux-3.0.patch
+ sysfs-battery.patch)
+md5sums=('9e4ec55201be0be71ffbc56d38b42b57'
+ 'eb149edb32be6cdf20a7d16beb3e9f70'
+ '8211c37dbf888b76388699b7c6098503')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 <$srcdir/linux-3.0.patch
+ patch -p1 <$srcdir/sysfs-battery.patch
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make prefix="$pkgdir/usr" install
+}
diff --git a/community-testing/acpitool/linux-3.0.patch b/community-testing/acpitool/linux-3.0.patch
new file mode 100644
index 000000000..ba454a0c2
--- /dev/null
+++ b/community-testing/acpitool/linux-3.0.patch
@@ -0,0 +1,18 @@
+diff -wbBur acpitool-0.5.1/src/acpitool.cpp acpitool-0.5.1.my/src/acpitool.cpp
+--- acpitool-0.5.1/src/acpitool.cpp 2009-08-13 23:37:48.000000000 +0400
++++ acpitool-0.5.1.my/src/acpitool.cpp 2011-08-11 21:53:17.000000000 +0400
+@@ -205,8 +205,12 @@
+ Kernel_24 = 1;
+ Kernel_26 = 0;
+ }
+-
+- if(strncmp(str,"2.6",3)==0)
++ else if(strncmp(str,"2.6",3)==0)
++ {
++ Kernel_24 = 0;
++ Kernel_26 = 1;
++ }
++ else
+ {
+ Kernel_24 = 0;
+ Kernel_26 = 1;
diff --git a/community-testing/acpitool/sysfs-battery.patch b/community-testing/acpitool/sysfs-battery.patch
new file mode 100644
index 000000000..11a58ecc5
--- /dev/null
+++ b/community-testing/acpitool/sysfs-battery.patch
@@ -0,0 +1,50 @@
+diff -wbBur acpitool-0.5.1/src/battery.cpp acpitool-0.5.1.my/src/battery.cpp
+--- acpitool-0.5.1/src/battery.cpp 2009-08-13 23:42:43.000000000 +0400
++++ acpitool-0.5.1.my/src/battery.cpp 2011-11-01 13:07:20.000000000 +0400
+@@ -781,45 +781,7 @@
+
+ int Count_Batteries_ProcFS()
+ {
+- DIR *battery_dir;
+- char *name, *dirname;
+- int t = 0;
+-
+- dirname = "/proc/acpi/battery/";
+- battery_dir = opendir(dirname);
+- if(battery_dir)
+- {
+- struct dirent **namelist;
+- int n = 0;
+-
+- n = scandir(dirname, &namelist, 0, alphasort);
+- if(n<0)
+- t = -1;
+- else
+- {
+- while(n--)
+- {
+- name = namelist[n]->d_name;
+- // skip . and .. //
+- if (!strcmp (".", name) || !strcmp ("..", name))
+- {
+- // do nothing
+- }
+- else
+- {
+- t++;
+- }
+- free(namelist[n]);
+- }
+- free(namelist);
+- }
+- }
+- else
+- {
+- t = 0;
+- }
+- closedir(battery_dir);
+- return t;
++ return 0;
+ }
+
+
diff --git a/community-testing/shotwell/fix-with-libraw-0.4.patch b/community-testing/shotwell/fix-with-libraw-0.4.patch
new file mode 100644
index 000000000..f6f021b61
--- /dev/null
+++ b/community-testing/shotwell/fix-with-libraw-0.4.patch
@@ -0,0 +1,50 @@
+Seulement dans shotwell-0.11.5-fixed/misc: gschemas.compiled
+diff -ru shotwell-0.11.5/src/photos/GRaw.vala shotwell-0.11.5-fixed/src/photos/GRaw.vala
+--- shotwell-0.11.5/src/photos/GRaw.vala 2011-09-24 00:52:27.000000000 +0200
++++ shotwell-0.11.5-fixed/src/photos/GRaw.vala 2011-11-01 00:25:05.976289495 +0100
+@@ -163,9 +163,9 @@
+ proc = new LibRaw.Processor(options);
+ }
+
+- public void add_masked_borders_to_bitmap() {
+- proc.add_masked_borders_to_bitmap();
+- }
++// public void add_masked_borders_to_bitmap() {
++// proc.add_masked_borders_to_bitmap();
++// }
+
+ public void adjust_sizes_info_only() throws Exception {
+ throw_exception("adjust_sizes_info_only", proc.adjust_sizes_info_only());
+@@ -215,9 +215,9 @@
+ throw_exception("ppm_tiff_writer", proc.ppm_tiff_writer(filename));
+ }
+
+- public void rotate_fuji_raw() throws Exception {
+- throw_exception("rotate_fuji_raw", proc.rotate_fuji_raw());
+- }
++// public void rotate_fuji_raw() throws Exception {
++// throw_exception("rotate_fuji_raw", proc.rotate_fuji_raw());
++// }
+
+ public void thumb_writer(string filename) throws Exception {
+ throw_exception("thumb_writer", proc.thumb_writer(filename));
+@@ -262,7 +262,7 @@
+ // camera_profile
+ // bad_pixels
+ // dark_frame
+- output_params->filtering_mode = LibRaw.Filtering.AUTOMATIC;
++ // output_params->filtering_mode = LibRaw.Filtering.AUTOMATIC;
+ output_params->output_bps = 8;
+ // output_tiff
+ output_params->user_flip = GRaw.Flip.FROM_SOURCE;
+@@ -303,8 +303,8 @@
+ case LibRaw.Result.UNSUPPORTED_THUMBNAIL:
+ throw new Exception.UNSUPPORTED_THUMBNAIL(msg);
+
+- case LibRaw.Result.CANNOT_ADDMASK:
+- throw new Exception.CANNOT_ADDMASK(msg);
++// case LibRaw.Result.CANNOT_ADDMASK:
++// throw new Exception.CANNOT_ADDMASK(msg);
+
+ case LibRaw.Result.UNSUFFICIENT_MEMORY:
+ throw new Exception.OUT_OF_MEMORY(msg);