Add new package required by the new NetworkManager for its 'nmtui' tool

Signed-off-by: Juergen Borleis <[email protected]>
---
 .../0001-Never-include-host-paths.patch            | 22 ++++++++
 patches/newt-0.52.18/series                        |  4 ++
 rules/libnewt.in                                   | 13 +++++
 rules/libnewt.make                                 | 58 ++++++++++++++++++++++
 4 files changed, 97 insertions(+)
 create mode 100644 patches/newt-0.52.18/0001-Never-include-host-paths.patch
 create mode 100644 patches/newt-0.52.18/series
 create mode 100644 rules/libnewt.in
 create mode 100644 rules/libnewt.make

diff --git a/patches/newt-0.52.18/0001-Never-include-host-paths.patch 
b/patches/newt-0.52.18/0001-Never-include-host-paths.patch
new file mode 100644
index 0000000..f980159
--- /dev/null
+++ b/patches/newt-0.52.18/0001-Never-include-host-paths.patch
@@ -0,0 +1,22 @@
+From: Juergen Borleis <[email protected]>
+Date: Thu, 19 Feb 2015 16:17:48 +0100
+Subject: [PATCH] Never include host paths
+
+Signed-off-by: Juergen Borleis <[email protected]>
+---
+ Makefile.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 798920313a30..2f9841643060 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -5,7 +5,7 @@ CC = @CC@
+ CPP = @CPP@
+ CFLAGS = @CFLAGS@
+ LDFLAGS = @LDFLAGS@
+-CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ 
++CPPFLAGS = -D_GNU_SOURCE @CPPFLAGS@
+ GNU_LD = @GNU_LD@
+ 
+ VERSION = @VERSION@
diff --git a/patches/newt-0.52.18/series b/patches/newt-0.52.18/series
new file mode 100644
index 0000000..b5c04db
--- /dev/null
+++ b/patches/newt-0.52.18/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Never-include-host-paths.patch
+# a650892b08bf3549a7977ad5d9fe4a0d  - git-ptx-patches magic
diff --git a/rules/libnewt.in b/rules/libnewt.in
new file mode 100644
index 0000000..7b6508b
--- /dev/null
+++ b/rules/libnewt.in
@@ -0,0 +1,13 @@
+## SECTION=system_libraries
+
+config LIBNEWT
+       tristate
+       select SLANG
+       select LIBPOPT
+       prompt "libnewt"
+       help
+         Newt is a programming library for color text mode, widget based user
+         interfaces. Newt can be used to add stacked windows, entry widgets,
+         checkboxes, radio buttons, labels, plain text fields, scrollbars,
+         etc., to text mode user interfaces. Newt is based on the slang
+         library.
diff --git a/rules/libnewt.make b/rules/libnewt.make
new file mode 100644
index 0000000..8289f2c
--- /dev/null
+++ b/rules/libnewt.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Juergen Borleis <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBNEWT) += libnewt
+
+#
+# Paths and names
+#
+LIBNEWT_VERSION        := 0.52.18
+LIBNEWT_MD5    := 685721bee1a318570704b19dcf31d268
+LIBNEWT                := newt-$(LIBNEWT_VERSION)
+LIBNEWT_SUFFIX := tar.gz
+LIBNEWT_URL    := 
https://fedorahosted.org/releases/n/e/newt/$(LIBNEWT).$(LIBNEWT_SUFFIX)
+LIBNEWT_SOURCE := $(SRCDIR)/$(LIBNEWT).$(LIBNEWT_SUFFIX)
+LIBNEWT_DIR    := $(BUILDDIR)/$(LIBNEWT)
+LIBNEWT_LICENSE        := GPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBNEWT_CONF_TOOL      := autoconf
+LIBNEWT_CONF_OPT       := $(CROSS_AUTOCONF_USR) \
+       --disable-nls \
+       --without-python \
+       --without-tcl \
+       --without-gpm-support
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnewt.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, libnewt)
+       @$(call install_fixup, libnewt,PRIORITY,optional)
+       @$(call install_fixup, libnewt,SECTION,base)
+       @$(call install_fixup, libnewt,AUTHOR,"Juergen Borleis 
<[email protected]>")
+       @$(call install_fixup, libnewt,DESCRIPTION,"Not Eriks Windowing 
Toolkit")
+
+       @$(call install_lib, libnewt, 0, 0, 0644, libnewt)
+
+       @$(call install_finish, libnewt)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.1.4


-- 
ptxdist mailing list
[email protected]

Reply via email to