Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2010 11:20:58 GMT
From:      Andrius Morkunas <hinokind@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/144686: [patch] editors/scite open help docs properly
Message-ID:  <201003121120.o2CBKwBg039174@www.freebsd.org>
Resent-Message-ID: <201003121130.o2CBU3Mv061812@freefall.freebsd.org>

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

>Number:         144686
>Category:       ports
>Synopsis:       [patch] editors/scite open help docs properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 12 11:30:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Andrius Morkunas
>Release:        
>Organization:
>Environment:
>Description:
Now we have an annoying message telling user to fix the problem himself when there's an easy way to fix it during install.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN editors/scite.orig/Makefile editors/scite/Makefile
--- editors/scite.orig/Makefile	2010-02-14 19:49:58.000000000 +0000
+++ editors/scite/Makefile	2010-03-12 10:28:38.628118226 +0000
@@ -23,8 +23,6 @@
 USE_GNOME=	gtk20
 MAKEFILE=	makefile
 
-SUB_FILES=	pkg-message
-
 MAN1=		scite.1
 
 post-patch:
@@ -33,6 +31,8 @@
 .if defined(WITH_FULL_BUFFER_MENU)
 	@${REINPLACE_CMD} -e 's|30, "/Buffers|props.GetInt("buffers") > 30 ? props.GetInt("buffers") - 10 : 30, "/Buffers|g' ${WRKSRC}/SciTEGTK.cxx
 .endif
+	@${REINPLACE_CMD} -e 's|netscape "file://$$(SciteDefaultHome)|xdg-open "file://${DOCSDIR}|' \
+		${WRKSRC}/../src/SciTEGlobal.properties
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${PREFIX}/bin
@@ -50,9 +50,4 @@
 	${INSTALL_DATA} ${WRKSRC}/../doc/*.png ${DOCSDIR}
 .endif
 
-.if !defined(NOPORTDOCS)
-post-install:
-	@${CAT} ${PKGMESSAGE}
-.endif
-
 .include <bsd.port.mk>
diff -ruN editors/scite.orig/files/pkg-message.in editors/scite/files/pkg-message.in
--- editors/scite.orig/files/pkg-message.in	2008-03-30 17:52:37.000000000 +0000
+++ editors/scite/files/pkg-message.in	1970-01-01 00:00:00.000000000 +0000
@@ -1,9 +0,0 @@
-
-===============================================================================
-Note: As of version 1.76 of this port, SciTE's documentation has been moved
-      from %%DATADIR%% to %%DOCSDIR%%.
-      This will cause the "SciTE Help" option in the help menu to point to the
-      wrong location.  You will need to manually edit your
-      SciTEGlobal.properties file if you still wish to utilize that option.
-===============================================================================
-


>Release-Note:
>Audit-Trail:
>Unformatted:



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