[arch-commits] Commit in dvdauthor/repos/community-x86_64 (4 files)

Balló György bgyorgy at archlinux.org
Sat Jan 27 11:16:06 UTC 2018


    Date: Saturday, January 27, 2018 @ 11:16:04
  Author: bgyorgy
Revision: 287411

archrelease: copy trunk to community-x86_64

Added:
  dvdauthor/repos/community-x86_64/PKGBUILD
    (from rev 287410, dvdauthor/trunk/PKGBUILD)
  dvdauthor/repos/community-x86_64/dvdauthor-0.7.2-imagemagick7.patch
    (from rev 287410, dvdauthor/trunk/dvdauthor-0.7.2-imagemagick7.patch)
Deleted:
  dvdauthor/repos/community-x86_64/PKGBUILD
  dvdauthor/repos/community-x86_64/dvdauthor-0.7.2-imagemagick7.patch

------------------------------------+
 PKGBUILD                           |   75 +++++++++++------------
 dvdauthor-0.7.2-imagemagick7.patch |  111 +++++++++++++++++++++++------------
 2 files changed, 112 insertions(+), 74 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-27 11:15:57 UTC (rev 287410)
+++ PKGBUILD	2018-01-27 11:16:04 UTC (rev 287411)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Travis Willard <travisw at wmpub.ca>
-# Contributor: Jaroslaw Swierczynski <swiergot at juvepoland.com>
-# Contributor: Nicolai Lissner <nlissne at linux01.gwdg.de>
-
-pkgname=dvdauthor
-pkgver=0.7.2
-pkgrel=3
-pkgdesc="DVD authoring tools"
-arch=('x86_64')
-url="http://dvdauthor.sourceforge.net/"
-license=('GPL')
-depends=('libdvdread' 'libmagick' 'libxml2')
-makedepends=('imagemagick')
-source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
-        "dvdauthor-0.7.2-imagemagick7.patch")
-sha256sums=('3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7'
-            '0c190fab9cc548de3981a352c4310205f536f71ba6e31198b61f67d10d27a1fd')
-
-prepare() {
-  cd $pkgname
-  # Port to imagemagick 7 (taken from Gentoo)
-  patch -Np1 -i ../dvdauthor-0.7.2-imagemagick7.patch
-}
-
-build() {
-  cd $pkgname
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd $pkgname
-  make DESTDIR="$pkgdir" install
-}

Copied: dvdauthor/repos/community-x86_64/PKGBUILD (from rev 287410, dvdauthor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-01-27 11:16:04 UTC (rev 287411)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Travis Willard <travisw at wmpub.ca>
+# Contributor: Jaroslaw Swierczynski <swiergot at juvepoland.com>
+# Contributor: Nicolai Lissner <nlissne at linux01.gwdg.de>
+
+pkgname=dvdauthor
+pkgver=0.7.2
+pkgrel=4
+pkgdesc="DVD authoring tools"
+arch=('x86_64')
+url="http://dvdauthor.sourceforge.net/"
+license=('GPL')
+depends=('libdvdread' 'libmagick' 'libxml2')
+makedepends=('imagemagick')
+source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+        "dvdauthor-0.7.2-imagemagick7.patch")
+sha256sums=('3020a92de9f78eb36f48b6f22d5a001c47107826634a785a62dfcd080f612eb7'
+            '5c6a6c1cca2fdb2a0037507361980de7ed3bf6c603cb85e9ce273eaf0028dc00')
+
+prepare() {
+  cd $pkgname
+  # Port to imagemagick 7
+  # https://bugs.gentoo.org/610574#c2
+  patch -Np1 -i ../dvdauthor-0.7.2-imagemagick7.patch
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}

Deleted: dvdauthor-0.7.2-imagemagick7.patch
===================================================================
--- dvdauthor-0.7.2-imagemagick7.patch	2018-01-27 11:15:57 UTC (rev 287410)
+++ dvdauthor-0.7.2-imagemagick7.patch	2018-01-27 11:16:04 UTC (rev 287411)
@@ -1,37 +0,0 @@
---- dvdauthor/src/subgen-image.c
-+++ dvdauthor/src/subgen-image.c
-@@ -30,7 +30,7 @@
- 
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
- #include <stdarg.h>
--#include <magick/api.h>
-+#include <MagickWand/MagickWand.h>
- #else
- #include <png.h>
- #endif
-@@ -181,7 +181,8 @@
-     unsigned long magickver;
-     unsigned char amask;
- 
--    GetExceptionInfo(&ei);
-+    ExceptionInfo *exception_info;
-+    exception_info = AcquireExceptionInfo();
-     ii=CloneImageInfo(NULL);
-     strcpy(ii->filename,s->fname);
-     im=ReadImage(ii,&ei);
-@@ -1098,13 +1099,13 @@
- void image_init()
- {
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
--    InitializeMagick(NULL);
-+    MagickCoreGenesis("", MagickFalse);
- #endif
- }
- 
- void image_shutdown()
- {
- #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
--    DestroyMagick();
-+    MagickCoreTerminus();
- #endif
- }

Copied: dvdauthor/repos/community-x86_64/dvdauthor-0.7.2-imagemagick7.patch (from rev 287410, dvdauthor/trunk/dvdauthor-0.7.2-imagemagick7.patch)
===================================================================
--- dvdauthor-0.7.2-imagemagick7.patch	                        (rev 0)
+++ dvdauthor-0.7.2-imagemagick7.patch	2018-01-27 11:16:04 UTC (rev 287411)
@@ -0,0 +1,74 @@
+--- dvdauthor/src/subgen-image.c	2014-01-21 00:12:37.000000000 +0100
++++ dvdauthor/src/subgen-image.c	2017-11-27 20:26:53.682914041 +0100
+@@ -30,7 +30,7 @@
+ 
+ #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
+ #include <stdarg.h>
+-#include <magick/api.h>
++#include <MagickWand/MagickWand.h>
+ #else
+ #include <png.h>
+ #endif
+@@ -176,18 +176,18 @@
+ {
+     Image *im;
+     ImageInfo *ii;
+-    ExceptionInfo ei;
++    ExceptionInfo *ei;
+     int x,y;
+     unsigned long magickver;
+     unsigned char amask;
+ 
+-    GetExceptionInfo(&ei);
++    ei = AcquireExceptionInfo();
+     ii=CloneImageInfo(NULL);
+     strcpy(ii->filename,s->fname);
+-    im=ReadImage(ii,&ei);
++    im=ReadImage(ii,ei);
+ 
+     if( !im ) {
+-        MagickError(ei.severity,"Unable to load file",ii->filename);
++        MagickError(ei->severity,"Unable to load file",ii->filename);
+         return -1;
+     }
+ 
+@@ -202,10 +202,10 @@
+     for( y=0; y<im->rows; y++ ) {
+         char pdata[MAXX*4];
+ 
+-        if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,&ei)) {
+-            fprintf(stderr,"ERR:  Extracting row %d from %s (%s,%s)\n",y,s->fname,ei.reason,ei.description);
+-            CatchException(&ei);
+-            MagickError(ei.severity,ei.reason,ei.description);
++        if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,ei)) {
++            fprintf(stderr,"ERR:  Extracting row %d from %s (%s,%s)\n",y,s->fname,ei->reason,ei->description);
++            CatchException(ei);
++            MagickError(ei->severity,ei->reason,ei->description);
+             DestroyImage(im);
+             return -1;
+         }
+@@ -219,7 +219,7 @@
+         }
+     }
+     DestroyImage(im);
+-    DestroyExceptionInfo(&ei);
++    DestroyExceptionInfo(ei);
+     fprintf(stderr,"INFO: Picture %s had %d colors\n",s->fname,s->numpal);
+ 
+     return 0;
+@@ -1098,13 +1098,13 @@
+ void image_init()
+ {
+ #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
+-    InitializeMagick(NULL);
++    MagickCoreGenesis("", MagickFalse);
+ #endif
+ }
+ 
+ void image_shutdown()
+ {
+ #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK)
+-    DestroyMagick();
++    MagickCoreTerminus();
+ #endif
+ }



More information about the arch-commits mailing list