[csw-devel] SF.net SVN: gar:[13986] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Mar 28 12:40:28 CEST 2011


Revision: 13986
          http://gar.svn.sourceforge.net/gar/?rev=13986&view=rev
Author:   dmichelsen
Date:     2011-03-28 10:40:28 +0000 (Mon, 28 Mar 2011)

Log Message:
-----------
ascii: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/ascii/
    csw/mgar/pkg/ascii/Makefile
    csw/mgar/pkg/ascii/branches/
    csw/mgar/pkg/ascii/tags/
    csw/mgar/pkg/ascii/trunk/
    csw/mgar/pkg/ascii/trunk/Makefile
    csw/mgar/pkg/ascii/trunk/checksums
    csw/mgar/pkg/ascii/trunk/files/
    csw/mgar/pkg/ascii/trunk/files/0001-Do-not-use-stdbool.h.patch
    csw/mgar/pkg/ascii/trunk/files/0002-Honour-CFLAGS.patch

Copied: csw/mgar/pkg/ascii/Makefile (from rev 13982, csw/mgar/pkg/template/Makefile)
===================================================================
--- csw/mgar/pkg/ascii/Makefile	                        (rev 0)
+++ csw/mgar/pkg/ascii/Makefile	2011-03-28 10:40:28 UTC (rev 13986)
@@ -0,0 +1,15 @@
+# vim: ft=make ts=4 sw=4 noet
+
+default:
+	@echo "You are in the pkg/ directory."
+
+%:
+	$(MAKE) -C trunk $* 
+
+paranoid-%:
+	$(MAKE) -C trunk $* || exit 2 
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	$(MAKE) -C trunk $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG) 


Property changes on: csw/mgar/pkg/ascii/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/ascii/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ascii/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/ascii/trunk/Makefile	2011-03-28 10:40:28 UTC (rev 13986)
@@ -0,0 +1,31 @@
+# $Id$
+NAME = ascii
+VERSION = 3.11
+CATEGORIES = utils
+
+DESCRIPTION = Provides easy conversion between various byte representations and ASCII
+define BLURB
+endef
+
+MASTER_SITES = http://www.catb.org/~esr/ascii/
+DISTFILES  = $(DISTNAME).tar.gz
+
+PATCHFILES += 0001-Do-not-use-stdbool.h.patch
+PATCHFILES += 0002-Honour-CFLAGS.patch
+
+# No funky configure
+CONFIGURE_SCRIPTS =
+
+# No test script
+TEST_SCRIPTS =
+
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+install-custom:
+	ginstall -d $(DESTDIR)$(bindir)
+	ginstall $(WORKSRC)/ascii $(DESTDIR)$(bindir)/ascii
+	ginstall -d $(DESTDIR)$(mandir)/man1
+	ginstall $(WORKSRC)/ascii.1 $(DESTDIR)$(mandir)/man1/ascii.1
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/ascii/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/ascii/trunk/checksums
===================================================================
--- csw/mgar/pkg/ascii/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/ascii/trunk/checksums	2011-03-28 10:40:28 UTC (rev 13986)
@@ -0,0 +1 @@
+ba8a9392f8aa8c6b7a52923fba870579  ascii-3.11.tar.gz

Added: csw/mgar/pkg/ascii/trunk/files/0001-Do-not-use-stdbool.h.patch
===================================================================
--- csw/mgar/pkg/ascii/trunk/files/0001-Do-not-use-stdbool.h.patch	                        (rev 0)
+++ csw/mgar/pkg/ascii/trunk/files/0001-Do-not-use-stdbool.h.patch	2011-03-28 10:40:28 UTC (rev 13986)
@@ -0,0 +1,28 @@
+From 7c9db391d6cb487169575e9627f2dcc1d8789593 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Mon, 28 Mar 2011 11:48:10 +0200
+Subject: [PATCH] Do not use stdbool.h
+
+---
+ ascii.c |    5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/ascii.c b/ascii.c
+index 40b4301..08623df 100644
+--- a/ascii.c
++++ b/ascii.c
+@@ -18,7 +18,10 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <stdbool.h>
++/* include <stdbool.h> */
++#define bool int
++#define false 0
++#define true 1
+ 
+ typedef char	*string;
+ 
+-- 
+1.7.3.2
+

Added: csw/mgar/pkg/ascii/trunk/files/0002-Honour-CFLAGS.patch
===================================================================
--- csw/mgar/pkg/ascii/trunk/files/0002-Honour-CFLAGS.patch	                        (rev 0)
+++ csw/mgar/pkg/ascii/trunk/files/0002-Honour-CFLAGS.patch	2011-03-28 10:40:28 UTC (rev 13986)
@@ -0,0 +1,31 @@
+From d0988c3028b8b99bf73e8a85adecbba142b983df Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Mon, 28 Mar 2011 12:36:19 +0200
+Subject: [PATCH] Honour CFLAGS
+
+---
+ Makefile |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 062a31e..1f7e344 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,12 +2,12 @@
+ 
+ VERS=$(shell sed <ascii.spec -n -e '/Version: \(.*\)/s//\1/p')
+ 
+-CFLAGS = -O
++CFLAGS ?= -O
+ 
+ all: ascii ascii.1
+ 
+ ascii: ascii.c splashscreen.h nametable.h
+-	$(CC) -DREVISION=$(VERS) ascii.c -o ascii
++	$(CC) $(CFLAGS) -DREVISION=$(VERS) ascii.c -o ascii
+ 
+ splashscreen.h: splashscreen
+ 	sed <splashscreen >splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/.*/P("&");/' 
+-- 
+1.7.3.2
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list