From jdrews@cybox.com  Sat Nov 26 19:43:59 2005
Return-Path: <jdrews@cybox.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DF79816A425
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2005 19:43:59 +0000 (GMT)
	(envelope-from jdrews@cybox.com)
Received: from cybox.com (www.cybox.com [206.168.112.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AF9B743D7F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2005 19:43:52 +0000 (GMT)
	(envelope-from jdrews@cybox.com)
Received: from notebook.silbsd.org (vc7-1-273.dsl.netrack.net [199.45.160.132] (may be forged))
	by cybox.com (8.12.11/8.12.10) with ESMTP id jAQJhjUM019903
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Nov 2005 12:43:48 -0700
Message-Id: <Pine.BSO.4.61.0511261243470.31964@notebook.silbsd.org>
Date: Sat, 26 Nov 2005 12:45:17 -0700 (MST)
From: Jonathan <jdrews@cybox.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix LOCALBASE/X11BASE settings

>Number:         89602
>Category:       ports
>Synopsis:       editors/ted - Fix LOCALBASE/X11BASE settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 26 19:50:01 GMT 2005
>Closed-Date:    Tue Nov 29 23:35:28 GMT 2005
>Last-Modified:  Tue Nov 29 23:35:28 GMT 2005
>Originator:     Jonathan
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD notebook2.silbsd.org 6.0-RC1 FreeBSD 6.0-RC1 #0: Wed Oct 
26 16:21:00 MDT 2005 
root@notebook2.silbsd.org:/usr/obj/usr/src/sys/NOTEBOOKB i386


>Description:

  Fix port so that it respects LOCALBASE/X11BASE settings.

>How-To-Repeat:

  If a location other than /usr/X11R6/ were used, then the port would not 
compile.

>Fix:

  Apply the following patches:

  --- /dev/null   Sat Nov 26 12:22:00 2005
+++ files/configure     Mon Nov 21 20:09:25 2005
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+dirs="Ted appFrame appUtil bitmap ind libreg tedPackage"
+
+for d in $dirs; do
+  (cd $d && ./configure $*)
+  if [ $? != 0 ]; then
+    exit $?
+  fi
+done


--- Makefile    Mon Apr 11 21:25:23 2005
+++ /usr/ports/editors/ted/Makefile     Mon Nov 21 20:33:07 2005
@@ -19,16 +19,19 @@
  RUN_DEPENDS= 
${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts

  WRKSRC=                ${WRKDIR}/Ted-${PORTVERSION}
-CONFIGURE_WRKSRC=      ${WRKSRC}/Ted
+# CONFIGURE_WRKSRC=    ${WRKSRC}/Ted

  USE_X_PREFIX=  yes
  USE_MOTIF=     yes
+USE_GHOSTSCRIPT_RUN=   yes
  USE_REINPLACE= yes
  GNU_CONFIGURE= yes
-CONFIGURE_ARGS=        --prefix=${PREFIX}
+# CONFIGURE_ARGS+=     --prefix=${PREFIX}
  CONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
-MAKE_ENV=      DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
+# CONFIGURE_ENV=       CC="${CC}" CFLAGS="${CFLAGS}"
+
+# use += for MAKE_ENV ?
+MAKE_ENV+=     DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
                 DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \
                 DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\""
  ALL_TARGET=    compile.shared
@@ -39,6 +42,8 @@
  post-extract:
         cd ${WRKSRC}/tedPackage && ${TAR} xf TedBindist.tar
  post-patch:
+       ${CP} -p ${FILESDIR}/configure ${WRKSRC}/configure
+       ${CHMOD} +x ${WRKSRC}/configure
         ${REINPLACE_CMD} \
                 's|DEF_PKGDIR|DEF_DOCUMENT_DIR|g' 
${WRKSRC}/Ted/makefile.in

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Nov 26 20:42:47 GMT 2005 
State-Changed-Why:  
Which port are we talking about here? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89602 

From: Jonathan <jdrews@cybox.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/89602: Fix LOCALBASE/X11BASE settings
Date: Sat, 26 Nov 2005 15:30:42 -0700 (MST)

 Sorry for forgetting to mention the port name; this is for editors/ted

From: Jonathan <jdrews@cybox.com>
To: Edwin Groothuis <edwin@FreeBSD.org>
Cc: freebsd-ports-bugs@FreeBSD.org
Subject: Re: ports/89602: Fix LOCALBASE/X11BASE settings
Date: Sat, 26 Nov 2005 15:26:19 -0700 (MST)

 On Sat, 26 Nov 2005, Edwin Groothuis wrote:
 
 > Synopsis: Fix LOCALBASE/X11BASE settings
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: edwin
 > State-Changed-When: Sat Nov 26 20:42:47 GMT 2005
 > State-Changed-Why:
 > Which port are we talking about here?
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=89602
 >
 >
 Acck -  This is for wditors/ted
 
 sorry about that omission
 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: jon.drews@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/89602: editors/ted - Fix LOCALBASE/X11BASE settings
Date: Sun, 27 Nov 2005 00:38:28 UT

 Maintainer of editors/ted,
 
 Please note that PR ports/89602 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/89602
 
 -- 
 Edwin Groothuis
 edwin@FreeBSD.org

From: Jon Drews <jon.drews@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/89602: editors/ted - Fix LOCALBASE/X11BASE settings
Date: Sun, 27 Nov 2005 10:42:48 -0700

 On Sun, 27 Nov 2005 00:38:28 UT, Edwin Groothuis <edwin@freebsd.org> wrote:
 > Maintainer of editors/ted,
 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 
 Yes - this is a bug fix and I approve of it
 
 Kind regards,
 Jonathan
State-Changed-From-To: feedback->open 
State-Changed-By: edwin 
State-Changed-When: Tue Nov 29 22:11:17 GMT 2005 
State-Changed-Why:  
Feedback received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89602 
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Tue Nov 29 23:34:43 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89602 
>Unformatted:
