Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2001 19:50:12 -0400 (EDT)
From:      Pete Fritchman <petef@databits.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28700: Update editors/manedit to 0.4.1
Message-ID:  <200107042350.f64NoCk24927@electron.databits.net>

next in thread | raw e-mail | index | archive | help

>Number:         28700
>Category:       ports
>Synopsis:       Update editors/manedit to 0.4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 04 17:00:11 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Pete Fritchman
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Databits Network Services, Inc.
>Environment:
System: FreeBSD electron.databits.net 4.3-STABLE FreeBSD 4.3-STABLE #7: Mon Jun 11 10:15:45 EDT 2001 root@electron.databits.net:/usr/obj/usr/src/sys/ELECTRON i386

>Description:

- update to version 0.4.1
- update master_sites
- magic to make their new horrible makefile/config system work
- remove files/patch-{Makefile,Makefile.install.UNIX}
- adjust existing patch (new location in port; maybe it should be renamed)
- add new patch to make more secure /tmp usage (diff'd from /dev/null)

>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/editors/manedit/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	2001/05/04 13:36:18	1.3
+++ Makefile	2001/07/04 23:42:42
@@ -6,23 +6,36 @@
 #
 
 PORTNAME=	manedit
-PORTVERSION=	0.4.j
+PORTVERSION=	0.4.1
 CATEGORIES=	editors
-MASTER_SITES=	ftp://fox.mit.edu/pub/xsw/
-DISTNAME=	${PORTNAME}${PORTVERSION:S/.j/j/}
+MASTER_SITES=	ftp://fox.mit.edu/pub/xsw/ \
+		ftp://wolfpack.twu.net/users/wolfpack/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	sobomax@FreeBSD.org
 
-WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
-
-USE_X_PREFIX=	yes
 USE_GTK=	yes
+USE_GMAKE=	yes
+USE_X_PREFIX=	yes
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS+=	UNIX -v --prefix=${PREFIX} --no-colors
+CONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${X11BASE}/include/gtk12 \
+		-I${LOCALBASE}/include/glib12"
 
 MAN1=		manedit.1
 
-pre-patch:
+post-patch:
 	@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
 		xargs ${PERL} -pi -e 's|malloc\.h|stdlib.h|g'
+	@${PERL} -pi -e 's!make -C!gmake -C!' ${WRKSRC}/Makefile
+	@${PERL} -pi -e 's!Makefile.install.UNIX!Makefile.install.FreeBSD!' \
+		${WRKSRC}/manedit/makefile_append.ini
+	@${PERL} -pi -e 's!/usr/X11R6!${X11BASE}!g; s!libgtk.so!libgtk12.so!g; \
+		s!gtk/gtkmain.h!gtk12/gtk/gtkmain.h!; \
+		s!gtk-config!gtk12-config!g; s!= /usr/bin/!= ${X11BASE}/bin!g' \
+		${WRKSRC}/manedit/platforms.ini
+	@${PERL} -pi -e 's!/usr/bin/manedit!${PREFIX}/bin/manedit!' \
+		${WRKSRC}/manedit/utils/manview.sh
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/editors/manedit/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	2001/05/04 13:36:18	1.3
+++ distinfo	2001/07/04 23:42:50
@@ -1 +1 @@
-MD5 (manedit0.4j.tgz) = dbd53ee37fcbaa7584d5e8d5abb55973
+MD5 (manedit-0.4.1.tgz) = 8f8a433873c4a3211c0c17a7d7d729c7
Index: files/patch-manedit.1
===================================================================
RCS file: /home/ncvs/ports/editors/manedit/files/patch-manedit.1,v
retrieving revision 1.2
diff -u -r1.2 patch-manedit.1
--- files/patch-manedit.1	2001/03/20 17:04:45	1.2
+++ files/patch-manedit.1	2001/07/04 23:42:50
@@ -1,8 +1,8 @@
 
 $FreeBSD: ports/editors/manedit/files/patch-manedit.1,v 1.2 2001/03/20 17:04:45 sobomax Exp $
 
---- manedit.1.orig	Sun Feb 25 01:10:48 2001
-+++ manedit.1	Tue Mar 20 18:49:02 2001
+--- manedit/manedit.1.orig	Sun Feb 25 01:10:48 2001
++++ manedit/manedit.1	Tue Mar 20 18:49:02 2001
 @@ -67,12 +67,8 @@
  Manual page template files, used in the creation
  of new manual pages.
--- /dev/null	Wed Jul  4 19:34:29 2001
+++ files/patch-manedit::maneditop.c	Wed Jul  4 19:30:13 2001
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- manedit/maneditop.c.orig	Wed Jul  4 19:15:51 2001
++++ manedit/maneditop.c	Wed Jul  4 19:18:33 2001
+@@ -242,9 +242,7 @@
+ 		/* Not exist, so need to create a new one. */
+ 		rmkdir(
+ 		    tmp_dir_rtn,
+-		    S_IRUSR | S_IWUSR | S_IXUSR |
+-                    S_IRGRP | S_IXGRP |
+-		    S_IROTH | S_IXOTH
++		    S_IRUSR | S_IWUSR | S_IXUSR
+ 		);
+ 	    }
+ 	}
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107042350.f64NoCk24927>