Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2001 13:43:33 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/30533: Update port: editors/ted
Message-ID:  <200109122043.f8CKhXs91116@freefall.freebsd.org>

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

>Number:         30533
>Category:       ports
>Synopsis:       Update port: editors/ted
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 12 13:50:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.3-RELEASE i386
>Organization:
>Environment:
>Description:
- Add USE_X_PREFIX
- Support CC/CFLAGS properly
- Add WWW: line

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/editors/ted/Makefile editors/ted/Makefile
--- /usr/ports/editors/ted/Makefile	Tue Sep 11 21:34:44 2001
+++ editors/ted/Makefile	Thu Sep 13 05:40:16 2001
@@ -7,9 +7,10 @@
 
 PORTNAME=	ted
 PORTVERSION=	2.10
+PORTREVISION=	1
 CATEGORIES=	editors textproc print
 MASTER_SITES=	ftp://ftp.nluug.nl/pub/editors/ted/
-DISTNAME=	ted-${PORTVERSION}.src
+EXTRACT_SUFX=	.src.tar.gz
 
 MAINTAINER=	ports@FreeBSD.org
 
@@ -18,7 +19,13 @@
 		tiff.4:${PORTSDIR}/graphics/tiff
 
 WRKSRC=		${WRKDIR}/Ted-${PORTVERSION}
+
+USE_X_PREFIX=	yes
 USE_MOTIF=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_WRKSRC=	${WRKSRC}/Ted
+CONFIGURE_ENV=	CC="${CC}" CFLAGS="${CFLAGS}"
+CONFIGURE_ARGS=	--with-MOTIF
 ALL_TARGET=	compile.shared
 
 AFMDIR=		${PREFIX}/share/Ted/afm
@@ -34,22 +41,20 @@
 		-e 's,/usr/local/ind,${INDDIR},' \
 		-e 's,/usr/local/info,${INFODIR},' \
 		Ted.ad.sample >Ted
-	for d in ${WRKSRC}/Ted ${WRKSRC}/appFrame; do \
-    	cd $$d && \
-		${MV} -f config.h.in config.h.in.bak && \
-		${ECHO} '#define PREFIX "${PREFIX}"' >config.h.in && \
-		${ECHO} '#define INFODIR "${INFODIR}"' >>config.h.in && \
-		${ECHO} '#define INDDIR "${INDDIR}"' >>config.h.in && \
-		${ECHO} '#define AFMDIR "${AFMDIR}"' >>config.h.in && \
-		${CAT} config.h.in.bak >>config.h.in; \
-	done
+	${PERL} -pi -e 's|/usr/apps|${LOCALBASE}|g' ${WRKSRC}/bitmap/configure
+
+post-configure:
+.for dir in appFrame appUtil bitmap ind libreg
+	cd ${WRKSRC}/${dir} && \
+		${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
+.endfor
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin/Ted
-	${MKDIR} ${AFMDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin
+	@${MKDIR} ${AFMDIR}
 	${INSTALL_DATA} ${WRKSRC}/tedPackage/afm/* ${AFMDIR}
-	${MKDIR} ${INDDIR}
-	${MKDIR} ${INFODIR}
+	@${MKDIR} ${INDDIR}
+	@${MKDIR} ${INFODIR}
 	${INSTALL_DATA} ${WRKSRC}/tedPackage/info/TedDocument.rtf ${INFODIR}
 	${INSTALL_DATA} ${WRKSRC}/tedPackage/info/Ted ${PREFIX}/lib/X11/app-defaults
 
diff -urN /usr/ports/editors/ted/pkg-descr editors/ted/pkg-descr
--- /usr/ports/editors/ted/pkg-descr	Fri Aug 24 17:32:19 2001
+++ editors/ted/pkg-descr	Sat Sep  1 13:04:16 2001
@@ -21,3 +21,5 @@
   * Symbols and accented characters are fully supported.
   * Hyperlinks. 
   * Saving a document in HTML format.
+
+WWW: http://www.nllgg.nl/Ted/

>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?200109122043.f8CKhXs91116>