pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/nano nano: Fix hardcoded paths in manpages
details: https://anonhg.NetBSD.org/pkgsrc/rev/11746833c0e6
branches: trunk
changeset: 446238:11746833c0e6
user: triaxx <triaxx%pkgsrc.org@localhost>
date: Fri Feb 05 17:25:52 2021 +0000
description:
nano: Fix hardcoded paths in manpages
pkgsrc changes:
---------------
* Add patches to substitute hardcoded /etc and /usr paths in manpages.
* Bump revision.
diffstat:
editors/nano/Makefile | 9 ++++++++-
editors/nano/distinfo | 4 +++-
editors/nano/patches/patch-doc_nano.1 | 21 +++++++++++++++++++++
editors/nano/patches/patch-doc_nanorc.5 | 31 +++++++++++++++++++++++++++++++
4 files changed, 63 insertions(+), 2 deletions(-)
diffs (99 lines):
diff -r be452f24e44f -r 11746833c0e6 editors/nano/Makefile
--- a/editors/nano/Makefile Fri Feb 05 17:07:35 2021 +0000
+++ b/editors/nano/Makefile Fri Feb 05 17:25:52 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.92 2021/01/24 17:13:42 nia Exp $
+# $NetBSD: Makefile,v 1.93 2021/02/05 17:25:52 triaxx Exp $
DISTNAME= nano-5.5
+PKGREVISION= 1
CATEGORIES= editors
MASTER_SITES= https://www.nano-editor.org/dist/v${PKGVERSION_NOREV:C/\..*$//}/
EXTRACT_SUFX= .tar.xz
@@ -33,6 +34,12 @@
INSTALLATION_DIRS+= share/examples/nano
CONF_FILES+= share/examples/nano/nanorc ${PKG_SYSCONFDIR}/nanorc
+SUBST_CLASSES+= man
+SUBST_STAGE.man= pre-configure
+SUBST_MESSAGE.man= Fixing paths in manpages.
+SUBST_FILES.man= doc/nano.1 doc/nanorc.5
+SUBST_VARS.man= PKG_SYSCONFDIR PREFIX
+
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/sample.nanorc ${DESTDIR}${PREFIX}/share/examples/nano/nanorc
diff -r be452f24e44f -r 11746833c0e6 editors/nano/distinfo
--- a/editors/nano/distinfo Fri Feb 05 17:07:35 2021 +0000
+++ b/editors/nano/distinfo Fri Feb 05 17:25:52 2021 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.63 2021/01/24 17:13:42 nia Exp $
+$NetBSD: distinfo,v 1.64 2021/02/05 17:25:52 triaxx Exp $
SHA1 (nano-5.5.tar.xz) = b727bcd583498312f52307ed39b83d7515401c58
RMD160 (nano-5.5.tar.xz) = 0aaec99f60c214081608e3278ecd662e48f95825
SHA512 (nano-5.5.tar.xz) = cbd2b6e1dc7437caf4ec6b55252664430fb1d6243dcf51a7b29ca3683bd1e6a25809c7b9d514d42cc85eb1a615bf3365951c07bf7c3c183a8cbe71c8586d9481
Size (nano-5.5.tar.xz) = 1427592 bytes
SHA1 (patch-configure) = 5f34f74d20c9b18f21afa308ed5634daed98a25d
+SHA1 (patch-doc_nano.1) = 28dcfb77046774d09128986783bbc434a708e212
+SHA1 (patch-doc_nanorc.5) = a1c2151152d08348263a6f36be43fa04fb4eee15
diff -r be452f24e44f -r 11746833c0e6 editors/nano/patches/patch-doc_nano.1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/nano/patches/patch-doc_nano.1 Fri Feb 05 17:25:52 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-doc_nano.1,v 1.1 2021/02/05 17:25:52 triaxx Exp $
+
+* Fix hard-coded pathes.
+
+--- doc/nano.1.orig 2021-01-14 10:11:45.000000000 +0000
++++ doc/nano.1
+@@ -383,7 +383,7 @@ or \fI~/.config/nano/nanorc\fR, whicheve
+ .BR nanorc (5)
+ for more information on the possible contents of those files.
+ .sp
+-See \fI/usr/share/nano/\fR and \fI/usr/share/nano/extra/\fR
++See \fI@PREFIX@/share/nano/\fR and \fI@PREFIX@/share/nano/extra/\fR
+ for available syntax-coloring definitions.
+
+ .SH NOTES
+@@ -420,4 +420,4 @@ the environment variable \fBNANO_NOCATCH
+ .SH SEE ALSO
+ .BR nanorc (5)
+ .sp
+-\fI/usr/share/doc/nano/\fP (or equivalent on your system)
++\fI@PREFIX@/share/doc/nano/\fP (or equivalent on your system)
diff -r be452f24e44f -r 11746833c0e6 editors/nano/patches/patch-doc_nanorc.5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/nano/patches/patch-doc_nanorc.5 Fri Feb 05 17:25:52 2021 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-doc_nanorc.5,v 1.1 2021/02/05 17:25:52 triaxx Exp $
+
+* Fix hard-coded pathes.
+
+--- doc/nanorc.5.orig 2021-01-14 10:11:45.000000000 +0000
++++ doc/nanorc.5
+@@ -25,7 +25,7 @@ nanorc \- GNU nano's configuration file
+ The \fInanorc\fP files contain the default settings for \fBnano\fP,
+ a small and friendly editor. During startup, if \fB\-\-rcfile\fR
+ is not given, \fBnano\fR will read two files: first the
+-system-wide settings, from \fI/etc/nanorc\fP (the exact path might be
++system-wide settings, from \fI@PKG_SYSCONFDIR@/nanorc\fP (the exact path might be
+ different on your system), and then the user-specific settings, either
+ from \fI~/.nanorc\fR or from \fI$XDG_CONFIG_HOME/nano/nanorc\fR
+ or from \fI~/.config/nano/nanorc\fR, whichever is encountered first.
+@@ -995,13 +995,13 @@ for \fBunbind\fR it means all menus wher
+
+ .SH FILES
+ .TP
+-.I /etc/nanorc
++.I @PKG_SYSCONFDIR@/nanorc
+ System-wide configuration file.
+ .TP
+ .IR ~/.nanorc " or " $XDG_CONFIG_HOME/nano/nanorc " or " ~/.config/nano/nanorc
+ Per-user configuration file.
+ .TP
+-.I /usr/share/nano/*
++.I @PREFIX@/share/nano/*
+ Syntax definitions for the syntax coloring of common file types
+ (and for less common file types in the \fIextra/\fR subdirectory).
+
Home |
Main Index |
Thread Index |
Old Index