diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-10-28 00:04:35 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-10-28 00:04:35 +0000 |
commit | 8a222bc893f10d470b142b84f05f2cef31d8caad (patch) | |
tree | 17afb143775d5c2441c455095aa49d333355e076 /net-misc/urlview/files | |
parent | Fix building against sys-libs/ncurses[tinfo] (bug #527160). (diff) | |
download | gentoo-2-8a222bc893f10d470b142b84f05f2cef31d8caad.tar.gz gentoo-2-8a222bc893f10d470b142b84f05f2cef31d8caad.tar.bz2 gentoo-2-8a222bc893f10d470b142b84f05f2cef31d8caad.zip |
Fix building against sys-libs/ncurses[tinfo] (bug #526332).
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-misc/urlview/files')
-rw-r--r-- | net-misc/urlview/files/include-fix.patch | 4 | ||||
-rw-r--r-- | net-misc/urlview/files/no-trailing-newline.patch | 4 | ||||
-rw-r--r-- | net-misc/urlview/files/urlview-0.9-DESTDIR.patch | 15 | ||||
-rw-r--r-- | net-misc/urlview/files/urlview-0.9-tinfo.patch | 21 |
4 files changed, 38 insertions, 6 deletions
diff --git a/net-misc/urlview/files/include-fix.patch b/net-misc/urlview/files/include-fix.patch index c948a2355435..b9bb6ab46992 100644 --- a/net-misc/urlview/files/include-fix.patch +++ b/net-misc/urlview/files/include-fix.patch @@ -1,5 +1,5 @@ ---- urlview.c.orig 2005-02-06 17:10:54.000000000 +0100 -+++ urlview.c 2005-02-06 17:57:06.998290062 +0100 +--- a/urlview.c ++++ b/urlview.c @@ -40,6 +40,8 @@ #include <fcntl.h> #include <sys/stat.h> diff --git a/net-misc/urlview/files/no-trailing-newline.patch b/net-misc/urlview/files/no-trailing-newline.patch index 8a6859f2ccfe..6d78cd4ed073 100644 --- a/net-misc/urlview/files/no-trailing-newline.patch +++ b/net-misc/urlview/files/no-trailing-newline.patch @@ -1,5 +1,5 @@ ---- urlview.c 2000-07-04 11:14:30.000000000 +0100 -+++ urlview.no-trailing-newline.c 2003-09-06 11:07:02.000000000 +0100 +--- a/urlview.c ++++ b/urlview.no-trailing-newline.c @@ -46,7 +46,7 @@ #include <rx/rxposix.h> #endif diff --git a/net-misc/urlview/files/urlview-0.9-DESTDIR.patch b/net-misc/urlview/files/urlview-0.9-DESTDIR.patch index 304fd6706c86..8c4cfe816b63 100644 --- a/net-misc/urlview/files/urlview-0.9-DESTDIR.patch +++ b/net-misc/urlview/files/urlview-0.9-DESTDIR.patch @@ -1,5 +1,16 @@ ---- Makefile.in -+++ Makefile.in +--- a/Makefile.am ++++ b/Makefile.am +@@ -11,6 +11,7 @@ + CLEANFILES = *~ *.orig *.rej + + install-data-local: +- $(INSTALL_DATA) urlview.man $(mandir)/man1/urlview.1 ++ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 ++ $(INSTALL_DATA) urlview.man ${DESTDIR}$(mandir)/man1/urlview.1 + + # how to create a target for uninstall-data-local??? +--- a/Makefile.in ++++ b/Makefile.in @@ -318,7 +318,8 @@ diff --git a/net-misc/urlview/files/urlview-0.9-tinfo.patch b/net-misc/urlview/files/urlview-0.9-tinfo.patch new file mode 100644 index 000000000000..e8f3886a4d0e --- /dev/null +++ b/net-misc/urlview/files/urlview-0.9-tinfo.patch @@ -0,0 +1,21 @@ +--- a/configure.in ++++ b/configure.in +@@ -3,6 +3,8 @@ + dnl AM_CONFIG_HEADER(config.h) + AM_PROG_CC_STDC + CFLAGS="$CFLAGS -DURLVIEW -Dunix" ++ ++PKG_CHECK_MODULES(ncurses,ncurses) + AC_ARG_WITH(slang, [ --with-slang[=DIR] use S-Lang instead of curses], + [AC_DEFINE(USE_SLANG) + if test $withval = yes -a -d ../slang; then +@@ -22,8 +24,7 @@ + fi + LIBS="$LIBS -lslang -lm" + fi], +- +- [AC_CHECK_LIB(ncurses, initscr, [LIBS="$LIBS -lncurses"], [LIBS="$LIBS -lcurses"]) ++ [LIBS="$LIBS $ncurses_LIBS" + AC_CHECK_FUNCS(curs_set) + AC_CHECK_HEADERS(ncurses.h) + AC_CHECK_HEADER(ncurses/curses.h, [CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"])]) |