[latexila/wip/gtef: 2/3] gtef: add dependency



commit fb15b1f3a393236d7d7be0c26ad377b39c5036b3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Oct 22 08:44:45 2016 +0200

    gtef: add dependency
    
    I've created the Gtef library with the purpose to reduce the amount of
    code in text editors like LaTeXila.

 README.in       |    5 +++++
 configure.ac    |    7 +++++++
 src/Makefile.am |    1 +
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/README.in b/README.in
index 9ccb791..7411836 100644
--- a/README.in
+++ b/README.in
@@ -18,6 +18,7 @@ Requirements
 GLib >= @GLIB_REQUIRED_VERSION@
 GTK+ >= @GTK_REQUIRED_VERSION@
 GtkSourceView >= @GTKSOURCEVIEW_REQUIRED_VERSION@
+Gtef >= @GTEF_REQUIRED_VERSION@
 gspell >= @GSPELL_REQUIRED_VERSION@
 gee-0.8 >= @GEE_REQUIRED_VERSION@
 gettext
@@ -31,6 +32,10 @@ yelp-tools
 If you are installing LaTeXila from a tarball, you don't have to install Vala
 because the C code is already generated.
 
+Gtef is hosted at:
+
+    https://github.com/swilmet/gtef
+
 
 Installation
 ============
diff --git a/configure.ac b/configure.ac
index 5e36dff..786a5df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,7 @@ LT_INIT
 GLIB_REQUIRED_VERSION="2.40"
 GTK_REQUIRED_VERSION="3.20"
 GTKSOURCEVIEW_REQUIRED_VERSION="3.23.1"
+GTEF_REQUIRED_VERSION="0.1.1"
 GSPELL_REQUIRED_VERSION="1.0"
 VALA_REQUIRED_VERSION="0.26"
 GEE_REQUIRED_VERSION="0.10"
@@ -35,6 +36,7 @@ GEE_REQUIRED_VERSION="0.10"
 AC_SUBST([GLIB_REQUIRED_VERSION])
 AC_SUBST([GTK_REQUIRED_VERSION])
 AC_SUBST([GTKSOURCEVIEW_REQUIRED_VERSION])
+AC_SUBST([GTEF_REQUIRED_VERSION])
 AC_SUBST([GSPELL_REQUIRED_VERSION])
 AC_SUBST([VALA_REQUIRED_VERSION])
 AC_SUBST([GEE_REQUIRED_VERSION])
@@ -98,6 +100,10 @@ if ! pkg-config --atleast-version=${GTKSOURCEVIEW_REQUIRED_VERSION} gtksourcevie
        AC_MSG_ERROR([gtksourceview-3.0 >= ${GTKSOURCEVIEW_REQUIRED_VERSION} required.])
 fi
 
+if ! pkg-config --atleast-version=${GTEF_REQUIRED_VERSION} gtef-1; then
+       AC_MSG_ERROR([gtef-1 >= ${GTEF_REQUIRED_VERSION} required.])
+fi
+
 if ! pkg-config --atleast-version=${GSPELL_REQUIRED_VERSION} gspell-1; then
        AC_MSG_ERROR([gspell-1 ${GSPELL_REQUIRED_VERSION} required.])
 fi
@@ -115,6 +121,7 @@ dependencies="
        gio-2.0
        gtk+-3.0
        gtksourceview-3.0
+       gtef-1
        gspell-1
        gsettings-desktop-schemas
        gee-0.8"
diff --git a/src/Makefile.am b/src/Makefile.am
index e539db3..c5d8cba 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,6 +8,7 @@ VALAFLAGS =                     \
        --pkg gtk+-3.0          \
        --disable-since-check   \
        --pkg gtksourceview-3.0 \
+       --pkg gtef-1            \
        --pkg gspell-1          \
        --pkg gee-0.8           \
        --pkg posix             \


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