[gnome-apps-nightly] org.gnome.Photos: Use a "file" source, not wget for dcraw.c



commit 07eca5276ec4cff3ae807e4d7554c3577506fc0c
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 8 12:11:40 2017 +0100

    org.gnome.Photos: Use a "file" source, not wget for dcraw.c
    
    We can't use wget to fetch dcraw during the build. Instead, let's use
    a "file" source.
    
    Take this opportunity to convert the rest of libraw-autogen.patch into
    a "shell" source. It is easier to type shell commands directly into
    the JSON manifest, as opposed to maintaining a separate patch.

 libraw-autogen.patch  |   31 -------------------------------
 org.gnome.Photos.json |   14 ++++++++++++--
 2 files changed, 12 insertions(+), 33 deletions(-)
---
diff --git a/org.gnome.Photos.json b/org.gnome.Photos.json
index 5e0df08..519f74f 100644
--- a/org.gnome.Photos.json
+++ b/org.gnome.Photos.json
@@ -136,8 +136,18 @@
                     "url": "https://github.com/LibRaw/LibRaw.git";
                 },
                 {
-                    "type": "patch",
-                    "path": "libraw-autogen.patch"
+                    "type": "file",
+                    "url": "http://www.cybercom.net/~dcoffin/dcraw/dcraw.c";
+                },
+                {
+                    "type": "shell",
+                    "commands": [
+                        "make -f Makefile.devel regenerate",
+                        "autoreconf --force --install",
+                        "rm -rf dcraw/*",
+                        "rm -f dcraw/.gdbinit",
+                        "mv dcraw.c dcraw"
+                    ]
                 },
                 {
                     "type": "patch",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]