app-text/pointtools: Add Makefile patch. - parlay - yet another gentoo overlay
HTML git clone https://git.parazyd.org/parlay
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 9df2336cfaae171d0c13cc1af9d509b158452240
DIR parent 98c92b1730d28414c6a4619a880dd1e88e85397e
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 15 Feb 2020 12:15:12 +0100
app-text/pointtools: Add Makefile patch.
Diffstat:
A app-text/pointtools/files/makefile… | 23 +++++++++++++++++++++++
M app-text/pointtools/pointtools-999… | 6 ++++--
2 files changed, 27 insertions(+), 2 deletions(-)
---
DIR diff --git a/app-text/pointtools/files/makefile-fix.patch b/app-text/pointtools/files/makefile-fix.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index c901b0f..869d94f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,11 +1,11 @@
+-PREFIX= /usr/local
++PREFIX ?= /usr/local
+
+ install:
+- install -m755 bin/dir2point $(PREFIX)/bin/dir2point
+- install -m755 bin/md2point $(PREFIX)/bin/md2point
+- install -m755 bin/point2pdf $(PREFIX)/bin/point2pdf
++ install -m755 bin/dir2point $(DESTDIR)$(PREFIX)/bin/dir2point
++ install -m755 bin/md2point $(DESTDIR)$(PREFIX)/bin/md2point
++ install -m755 bin/point2pdf $(DESTDIR)$(PREFIX)/bin/point2pdf
+
+ uninstall:
+- rm -f $(PREFIX)/bin/dir2point
+- rm -f $(PREFIX)/bin/md2point
+- rm -f $(PREFIX)/bin/point2pdf
++ rm -f $(DESTDIR)$(PREFIX)/bin/dir2point
++ rm -f $(DESTDIR)$(PREFIX)/bin/md2point
++ rm -f $(DESTDIR)$(PREFIX)/bin/point2pdf
DIR diff --git a/app-text/pointtools/pointtools-9999.ebuild b/app-text/pointtools/pointtools-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -17,8 +17,10 @@ IUSE=""
DEPEND="app-text/utf8expr"
RDEPEND=""
+PATCHES=( "${FILESDIR}/makefile-fix.patch" )
+
src_install() {
- dobin bin/md2point bin/point2pdf bin/dir2point
+ emake install
dodoc README.md
dodoc -r examples
}