x11-terms/lilyterm: Use x11-libs/vte:2.91.
authorJeroen Roovers <jer@gentoo.org>
Sat, 28 Jul 2018 11:34:57 +0000 (13:34 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 28 Jul 2018 11:38:44 +0000 (13:38 +0200)
Package-Manager: Portage-2.3.43, Repoman-2.3.10

x11-terms/lilyterm/files/lilyterm-99999-autogen.patch [new file with mode: 0644]
x11-terms/lilyterm/lilyterm-99999.ebuild

diff --git a/x11-terms/lilyterm/files/lilyterm-99999-autogen.patch b/x11-terms/lilyterm/files/lilyterm-99999-autogen.patch
new file mode 100644 (file)
index 0000000..8485d56
--- /dev/null
@@ -0,0 +1,29 @@
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -44,11 +44,10 @@
+ Replace_Parameter BINARY
+ echo ""
+-# for GTK3+
+-pkg-config --cflags gtk+-2.0 > /dev/null 2>&1
++false
+ if [ $? != 0 ]; then
+   sed -i 's/^AM_PATH_GTK_2_0.*/PKG_CHECK_MODULES([GTK], [gtk+-3.0])/g' configure.ac
+-  pkg-config --cflags vte-2.91 > /dev/null 2>&1
++true
+   if [ $? = 0 ]; then
+     sed -i 's/^PKG_CHECK_MODULES(vte, \[vte >= .*/PKG_CHECK_MODULES(vte, [vte-2.91 >= 0.38.0],, AC_MSG_ERROR([You need libvte-2.91 >= 0.38.0 to build $_PACKAGE]))/g' configure.ac
+     sed -i 's/^lilyterm_LDADD\(.*\)$/lilyterm_LDADD\1 -lX11/g' src/Makefile.am
+@@ -56,12 +55,3 @@
+     sed -i 's/^PKG_CHECK_MODULES(vte, \[vte >= .*/PKG_CHECK_MODULES(vte, [vte-2.90 >= 0.30.0],, AC_MSG_ERROR([You need libvte-2.90 >= 0.30.0 to build $_PACKAGE]))/g' configure.ac
+   fi
+ fi
+-
+-set -x
+-
+-aclocal
+-autoheader
+-intltoolize --automake --copy --force
+-automake --add-missing --copy
+-autoconf
+-
index 402106af6658391c28f1b056343f7cf564891393..21280cce5b43c250535a9c3badaf6ba951f21586 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit git-r3
+inherit autotools git-r3
 
 DESCRIPTION="a terminal emulator based off of libvte that aims to be fast and lightweight"
 HOMEPAGE="https://lilyterm.luna.com.tw"
@@ -13,7 +13,7 @@ LICENSE="GPL-3"
 KEYWORDS=""
 
 RDEPEND="
-       x11-libs/vte:0
+       x11-libs/vte:2.91
 "
 DEPEND="
        ${RDEPEND}
@@ -23,9 +23,13 @@ DEPEND="
 "
 
 DOCS=( AUTHORS ChangeLog README TODO )
+PATCHES=(
+       "${FILESDIR}"/${PN}-99999-autogen.patch
+)
 
 src_prepare() {
        default
 
        ./autogen.sh || die
+       eautoreconf
 }