Deprecation campaign
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Thu Mar 17 04:34:37 UTC 2011
17.03.2011 02:33, Michel Talon пишет:
> Hello,
>
> i noted that ucpp is deprecated because it cannot be fetched
> from original site. This is an alternate c preprocessor
> supposed to be better than the gnu one, written by Thomas
> Pornin. I happen to know the guy (*), so i searched if
> the soft had been moved, and indeed it can be found here:
> http://code.google.com/p/ucpp/
> I hope you may reconsider your decision.
>
> With my best regards
>
> (*) i think he now runs a crypto firm in the Boston area.
I've tried to adopt the port to new distfile..
It builds but doesn't produce ucpp binary.
Maybe you or anybody can look what's wrong.
--
Regards,
Ruslan
-------------- next part --------------
diff -ruNa ucpp.orig/Makefile ucpp/Makefile
--- ucpp.orig/Makefile 2011-03-16 16:55:41.000000000 +0300
+++ ucpp/Makefile 2011-03-17 07:19:14.000000000 +0300
@@ -9,16 +9,16 @@
PORTNAME= ucpp
PORTVERSION= 1.3
CATEGORIES= devel
-MASTER_SITES= http://pornin.nerim.net/ucpp/
+MASTER_SITES= GOOGLE_CODE
MAINTAINER= ports at FreeBSD.org
COMMENT= A C preprocessor and lexer
-DEPRECATED= Upstream disapear and distfile is no more available
-EXPIRATION_DATE= 2011-05-01
+LICENSE= BSD
MAN1= ucpp.1
PLIST_FILES= bin/ucpp
+USE_GMAKE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff -ruNa ucpp.orig/distinfo ucpp/distinfo
--- ucpp.orig/distinfo 2005-11-24 18:40:02.000000000 +0300
+++ ucpp/distinfo 2011-03-17 07:04:01.000000000 +0300
@@ -1,3 +1,2 @@
-MD5 (ucpp-1.3.tar.gz) = f6f508ab42dd3eb57c0411a25429c9e8
-SHA256 (ucpp-1.3.tar.gz) = 6057028d96d349acd3de39a83f88f5772c422f822beb7f139dca8eabcf058bfa
-SIZE (ucpp-1.3.tar.gz) = 91537
+SHA256 (ucpp-1.3.tar.gz) = d81bff52769325497d7663356ebebb358991e4c820b43aa60c40d65a29e9c376
+SIZE (ucpp-1.3.tar.gz) = 91626
diff -ruNa ucpp.orig/files/patch-Makefile ucpp/files/patch-Makefile
--- ucpp.orig/files/patch-Makefile 2003-07-29 00:59:02.000000000 +0400
+++ ucpp/files/patch-Makefile 2011-03-17 07:20:24.000000000 +0300
@@ -1,22 +1,22 @@
---- Makefile.orig Wed Jan 15 02:07:44 2003
-+++ Makefile Sun Jul 27 14:51:51 2003
+--- Makefile.orig 2008-10-01 21:15:41.000000000 +0400
++++ Makefile 2011-03-17 07:10:39.000000000 +0300
@@ -56,8 +56,8 @@
#FLAGS = -O -m -DMEM_CHECK
# for gcc
-CC = gcc
--FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
+-FLAGS = -O3 -W -Wall -ansi
+CC ?= gcc
+FLAGS = -ansi -DAUDIT -DMEM_DEBUG
+ #FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
#FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -W -Wall -ansi -DMEM_CHECK
#FLAGS = -O -pg -W -Wall -ansi -DMEM_CHECK
- #LDFLAGS = -pg
-@@ -80,7 +80,7 @@
+@@ -87,7 +87,7 @@
# ----- nothing should be changed below this line -----
COBJ = mem.o nhash.o cpp.o lexer.o assert.o macro.o eval.o
--CFLAGS = $(FLAGS) -DSTAND_ALONE
-+CFLAGS += $(FLAGS) -DSTAND_ALONE
+-CFLAGS = $(FLAGS) $(STAND_ALONE)
++CFLAGS += $(FLAGS) $(STAND_ALONE)
all: ucpp
-
+ @ar cq libucpp.a *.o
diff -ruNa ucpp.orig/pkg-descr ucpp/pkg-descr
--- ucpp.orig/pkg-descr 2002-08-19 15:44:39.000000000 +0400
+++ ucpp/pkg-descr 2011-03-17 07:04:49.000000000 +0300
@@ -6,4 +6,4 @@
- Possibility to use the code as a lexer (that outputs tokens
directly)
-WWW: http://pornin.nerim.net/ucpp/
+WWW: http://code.google.com/p/ucpp/
More information about the freebsd-ports
mailing list