Date: Monday, April 22, 2013 @ 21:13:17
  Author: jsteel
Revision: 88806

archrelease: copy trunk to community-i686, community-x86_64

Added:
  apvlv/repos/community-i686/PKGBUILD
    (from rev 88805, apvlv/trunk/PKGBUILD)
  apvlv/repos/community-i686/apvlv-poppler015.patch
    (from rev 88805, apvlv/trunk/apvlv-poppler015.patch)
  apvlv/repos/community-i686/apvlv.desktop
    (from rev 88805, apvlv/trunk/apvlv.desktop)
  apvlv/repos/community-i686/apvlv.install
    (from rev 88805, apvlv/trunk/apvlv.install)
  apvlv/repos/community-i686/poppler-gdk.patch
    (from rev 88805, apvlv/trunk/poppler-gdk.patch)
  apvlv/repos/community-x86_64/PKGBUILD
    (from rev 88805, apvlv/trunk/PKGBUILD)
  apvlv/repos/community-x86_64/apvlv-poppler015.patch
    (from rev 88805, apvlv/trunk/apvlv-poppler015.patch)
  apvlv/repos/community-x86_64/apvlv.desktop
    (from rev 88805, apvlv/trunk/apvlv.desktop)
  apvlv/repos/community-x86_64/apvlv.install
    (from rev 88805, apvlv/trunk/apvlv.install)
  apvlv/repos/community-x86_64/poppler-gdk.patch
    (from rev 88805, apvlv/trunk/poppler-gdk.patch)
Deleted:
  apvlv/repos/community-i686/PKGBUILD
  apvlv/repos/community-i686/apvlv-poppler015.patch
  apvlv/repos/community-i686/poppler-gdk.patch
  apvlv/repos/community-x86_64/PKGBUILD
  apvlv/repos/community-x86_64/apvlv-poppler015.patch
  apvlv/repos/community-x86_64/poppler-gdk.patch

-----------------------------------------+
 /PKGBUILD                               |   86 ++++++++
 /apvlv-poppler015.patch                 |   24 ++
 /poppler-gdk.patch                      |  300 ++++++++++++++++++++++++++++++
 community-i686/PKGBUILD                 |   35 ---
 community-i686/apvlv-poppler015.patch   |   12 -
 community-i686/apvlv.desktop            |   17 +
 community-i686/apvlv.install            |    7 
 community-i686/poppler-gdk.patch        |  150 ---------------
 community-x86_64/PKGBUILD               |   35 ---
 community-x86_64/apvlv-poppler015.patch |   12 -
 community-x86_64/apvlv.desktop          |   17 +
 community-x86_64/apvlv.install          |    7 
 community-x86_64/poppler-gdk.patch      |  150 ---------------
 13 files changed, 458 insertions(+), 394 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD     2013-04-22 19:12:47 UTC (rev 88805)
+++ community-i686/PKGBUILD     2013-04-22 19:13:17 UTC (rev 88806)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer:  Bartłomiej Piotrowski <[email protected]>
-# Contributor: Brad Fanella <[email protected]>
-# Contributor: Stefan Husmann <[email protected]>
-# Contributor: tocer.deng <[email protected]>
-
-pkgname=apvlv
-pkgver=0.1.4.20121023
-pkgrel=1
-pkgdesc='A PDF Viewer which behaves like Vim'
-arch=('i686' 'x86_64')
-url="http://naihe2010.github.com/apvlv/";
-license=('GPL')
-depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre')
-makedepends=('cmake' 'libwebkit')
-source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz)
-md5sums=('f222fc4b09b15358eb4e7f996ba810d6')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  mkdir -p build
-  cd build
-  
-  cmake -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DAPVLV_WITH_UMD=no  ..
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver/build
-
-  make DESTDIR=$pkgdir/ install
-}

Copied: apvlv/repos/community-i686/PKGBUILD (from rev 88805, 
apvlv/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:  Jonathan Steel <[email protected]>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Brad Fanella <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+# Contributor: tocer.deng <[email protected]>
+
+pkgname=apvlv
+pkgver=0.1.4.20121023
+pkgrel=2
+pkgdesc='A PDF Viewer, which behaves like Vim'
+arch=('i686' 'x86_64')
+url="http://naihe2010.github.com/apvlv/";
+license=('GPL')
+depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre' 'desktop-file-utils')
+makedepends=('cmake' 'libwebkit')
+install=$pkgname.install
+source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz
+        $pkgname.desktop)
+md5sums=('f222fc4b09b15358eb4e7f996ba810d6'
+         '54478fecb54f36d1c44d8fdc233ddbac')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  mkdir -p build
+  cd build
+  
+  cmake -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DAPVLV_WITH_UMD=no  ..
+
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir"/ install
+
+  install -Dm644 "$srcdir"/$pkgname.desktop \
+    "$pkgdir"/usr/share/applications/$pkgname.desktop
+}

Deleted: community-i686/apvlv-poppler015.patch
===================================================================
--- community-i686/apvlv-poppler015.patch       2013-04-22 19:12:47 UTC (rev 
88805)
+++ community-i686/apvlv-poppler015.patch       2013-04-22 19:13:17 UTC (rev 
88806)
@@ -1,12 +0,0 @@
-diff -Naur apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new//src/ApvlvFile.cpp
---- apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 2011-07-29 17:19:13.000000000 
+0200
-+++ apvlv-0.1.2-Source.new//src/ApvlvFile.cpp  2011-07-29 17:22:22.000000000 
+0200
-@@ -304,7 +304,7 @@
- {
-   PopplerRectangle rect = { x1, y1, x2, y2 };
-   PopplerPage *page = poppler_document_get_page (mDoc, pn);
--  *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
-+  *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
-   if (*out != NULL)
-     {
-       return true;

Copied: apvlv/repos/community-i686/apvlv-poppler015.patch (from rev 88805, 
apvlv/trunk/apvlv-poppler015.patch)
===================================================================
--- community-i686/apvlv-poppler015.patch                               (rev 0)
+++ community-i686/apvlv-poppler015.patch       2013-04-22 19:13:17 UTC (rev 
88806)
@@ -0,0 +1,12 @@
+diff -Naur apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new//src/ApvlvFile.cpp
+--- apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 2011-07-29 17:19:13.000000000 
+0200
++++ apvlv-0.1.2-Source.new//src/ApvlvFile.cpp  2011-07-29 17:22:22.000000000 
+0200
+@@ -304,7 +304,7 @@
+ {
+   PopplerRectangle rect = { x1, y1, x2, y2 };
+   PopplerPage *page = poppler_document_get_page (mDoc, pn);
+-  *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
++  *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
+   if (*out != NULL)
+     {
+       return true;

Copied: apvlv/repos/community-i686/apvlv.desktop (from rev 88805, 
apvlv/trunk/apvlv.desktop)
===================================================================
--- community-i686/apvlv.desktop                                (rev 0)
+++ community-i686/apvlv.desktop        2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=apvlv
+Comment=A minimalistic document viewer
+Comment[de]=Ein minimalistischer Dokumenten-Betrachter
+Comment[fr]=Un visionneur de document minimaliste
+Comment[ru]=Минималистичный просмотрщик документов
+Comment[tr]=Minimalist bir belge görüntüleyicisi
+Comment[es_CL]=Un visor de documentos minimalista
+Comment[uk_UA]=Легкий переглядач документів
+Comment[it]=Un visualizzatore di documenti minimalista
+Comment[pl]=Minimalistyczna przeglądarka dokumentów
+Exec=apvlv %f
+Terminal=false
+Categories=Office;Viewer;
+MimeType=application/pdf;application/postscript;application/eps;application/x-eps;image/eps;image/x-eps;image/vnd.djvu;

Copied: apvlv/repos/community-i686/apvlv.install (from rev 88805, 
apvlv/trunk/apvlv.install)
===================================================================
--- community-i686/apvlv.install                                (rev 0)
+++ community-i686/apvlv.install        2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,7 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_remove() {
+  post_install
+}

Deleted: community-i686/poppler-gdk.patch
===================================================================
--- community-i686/poppler-gdk.patch    2013-04-22 19:12:47 UTC (rev 88805)
+++ community-i686/poppler-gdk.patch    2013-04-22 19:13:17 UTC (rev 88806)
@@ -1,150 +0,0 @@
-diff -ruN apvlv-0.1.2-Source/src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new/src/ApvlvFile.cpp
---- apvlv-0.1.2-Source/src/ApvlvFile.cpp       2011-10-10 14:23:19.205606984 
+0200
-+++ apvlv-0.1.2-Source.new/src/ApvlvFile.cpp   2011-10-10 14:21:50.870952455 
+0200
-@@ -29,6 +29,10 @@
- #include "ApvlvUtil.hpp"
- #include "ApvlvView.hpp"
- 
-+#ifndef POPPLER_WITH_GDK
-+#include "poppler-gdk.h"
-+#endif
-+
- #ifdef HAVE_LIBUMD
- #define LIBUMD_ENABLE_GTK
- #include <umd.h>
-diff -ruN apvlv-0.1.2-Source/src/poppler-gdk.h 
apvlv-0.1.2-Source.new/src/poppler-gdk.h
---- apvlv-0.1.2-Source/src/poppler-gdk.h       1970-01-01 01:00:00.000000000 
+0100
-+++ apvlv-0.1.2-Source.new/src/poppler-gdk.h   2011-10-10 14:22:06.077846565 
+0200
-@@ -0,0 +1,132 @@
-+#include <goo/gtypes.h>
-+
-+static void
-+copy_cairo_surface_to_pixbuf (cairo_surface_t *surface,
-+                            GdkPixbuf       *pixbuf)
-+{
-+  int cairo_width, cairo_height, cairo_rowstride;
-+  unsigned char *pixbuf_data, *dst, *cairo_data;
-+  int pixbuf_rowstride, pixbuf_n_channels;
-+  unsigned int *src;
-+  int x, y;
-+
-+  cairo_width = cairo_image_surface_get_width (surface);
-+  cairo_height = cairo_image_surface_get_height (surface);
-+  cairo_rowstride = cairo_image_surface_get_stride (surface);
-+  cairo_data = cairo_image_surface_get_data (surface);
-+
-+  pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
-+  pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
-+  pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
-+
-+  if (cairo_width > gdk_pixbuf_get_width (pixbuf))
-+    cairo_width = gdk_pixbuf_get_width (pixbuf);
-+  if (cairo_height > gdk_pixbuf_get_height (pixbuf))
-+    cairo_height = gdk_pixbuf_get_height (pixbuf);
-+  for (y = 0; y < cairo_height; y++)
-+    {
-+      src = (unsigned int *) (cairo_data + y * cairo_rowstride);
-+      dst = pixbuf_data + y * pixbuf_rowstride;
-+      for (x = 0; x < cairo_width; x++) 
-+      {
-+        dst[0] = (*src >> 16) & 0xff;
-+        dst[1] = (*src >> 8) & 0xff; 
-+        dst[2] = (*src >> 0) & 0xff;
-+        if (pixbuf_n_channels == 4)
-+            dst[3] = (*src >> 24) & 0xff;
-+        dst += pixbuf_n_channels;
-+        src++;
-+      }
-+    }
-+}
-+
-+static void
-+_poppler_page_render_to_pixbuf (PopplerPage *page,
-+                              int src_x, int src_y,
-+                              int src_width, int src_height,
-+                              double scale,
-+                              int rotation,
-+                              GBool printing,
-+                              GdkPixbuf *pixbuf)
-+{
-+  cairo_t *cr;
-+  cairo_surface_t *surface;
-+
-+  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
-+                                      src_width, src_height);
-+  cr = cairo_create (surface);
-+  cairo_save (cr);
-+  switch (rotation) {
-+  case 90:
-+        cairo_translate (cr, src_x + src_width, -src_y);
-+        break;
-+  case 180:
-+        cairo_translate (cr, src_x + src_width, src_y + src_height);
-+        break;
-+  case 270:
-+        cairo_translate (cr, -src_x, src_y + src_height);
-+        break;
-+  default:
-+        cairo_translate (cr, -src_x, -src_y);
-+  }
-+
-+  if (scale != 1.0)
-+        cairo_scale (cr, scale, scale);
-+
-+  if (rotation != 0)
-+        cairo_rotate (cr, rotation * G_PI / 180.0);
-+
-+  if (printing)
-+        poppler_page_render_for_printing (page, cr);
-+  else
-+        poppler_page_render (page, cr);
-+  cairo_restore (cr);
-+
-+  cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
-+  cairo_set_source_rgb (cr, 1., 1., 1.);
-+  cairo_paint (cr);
-+
-+  cairo_destroy (cr);
-+
-+  copy_cairo_surface_to_pixbuf (surface, pixbuf);
-+  cairo_surface_destroy (surface);
-+}
-+
-+/**
-+ * poppler_page_render_to_pixbuf:
-+ * @page: the page to render from
-+ * @src_x: x coordinate of upper left corner  
-+ * @src_y: y coordinate of upper left corner  
-+ * @src_width: width of rectangle to render  
-+ * @src_height: height of rectangle to render
-+ * @scale: scale specified as pixels per point
-+ * @rotation: rotate the document by the specified degree
-+ * @pixbuf: pixbuf to render into
-+ *
-+ * First scale the document to match the specified pixels per point,
-+ * then render the rectangle given by the upper left corner at
-+ * (src_x, src_y) and src_width and src_height.
-+ * This function is for rendering a page that will be displayed.
-+ * If you want to render a page that will be printed use
-+ * poppler_page_render_to_pixbuf_for_printing() instead
-+ *
-+ * Deprecated: 0.16
-+ **/
-+void
-+poppler_page_render_to_pixbuf (PopplerPage *page,
-+                             int src_x, int src_y,
-+                             int src_width, int src_height,
-+                             double scale,
-+                             int rotation,
-+                             GdkPixbuf *pixbuf)
-+{
-+  g_return_if_fail (POPPLER_IS_PAGE (page));
-+  g_return_if_fail (scale > 0.0);
-+  g_return_if_fail (pixbuf != NULL);
-+
-+  _poppler_page_render_to_pixbuf (page, src_x, src_y,
-+                                src_width, src_height,
-+                                scale, rotation,
-+                                gFalse,
-+                                pixbuf);
-+}

Copied: apvlv/repos/community-i686/poppler-gdk.patch (from rev 88805, 
apvlv/trunk/poppler-gdk.patch)
===================================================================
--- community-i686/poppler-gdk.patch                            (rev 0)
+++ community-i686/poppler-gdk.patch    2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,150 @@
+diff -ruN apvlv-0.1.2-Source/src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new/src/ApvlvFile.cpp
+--- apvlv-0.1.2-Source/src/ApvlvFile.cpp       2011-10-10 14:23:19.205606984 
+0200
++++ apvlv-0.1.2-Source.new/src/ApvlvFile.cpp   2011-10-10 14:21:50.870952455 
+0200
+@@ -29,6 +29,10 @@
+ #include "ApvlvUtil.hpp"
+ #include "ApvlvView.hpp"
+ 
++#ifndef POPPLER_WITH_GDK
++#include "poppler-gdk.h"
++#endif
++
+ #ifdef HAVE_LIBUMD
+ #define LIBUMD_ENABLE_GTK
+ #include <umd.h>
+diff -ruN apvlv-0.1.2-Source/src/poppler-gdk.h 
apvlv-0.1.2-Source.new/src/poppler-gdk.h
+--- apvlv-0.1.2-Source/src/poppler-gdk.h       1970-01-01 01:00:00.000000000 
+0100
++++ apvlv-0.1.2-Source.new/src/poppler-gdk.h   2011-10-10 14:22:06.077846565 
+0200
+@@ -0,0 +1,132 @@
++#include <goo/gtypes.h>
++
++static void
++copy_cairo_surface_to_pixbuf (cairo_surface_t *surface,
++                            GdkPixbuf       *pixbuf)
++{
++  int cairo_width, cairo_height, cairo_rowstride;
++  unsigned char *pixbuf_data, *dst, *cairo_data;
++  int pixbuf_rowstride, pixbuf_n_channels;
++  unsigned int *src;
++  int x, y;
++
++  cairo_width = cairo_image_surface_get_width (surface);
++  cairo_height = cairo_image_surface_get_height (surface);
++  cairo_rowstride = cairo_image_surface_get_stride (surface);
++  cairo_data = cairo_image_surface_get_data (surface);
++
++  pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
++  pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
++  pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
++
++  if (cairo_width > gdk_pixbuf_get_width (pixbuf))
++    cairo_width = gdk_pixbuf_get_width (pixbuf);
++  if (cairo_height > gdk_pixbuf_get_height (pixbuf))
++    cairo_height = gdk_pixbuf_get_height (pixbuf);
++  for (y = 0; y < cairo_height; y++)
++    {
++      src = (unsigned int *) (cairo_data + y * cairo_rowstride);
++      dst = pixbuf_data + y * pixbuf_rowstride;
++      for (x = 0; x < cairo_width; x++) 
++      {
++        dst[0] = (*src >> 16) & 0xff;
++        dst[1] = (*src >> 8) & 0xff; 
++        dst[2] = (*src >> 0) & 0xff;
++        if (pixbuf_n_channels == 4)
++            dst[3] = (*src >> 24) & 0xff;
++        dst += pixbuf_n_channels;
++        src++;
++      }
++    }
++}
++
++static void
++_poppler_page_render_to_pixbuf (PopplerPage *page,
++                              int src_x, int src_y,
++                              int src_width, int src_height,
++                              double scale,
++                              int rotation,
++                              GBool printing,
++                              GdkPixbuf *pixbuf)
++{
++  cairo_t *cr;
++  cairo_surface_t *surface;
++
++  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
++                                      src_width, src_height);
++  cr = cairo_create (surface);
++  cairo_save (cr);
++  switch (rotation) {
++  case 90:
++        cairo_translate (cr, src_x + src_width, -src_y);
++        break;
++  case 180:
++        cairo_translate (cr, src_x + src_width, src_y + src_height);
++        break;
++  case 270:
++        cairo_translate (cr, -src_x, src_y + src_height);
++        break;
++  default:
++        cairo_translate (cr, -src_x, -src_y);
++  }
++
++  if (scale != 1.0)
++        cairo_scale (cr, scale, scale);
++
++  if (rotation != 0)
++        cairo_rotate (cr, rotation * G_PI / 180.0);
++
++  if (printing)
++        poppler_page_render_for_printing (page, cr);
++  else
++        poppler_page_render (page, cr);
++  cairo_restore (cr);
++
++  cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
++  cairo_set_source_rgb (cr, 1., 1., 1.);
++  cairo_paint (cr);
++
++  cairo_destroy (cr);
++
++  copy_cairo_surface_to_pixbuf (surface, pixbuf);
++  cairo_surface_destroy (surface);
++}
++
++/**
++ * poppler_page_render_to_pixbuf:
++ * @page: the page to render from
++ * @src_x: x coordinate of upper left corner  
++ * @src_y: y coordinate of upper left corner  
++ * @src_width: width of rectangle to render  
++ * @src_height: height of rectangle to render
++ * @scale: scale specified as pixels per point
++ * @rotation: rotate the document by the specified degree
++ * @pixbuf: pixbuf to render into
++ *
++ * First scale the document to match the specified pixels per point,
++ * then render the rectangle given by the upper left corner at
++ * (src_x, src_y) and src_width and src_height.
++ * This function is for rendering a page that will be displayed.
++ * If you want to render a page that will be printed use
++ * poppler_page_render_to_pixbuf_for_printing() instead
++ *
++ * Deprecated: 0.16
++ **/
++void
++poppler_page_render_to_pixbuf (PopplerPage *page,
++                             int src_x, int src_y,
++                             int src_width, int src_height,
++                             double scale,
++                             int rotation,
++                             GdkPixbuf *pixbuf)
++{
++  g_return_if_fail (POPPLER_IS_PAGE (page));
++  g_return_if_fail (scale > 0.0);
++  g_return_if_fail (pixbuf != NULL);
++
++  _poppler_page_render_to_pixbuf (page, src_x, src_y,
++                                src_width, src_height,
++                                scale, rotation,
++                                gFalse,
++                                pixbuf);
++}

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD   2013-04-22 19:12:47 UTC (rev 88805)
+++ community-x86_64/PKGBUILD   2013-04-22 19:13:17 UTC (rev 88806)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer:  Bartłomiej Piotrowski <[email protected]>
-# Contributor: Brad Fanella <[email protected]>
-# Contributor: Stefan Husmann <[email protected]>
-# Contributor: tocer.deng <[email protected]>
-
-pkgname=apvlv
-pkgver=0.1.4.20121023
-pkgrel=1
-pkgdesc='A PDF Viewer which behaves like Vim'
-arch=('i686' 'x86_64')
-url="http://naihe2010.github.com/apvlv/";
-license=('GPL')
-depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre')
-makedepends=('cmake' 'libwebkit')
-source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz)
-md5sums=('f222fc4b09b15358eb4e7f996ba810d6')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  mkdir -p build
-  cd build
-  
-  cmake -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DAPVLV_WITH_UMD=no  ..
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver/build
-
-  make DESTDIR=$pkgdir/ install
-}

Copied: apvlv/repos/community-x86_64/PKGBUILD (from rev 88805, 
apvlv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:  Jonathan Steel <[email protected]>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Brad Fanella <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+# Contributor: tocer.deng <[email protected]>
+
+pkgname=apvlv
+pkgver=0.1.4.20121023
+pkgrel=2
+pkgdesc='A PDF Viewer, which behaves like Vim'
+arch=('i686' 'x86_64')
+url="http://naihe2010.github.com/apvlv/";
+license=('GPL')
+depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre' 'desktop-file-utils')
+makedepends=('cmake' 'libwebkit')
+install=$pkgname.install
+source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz
+        $pkgname.desktop)
+md5sums=('f222fc4b09b15358eb4e7f996ba810d6'
+         '54478fecb54f36d1c44d8fdc233ddbac')
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver
+
+  mkdir -p build
+  cd build
+  
+  cmake -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DAPVLV_WITH_UMD=no  ..
+
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir"/ install
+
+  install -Dm644 "$srcdir"/$pkgname.desktop \
+    "$pkgdir"/usr/share/applications/$pkgname.desktop
+}

Deleted: community-x86_64/apvlv-poppler015.patch
===================================================================
--- community-x86_64/apvlv-poppler015.patch     2013-04-22 19:12:47 UTC (rev 
88805)
+++ community-x86_64/apvlv-poppler015.patch     2013-04-22 19:13:17 UTC (rev 
88806)
@@ -1,12 +0,0 @@
-diff -Naur apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new//src/ApvlvFile.cpp
---- apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 2011-07-29 17:19:13.000000000 
+0200
-+++ apvlv-0.1.2-Source.new//src/ApvlvFile.cpp  2011-07-29 17:22:22.000000000 
+0200
-@@ -304,7 +304,7 @@
- {
-   PopplerRectangle rect = { x1, y1, x2, y2 };
-   PopplerPage *page = poppler_document_get_page (mDoc, pn);
--  *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
-+  *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
-   if (*out != NULL)
-     {
-       return true;

Copied: apvlv/repos/community-x86_64/apvlv-poppler015.patch (from rev 88805, 
apvlv/trunk/apvlv-poppler015.patch)
===================================================================
--- community-x86_64/apvlv-poppler015.patch                             (rev 0)
+++ community-x86_64/apvlv-poppler015.patch     2013-04-22 19:13:17 UTC (rev 
88806)
@@ -0,0 +1,12 @@
+diff -Naur apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new//src/ApvlvFile.cpp
+--- apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 2011-07-29 17:19:13.000000000 
+0200
++++ apvlv-0.1.2-Source.new//src/ApvlvFile.cpp  2011-07-29 17:22:22.000000000 
+0200
+@@ -304,7 +304,7 @@
+ {
+   PopplerRectangle rect = { x1, y1, x2, y2 };
+   PopplerPage *page = poppler_document_get_page (mDoc, pn);
+-  *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
++  *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
+   if (*out != NULL)
+     {
+       return true;

Copied: apvlv/repos/community-x86_64/apvlv.desktop (from rev 88805, 
apvlv/trunk/apvlv.desktop)
===================================================================
--- community-x86_64/apvlv.desktop                              (rev 0)
+++ community-x86_64/apvlv.desktop      2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=apvlv
+Comment=A minimalistic document viewer
+Comment[de]=Ein minimalistischer Dokumenten-Betrachter
+Comment[fr]=Un visionneur de document minimaliste
+Comment[ru]=Минималистичный просмотрщик документов
+Comment[tr]=Minimalist bir belge görüntüleyicisi
+Comment[es_CL]=Un visor de documentos minimalista
+Comment[uk_UA]=Легкий переглядач документів
+Comment[it]=Un visualizzatore di documenti minimalista
+Comment[pl]=Minimalistyczna przeglądarka dokumentów
+Exec=apvlv %f
+Terminal=false
+Categories=Office;Viewer;
+MimeType=application/pdf;application/postscript;application/eps;application/x-eps;image/eps;image/x-eps;image/vnd.djvu;

Copied: apvlv/repos/community-x86_64/apvlv.install (from rev 88805, 
apvlv/trunk/apvlv.install)
===================================================================
--- community-x86_64/apvlv.install                              (rev 0)
+++ community-x86_64/apvlv.install      2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,7 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_remove() {
+  post_install
+}

Deleted: community-x86_64/poppler-gdk.patch
===================================================================
--- community-x86_64/poppler-gdk.patch  2013-04-22 19:12:47 UTC (rev 88805)
+++ community-x86_64/poppler-gdk.patch  2013-04-22 19:13:17 UTC (rev 88806)
@@ -1,150 +0,0 @@
-diff -ruN apvlv-0.1.2-Source/src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new/src/ApvlvFile.cpp
---- apvlv-0.1.2-Source/src/ApvlvFile.cpp       2011-10-10 14:23:19.205606984 
+0200
-+++ apvlv-0.1.2-Source.new/src/ApvlvFile.cpp   2011-10-10 14:21:50.870952455 
+0200
-@@ -29,6 +29,10 @@
- #include "ApvlvUtil.hpp"
- #include "ApvlvView.hpp"
- 
-+#ifndef POPPLER_WITH_GDK
-+#include "poppler-gdk.h"
-+#endif
-+
- #ifdef HAVE_LIBUMD
- #define LIBUMD_ENABLE_GTK
- #include <umd.h>
-diff -ruN apvlv-0.1.2-Source/src/poppler-gdk.h 
apvlv-0.1.2-Source.new/src/poppler-gdk.h
---- apvlv-0.1.2-Source/src/poppler-gdk.h       1970-01-01 01:00:00.000000000 
+0100
-+++ apvlv-0.1.2-Source.new/src/poppler-gdk.h   2011-10-10 14:22:06.077846565 
+0200
-@@ -0,0 +1,132 @@
-+#include <goo/gtypes.h>
-+
-+static void
-+copy_cairo_surface_to_pixbuf (cairo_surface_t *surface,
-+                            GdkPixbuf       *pixbuf)
-+{
-+  int cairo_width, cairo_height, cairo_rowstride;
-+  unsigned char *pixbuf_data, *dst, *cairo_data;
-+  int pixbuf_rowstride, pixbuf_n_channels;
-+  unsigned int *src;
-+  int x, y;
-+
-+  cairo_width = cairo_image_surface_get_width (surface);
-+  cairo_height = cairo_image_surface_get_height (surface);
-+  cairo_rowstride = cairo_image_surface_get_stride (surface);
-+  cairo_data = cairo_image_surface_get_data (surface);
-+
-+  pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
-+  pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
-+  pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
-+
-+  if (cairo_width > gdk_pixbuf_get_width (pixbuf))
-+    cairo_width = gdk_pixbuf_get_width (pixbuf);
-+  if (cairo_height > gdk_pixbuf_get_height (pixbuf))
-+    cairo_height = gdk_pixbuf_get_height (pixbuf);
-+  for (y = 0; y < cairo_height; y++)
-+    {
-+      src = (unsigned int *) (cairo_data + y * cairo_rowstride);
-+      dst = pixbuf_data + y * pixbuf_rowstride;
-+      for (x = 0; x < cairo_width; x++) 
-+      {
-+        dst[0] = (*src >> 16) & 0xff;
-+        dst[1] = (*src >> 8) & 0xff; 
-+        dst[2] = (*src >> 0) & 0xff;
-+        if (pixbuf_n_channels == 4)
-+            dst[3] = (*src >> 24) & 0xff;
-+        dst += pixbuf_n_channels;
-+        src++;
-+      }
-+    }
-+}
-+
-+static void
-+_poppler_page_render_to_pixbuf (PopplerPage *page,
-+                              int src_x, int src_y,
-+                              int src_width, int src_height,
-+                              double scale,
-+                              int rotation,
-+                              GBool printing,
-+                              GdkPixbuf *pixbuf)
-+{
-+  cairo_t *cr;
-+  cairo_surface_t *surface;
-+
-+  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
-+                                      src_width, src_height);
-+  cr = cairo_create (surface);
-+  cairo_save (cr);
-+  switch (rotation) {
-+  case 90:
-+        cairo_translate (cr, src_x + src_width, -src_y);
-+        break;
-+  case 180:
-+        cairo_translate (cr, src_x + src_width, src_y + src_height);
-+        break;
-+  case 270:
-+        cairo_translate (cr, -src_x, src_y + src_height);
-+        break;
-+  default:
-+        cairo_translate (cr, -src_x, -src_y);
-+  }
-+
-+  if (scale != 1.0)
-+        cairo_scale (cr, scale, scale);
-+
-+  if (rotation != 0)
-+        cairo_rotate (cr, rotation * G_PI / 180.0);
-+
-+  if (printing)
-+        poppler_page_render_for_printing (page, cr);
-+  else
-+        poppler_page_render (page, cr);
-+  cairo_restore (cr);
-+
-+  cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
-+  cairo_set_source_rgb (cr, 1., 1., 1.);
-+  cairo_paint (cr);
-+
-+  cairo_destroy (cr);
-+
-+  copy_cairo_surface_to_pixbuf (surface, pixbuf);
-+  cairo_surface_destroy (surface);
-+}
-+
-+/**
-+ * poppler_page_render_to_pixbuf:
-+ * @page: the page to render from
-+ * @src_x: x coordinate of upper left corner  
-+ * @src_y: y coordinate of upper left corner  
-+ * @src_width: width of rectangle to render  
-+ * @src_height: height of rectangle to render
-+ * @scale: scale specified as pixels per point
-+ * @rotation: rotate the document by the specified degree
-+ * @pixbuf: pixbuf to render into
-+ *
-+ * First scale the document to match the specified pixels per point,
-+ * then render the rectangle given by the upper left corner at
-+ * (src_x, src_y) and src_width and src_height.
-+ * This function is for rendering a page that will be displayed.
-+ * If you want to render a page that will be printed use
-+ * poppler_page_render_to_pixbuf_for_printing() instead
-+ *
-+ * Deprecated: 0.16
-+ **/
-+void
-+poppler_page_render_to_pixbuf (PopplerPage *page,
-+                             int src_x, int src_y,
-+                             int src_width, int src_height,
-+                             double scale,
-+                             int rotation,
-+                             GdkPixbuf *pixbuf)
-+{
-+  g_return_if_fail (POPPLER_IS_PAGE (page));
-+  g_return_if_fail (scale > 0.0);
-+  g_return_if_fail (pixbuf != NULL);
-+
-+  _poppler_page_render_to_pixbuf (page, src_x, src_y,
-+                                src_width, src_height,
-+                                scale, rotation,
-+                                gFalse,
-+                                pixbuf);
-+}

Copied: apvlv/repos/community-x86_64/poppler-gdk.patch (from rev 88805, 
apvlv/trunk/poppler-gdk.patch)
===================================================================
--- community-x86_64/poppler-gdk.patch                          (rev 0)
+++ community-x86_64/poppler-gdk.patch  2013-04-22 19:13:17 UTC (rev 88806)
@@ -0,0 +1,150 @@
+diff -ruN apvlv-0.1.2-Source/src/ApvlvFile.cpp 
apvlv-0.1.2-Source.new/src/ApvlvFile.cpp
+--- apvlv-0.1.2-Source/src/ApvlvFile.cpp       2011-10-10 14:23:19.205606984 
+0200
++++ apvlv-0.1.2-Source.new/src/ApvlvFile.cpp   2011-10-10 14:21:50.870952455 
+0200
+@@ -29,6 +29,10 @@
+ #include "ApvlvUtil.hpp"
+ #include "ApvlvView.hpp"
+ 
++#ifndef POPPLER_WITH_GDK
++#include "poppler-gdk.h"
++#endif
++
+ #ifdef HAVE_LIBUMD
+ #define LIBUMD_ENABLE_GTK
+ #include <umd.h>
+diff -ruN apvlv-0.1.2-Source/src/poppler-gdk.h 
apvlv-0.1.2-Source.new/src/poppler-gdk.h
+--- apvlv-0.1.2-Source/src/poppler-gdk.h       1970-01-01 01:00:00.000000000 
+0100
++++ apvlv-0.1.2-Source.new/src/poppler-gdk.h   2011-10-10 14:22:06.077846565 
+0200
+@@ -0,0 +1,132 @@
++#include <goo/gtypes.h>
++
++static void
++copy_cairo_surface_to_pixbuf (cairo_surface_t *surface,
++                            GdkPixbuf       *pixbuf)
++{
++  int cairo_width, cairo_height, cairo_rowstride;
++  unsigned char *pixbuf_data, *dst, *cairo_data;
++  int pixbuf_rowstride, pixbuf_n_channels;
++  unsigned int *src;
++  int x, y;
++
++  cairo_width = cairo_image_surface_get_width (surface);
++  cairo_height = cairo_image_surface_get_height (surface);
++  cairo_rowstride = cairo_image_surface_get_stride (surface);
++  cairo_data = cairo_image_surface_get_data (surface);
++
++  pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
++  pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
++  pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
++
++  if (cairo_width > gdk_pixbuf_get_width (pixbuf))
++    cairo_width = gdk_pixbuf_get_width (pixbuf);
++  if (cairo_height > gdk_pixbuf_get_height (pixbuf))
++    cairo_height = gdk_pixbuf_get_height (pixbuf);
++  for (y = 0; y < cairo_height; y++)
++    {
++      src = (unsigned int *) (cairo_data + y * cairo_rowstride);
++      dst = pixbuf_data + y * pixbuf_rowstride;
++      for (x = 0; x < cairo_width; x++) 
++      {
++        dst[0] = (*src >> 16) & 0xff;
++        dst[1] = (*src >> 8) & 0xff; 
++        dst[2] = (*src >> 0) & 0xff;
++        if (pixbuf_n_channels == 4)
++            dst[3] = (*src >> 24) & 0xff;
++        dst += pixbuf_n_channels;
++        src++;
++      }
++    }
++}
++
++static void
++_poppler_page_render_to_pixbuf (PopplerPage *page,
++                              int src_x, int src_y,
++                              int src_width, int src_height,
++                              double scale,
++                              int rotation,
++                              GBool printing,
++                              GdkPixbuf *pixbuf)
++{
++  cairo_t *cr;
++  cairo_surface_t *surface;
++
++  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
++                                      src_width, src_height);
++  cr = cairo_create (surface);
++  cairo_save (cr);
++  switch (rotation) {
++  case 90:
++        cairo_translate (cr, src_x + src_width, -src_y);
++        break;
++  case 180:
++        cairo_translate (cr, src_x + src_width, src_y + src_height);
++        break;
++  case 270:
++        cairo_translate (cr, -src_x, src_y + src_height);
++        break;
++  default:
++        cairo_translate (cr, -src_x, -src_y);
++  }
++
++  if (scale != 1.0)
++        cairo_scale (cr, scale, scale);
++
++  if (rotation != 0)
++        cairo_rotate (cr, rotation * G_PI / 180.0);
++
++  if (printing)
++        poppler_page_render_for_printing (page, cr);
++  else
++        poppler_page_render (page, cr);
++  cairo_restore (cr);
++
++  cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
++  cairo_set_source_rgb (cr, 1., 1., 1.);
++  cairo_paint (cr);
++
++  cairo_destroy (cr);
++
++  copy_cairo_surface_to_pixbuf (surface, pixbuf);
++  cairo_surface_destroy (surface);
++}
++
++/**
++ * poppler_page_render_to_pixbuf:
++ * @page: the page to render from
++ * @src_x: x coordinate of upper left corner  
++ * @src_y: y coordinate of upper left corner  
++ * @src_width: width of rectangle to render  
++ * @src_height: height of rectangle to render
++ * @scale: scale specified as pixels per point
++ * @rotation: rotate the document by the specified degree
++ * @pixbuf: pixbuf to render into
++ *
++ * First scale the document to match the specified pixels per point,
++ * then render the rectangle given by the upper left corner at
++ * (src_x, src_y) and src_width and src_height.
++ * This function is for rendering a page that will be displayed.
++ * If you want to render a page that will be printed use
++ * poppler_page_render_to_pixbuf_for_printing() instead
++ *
++ * Deprecated: 0.16
++ **/
++void
++poppler_page_render_to_pixbuf (PopplerPage *page,
++                             int src_x, int src_y,
++                             int src_width, int src_height,
++                             double scale,
++                             int rotation,
++                             GdkPixbuf *pixbuf)
++{
++  g_return_if_fail (POPPLER_IS_PAGE (page));
++  g_return_if_fail (scale > 0.0);
++  g_return_if_fail (pixbuf != NULL);
++
++  _poppler_page_render_to_pixbuf (page, src_x, src_y,
++                                src_width, src_height,
++                                scale, rotation,
++                                gFalse,
++                                pixbuf);
++}

Reply via email to