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

[tyndur-devel] [PATCH] [lbuilds] Neues lbuild Sed. Grep geupdatet.



+ Neues lbuild Sed eingefügt.
+ Grep auf Version 2.9 geupdatet.
Signed-off-by: Dominik Bittner <DoBi-tyndur@xxxxxxx>
---
 lbuilds/4.2.1/files/config.patch  |   11 ++++++++
 lbuilds/4.2.1/sed-4.2.1.lbuild    |   47 +++++++++++++++++++++++++++++++++++++
 lbuilds/grep-2.9.lbuild           |   42 +++++++++++++++++++++++++++++++++
 lbuilds/patches/grep-config.patch |   12 +++++++++
 lbuilds/patches/grep-lib.patch    |   30 +++++++++++++++++++++++
 lbuilds/patches/series            |    2 +
 6 files changed, 144 insertions(+), 0 deletions(-)
 create mode 100644 lbuilds/4.2.1/files/config.patch
 create mode 100644 lbuilds/4.2.1/sed-4.2.1.lbuild
 create mode 100644 lbuilds/grep-2.9.lbuild
 create mode 100644 lbuilds/patches/grep-config.patch
 create mode 100644 lbuilds/patches/grep-lib.patch
 create mode 100644 lbuilds/patches/series

diff --git a/lbuilds/4.2.1/files/config.patch b/lbuilds/4.2.1/files/config.patch
new file mode 100644
index 0000000..e21106b
--- /dev/null
+++ b/lbuilds/4.2.1/files/config.patch
@@ -0,0 +1,11 @@
+--- sed-4.2.1.orig/build-aux/config.sub	2009-06-15 11:05:11.000000000 +0200
++++ sed-4.2.1/build-aux/config.sub	2011-06-27 20:07:26.402073953 +0200
+@@ -1290,7 +1290,7 @@
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
++	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -tyndur*)
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
diff --git a/lbuilds/4.2.1/sed-4.2.1.lbuild b/lbuilds/4.2.1/sed-4.2.1.lbuild
new file mode 100644
index 0000000..0e66a80
--- /dev/null
+++ b/lbuilds/4.2.1/sed-4.2.1.lbuild
@@ -0,0 +1,47 @@
+include lutils
+include toolchain
+
+DESCRIPTION=""
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/sed";
+SRC_URI="http://ftp.gnu.org/gnu/sed/${P}.tar.bz2";
+
+BUILD_DEPEND=""
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_unpack() {
+	lunpack ${P}.tar.bz2
+
+	cd ${MY_S} || die "${MY_S} existiert nicht"
+    ln -s ${F} patches
+    for i in ${F}/*.patch; do
+        echo `basename $i` >> series
+        (which quilt > /dev/null 2>&1) || (patch -p1 < $i) || die "Fehler beim Anwenden von $i"
+    done
+    (which quilt > /dev/null 2>&1) && quilt push -a
+}
+
+src_compile() {
+	cd ${MY_S}
+
+	./configure \
+		CC=`tc-cc` \
+		--build=`tc-build` \
+		--target=`tc-host` \
+		--host=`tc-host` \
+		--prefix="${R}" \
+		--disable-largefile \
+		|| die "configure failed"
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+
+	# Sonst gibts Fehler
+	mkdir -p "${D}${R}/bin"
+	lmake -j1 DESTDIR="${D}" install || die "make install failed"
+}
diff --git a/lbuilds/grep-2.9.lbuild b/lbuilds/grep-2.9.lbuild
new file mode 100644
index 0000000..ff386ad
--- /dev/null
+++ b/lbuilds/grep-2.9.lbuild
@@ -0,0 +1,42 @@
+include lutils
+include toolchain
+
+DESCRIPTION=""
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/Grep";
+SRC_URI="http://ftp.gnu.org/gnu/grep/grep-2.9.tar.gz";
+
+LICENSE="GPL"
+
+RUN_DEPEND=""
+BUILD_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_unpack() {
+	lunpack ${P}.tar.gz
+	cd ${MY_S}
+}
+
+src_configure() {
+	cd ${MY_S}
+
+	./configure \
+        CC=`tc-cc` \
+		--build=`tc-build` \
+		--target=`tc-host` \
+		--host=`tc-host` \
+		--prefix="${R}" \
+        --disable-nls \
+		|| die "configure failed"
+}
+
+src_compile() {
+	cd ${MY_S}
+	lmake
+}
+
+src_install() {
+	cd ${MY_S}
+	lmake -j1 DESTDIR="${D}" install || die "make install failed"
+}
+
diff --git a/lbuilds/patches/grep-config.patch b/lbuilds/patches/grep-config.patch
new file mode 100644
index 0000000..85ae082
--- /dev/null
+++ b/lbuilds/patches/grep-config.patch
@@ -0,0 +1,12 @@
+--- src.orig/grep-2.9/build-aux/config.sub	2011-06-18 08:43:14.000000000 +0200
++++ src/grep-2.9/build-aux/config.sub	2011-07-02 09:35:30.855794175 +0200
+@@ -1342,7 +1342,8 @@
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
++	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
++              | -tyndur*)
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
diff --git a/lbuilds/patches/grep-lib.patch b/lbuilds/patches/grep-lib.patch
new file mode 100644
index 0000000..fd427bb
--- /dev/null
+++ b/lbuilds/patches/grep-lib.patch
@@ -0,0 +1,30 @@
+--- src.orig/grep-2.9/lib/inttypes.in.h	2011-04-28 10:20:53.000000000 +0200
++++ src/grep-2.9/lib/inttypes.in.h	2011-07-02 09:39:11.025794074 +0200
+@@ -46,9 +46,9 @@
+ /* Get CHAR_BIT.  */
+ #include <limits.h>
+ 
+-#if !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX)
+-# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@xxxxxxx>."
+-#endif
++//#if !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX)
++//# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@xxxxxxx>."
++//#endif
+ 
+ /* The definition of _GL_ARG_NONNULL is copied here.  */
+ 
+--- src.orig/grep-2.9/lib/error.c	2011-06-17 11:31:43.000000000 +0200
++++ src/grep-2.9/lib/error.c	2011-07-02 09:39:54.925794053 +0200
+@@ -128,9 +128,9 @@
+      fcntl, and the gnulib replacement fcntl does not support F_GETFL.  */
+   return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE;
+ # else
+-#  ifndef F_GETFL
+-#   error Please port fcntl to your platform
+-#  endif
++//#  ifndef F_GETFL
++//#   error Please port fcntl to your platform
++//#  endif
+   return 0 <= fcntl (fd, F_GETFL);
+ # endif
+ }
diff --git a/lbuilds/patches/series b/lbuilds/patches/series
new file mode 100644
index 0000000..5940f84
--- /dev/null
+++ b/lbuilds/patches/series
@@ -0,0 +1,2 @@
+grep-config.patch
+grep-lib.patch
-- 
1.7.4.1