pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix the path to the manual page



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Tue Oct 3 00:06:14 2017 +0200
Changeset:	1fbd39d04afe2b9c5538d032f28a887cdf42a8e9

Modified Files:
	fonttools/Makefile
	fonttools/PLIST
	fonttools/distinfo
Added Files:
	fonttools/patches/patch-setup.py

Log Message:
Fix the path to the manual page

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1fbd39d04afe2b9c5538d032f28a887cdf42a8e9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 fonttools/Makefile               |  6 ++++++
 fonttools/PLIST                  |  2 +-
 fonttools/distinfo               |  1 +
 fonttools/patches/patch-setup.py | 15 +++++++++++++++
 4 files changed, 23 insertions(+), 1 deletion(-)

diffs:
diff --git a/fonttools/Makefile b/fonttools/Makefile
index db774bdc3e..0458f26edc 100644
--- a/fonttools/Makefile
+++ b/fonttools/Makefile
@@ -9,5 +9,11 @@ HOMEPAGE=	https://groups.google.com/forum/#!forum/fonttools
 COMMENT=	Library to manipulate font files from Python
 LICENSE=	modified-bsd
 
+SUBST_CLASSES+=		pkgmandir
+SUBST_MESSAGE.pkgmandir=Fixing path to manual pages.
+SUBST_STAGE.pkgmandir=	post-patch
+SUBST_SED.pkgmandir=	-e 's,@PKGMANDIR@,${PKGMANDIR},g'
+SUBST_FILES.pkgmandir=	setup.py
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/fonttools/PLIST b/fonttools/PLIST
index 247ac40399..cc221bd201 100644
--- a/fonttools/PLIST
+++ b/fonttools/PLIST
@@ -520,4 +520,4 @@ ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-share/man/man1/ttx.1
+man/man1/ttx.1
diff --git a/fonttools/distinfo b/fonttools/distinfo
index 3d6da678e9..8deb58d73a 100644
--- a/fonttools/distinfo
+++ b/fonttools/distinfo
@@ -4,3 +4,4 @@ SHA1 (fonttools-3.15.1.tar.gz) = 58b7d28cfb7e2b5c71e7f7b3d96a99819daed2e2
 RMD160 (fonttools-3.15.1.tar.gz) = 44fb8e511f4f475b33bf664b77d7f822863ba504
 SHA512 (fonttools-3.15.1.tar.gz) = a5d258c52d56a37f368cf405a0705744e5c0828954ea389359115c3cd0ccc856dd7d699182410a5173e9b9f60c38495abbe1fb01b8a9b6c9263ef7aa93f9ce4b
 Size (fonttools-3.15.1.tar.gz) = 888194 bytes
+SHA1 (patch-setup.py) = e69cab686b9c16280da988be14853ef3c338566d
diff --git a/fonttools/patches/patch-setup.py b/fonttools/patches/patch-setup.py
new file mode 100644
index 0000000000..cf5932579a
--- /dev/null
+++ b/fonttools/patches/patch-setup.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix path to the manual pages
+
+--- setup.py.orig	2017-08-18 16:49:28.000000000 +0000
++++ setup.py
+@@ -264,7 +264,7 @@ class PassCommand(Command):
+ 		pass
+ 
+ 
+-def find_data_files(manpath="share/man"):
++def find_data_files(manpath="@PKGMANDIR@"):
+ 	""" Find FontTools's data_files (just man pages at this point).
+ 
+ 	By default, we install man pages to "share/man" directory relative to the


Home | Main Index | Thread Index | Old Index