1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/www/py-ddgr/files/patch-Makefile
Mathieu Arnold bf406b4d24 Enhance USES=uniquefiles to be more generic.
This allows to have more complex renaming schemes.  Until now, it could
only add a prefix or a suffix, but this was not working at all for man
pages, because it would give man/man1/pyfoo.1.gz-2.7 or
man/man1/pyfoo-1-2.7.gz.  With this change, a man page will be correctly
renamed to man/man1/pyfoo-2.7.1.gz.

Unfix ports that were already handling man pages.

PR:		220214
Submitted by:	Fukang Chen (previous patch)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13444
2017-12-19 16:23:48 +00:00

22 lines
588 B
Plaintext

--- Makefile.orig 2017-11-29 12:33:58 UTC
+++ Makefile
@@ -1,6 +1,6 @@
PREFIX ?= /usr/local
BINDIR = $(DESTDIR)$(PREFIX)/bin
-MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
+MANDIR = $(DESTDIR)$(PREFIX)/man/man1
DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/ddgr
.PHONY: all install uninstall
@@ -11,9 +11,8 @@ install:
install -m755 -d $(BINDIR)
install -m755 -d $(MANDIR)
install -m755 -d $(DOCDIR)
- gzip -c ddgr.1 > ddgr.1.gz
install -m755 ddgr $(BINDIR)
- install -m644 ddgr.1.gz $(MANDIR)
+ install -m644 ddgr.1 $(MANDIR)
install -m644 README.md $(DOCDIR)
rm -f ddgr.1.gz