[gnome-continuous] manifest: Add libssh and hotssh



commit 80e9d96764bf6bae758b79f0045bff819cee3c9f
Author: Colin Walters <walters verbum org>
Date:   Tue Nov 12 14:08:47 2013 -0500

    manifest: Add libssh and hotssh
    
    This is my new toy app.  I'd like to have it be in Continuous, so
    using my executive powers here to do so!
    
    This also drags in libssh (git master).  For now let's do CI on this
    too and see how that goes.

 manifest.json                       |    5 ++
 patches/libssh-cmake-buildapi.patch |   72 +++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/manifest.json b/manifest.json
index 3490952..31e112a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -991,6 +991,11 @@
                {"src": "gnome:evolution-ews",
                 "config-opts": ["--with-internal-lzx"]},
 
+               {"src": "git:git://git.libssh.org/projects/libssh.git",
+                "patches": ["libssh-cmake-buildapi.patch"]},
+
+               {"src": "gnome:hotssh"},
+
                {"src": "gnome:gnome-desktop-testing",
                 "component": "testing"}
        ],
diff --git a/patches/libssh-cmake-buildapi.patch b/patches/libssh-cmake-buildapi.patch
new file mode 100644
index 0000000..4710494
--- /dev/null
+++ b/patches/libssh-cmake-buildapi.patch
@@ -0,0 +1,72 @@
+From 8fe85118718324fa2abaa3f5077d09703a58f913 Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters verbum org>
+Date: Tue, 12 Nov 2013 10:50:07 -0500
+Subject: [PATCH] build: Add a "configure" script implementing the GNOME Build API
+
+See http://people.gnome.org/~walters/docs/build-api.txt
+
+Hopefully this will turn into a generic copy/paste-able adapter for
+cmake.
+---
+ configure |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 files changed, 49 insertions(+), 0 deletions(-)
+ create mode 100644 configure
+
+diff --git a/configure b/configure
+new file mode 100644
+index 0000000..b50e1ff
+--- /dev/null
++++ b/configure
+@@ -0,0 +1,49 @@
++#!/bin/bash
++# configure script adapter for cmake
++# Copyright 2010, 2011, 2013 Colin Walters <walters verbum org>
++# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
++
++prefix=/usr
++
++# Little helper function for reading args from the commandline.
++# it automatically handles -a b and -a=b variants, and returns 1 if
++# we need to shift $3.
++read_arg() {
++    # $1 = arg name
++    # $2 = arg value
++    # $3 = arg parameter
++    local rematch='^[^=]*=(.*)$'
++    if [[ $2 =~ $rematch ]]; then
++        read "$1" <<< "${BASH_REMATCH[1]}"
++    else
++        read "$1" <<< "$3"
++        # There is no way to shift our callers args, so
++        # return 1 to indicate they should do it instead.
++        return 1
++    fi
++}
++
++while (($# > 0)); do
++    case "${1%%=*}" in
++              --prefix) read_arg prefix "$@" || shift;;
++              --bindir) read_arg bindir "$@" || shift;;
++              --sbindir) read_arg sbindir "$@" || shift;;
++              --libexecdir) read_arg libexecdir "$@" || shift;;
++              --datarootdir) read_arg datarootdir "$@" || shift;;
++              --datadir) read_arg datadir "$@" || shift;;
++              --sysconfdir) read_arg sysconfdir "$@" || shift;;
++              --libdir) read_arg libdir "$@" || shift;;
++              --mandir) read_arg mandir "$@" || shift;;
++      *) echo "Ignoring unknown option '$1'";;
++    esac
++    shift
++done
++
++srcdir=$(dirname $0)
++
++exec cmake \
++     -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
++     -DLIB_INSTALL_DIR:PATH=${libdir} \
++     -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
++     -DSHARE_INSTALL_PREFIX:PATH=${datadir} \
++     ${srcdir}
+-- 
+1.7.1
+


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