From 0644f1e6579dcf51ae145dd5a0d68957093c9fa4 Mon Sep 17 00:00:00 2001
From: edwin <edwin@FreeBSD.org>
Date: Mon, 8 Sep 2003 06:06:04 +0000
Subject: Update port: devel/libedit to 2.6.7

	- Update to version 2.6.7

PR:		ports/56525
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
---
 devel/libedit/Makefile       | 13 +++++++++----
 devel/libedit/distinfo       |  2 +-
 devel/libedit/files/patch-aa | 20 --------------------
 3 files changed, 10 insertions(+), 25 deletions(-)
 delete mode 100644 devel/libedit/files/patch-aa

diff --git a/devel/libedit/Makefile b/devel/libedit/Makefile
index 6c7d1e1176fe..af69072f6fdd 100644
--- a/devel/libedit/Makefile
+++ b/devel/libedit/Makefile
@@ -6,15 +6,16 @@
 #
 
 PORTNAME=	libedit
-PORTVERSION=	2.6.4
-PORTREVISION=	1
+PORTVERSION=	2.6.7
 CATEGORIES=	devel
-MASTER_SITES=	http://www.canonware.com/download/libedit/
+MASTER_SITES=	ftp://ftp.astron.com/pub/libedit/ \
+		http://www.canonware.com/download/libedit/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Command line editing library
 
-USE_AUTOCONF=	yes
+USE_REINPLACE=	yes
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-readline
 INSTALLS_SHLIB=	yes
 
@@ -39,4 +40,8 @@ MLINKS=		editline.3 el_init.3 \
 		editline.3 history.3
 MANCOMPRESSED=	no
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|CFLAGS -O|CFLAGS|g ; \
+		 s|MAJOR="2"|MAJOR="5"|g' ${WRKSRC}/configure
+
 .include <bsd.port.mk>
diff --git a/devel/libedit/distinfo b/devel/libedit/distinfo
index 1767fa48e7cf..9b187bf2bd7f 100644
--- a/devel/libedit/distinfo
+++ b/devel/libedit/distinfo
@@ -1 +1 @@
-MD5 (libedit-2.6.4.tar.gz) = 596cd1fad4489abbd29289665bc25610
+MD5 (libedit-2.6.7.tar.gz) = 6640a3d3d58f0ce1d8c69cfd5cc5a517
diff --git a/devel/libedit/files/patch-aa b/devel/libedit/files/patch-aa
deleted file mode 100644
index ae3c81c11ccd..000000000000
--- a/devel/libedit/files/patch-aa
+++ /dev/null
@@ -1,20 +0,0 @@
---- configure.in.orig	Mon Feb 11 08:36:44 2002
-+++ configure.in	Tue Jan 14 07:31:02 2003
-@@ -118,7 +118,7 @@
-   CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG"
-   CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE"
- else
--  CFLAGS="$CFLAGS -O"
-+  CFLAGS="$CFLAGS"
- fi
- 
- 
-@@ -169,7 +169,7 @@
- 
- dnl Library settings.
- LIB_DIRS="lib"
--LIB_MAJOR="2"
-+LIB_MAJOR="5"
- LIB_MINOR="6"
- LIB_A="libedit.a"
- LIB_A_LINKS=
-- 
cgit