summaryrefslogtreecommitdiff
path: root/editors/lpe/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-29 19:54:17 +0000
committerjoerg <joerg>2010-01-29 19:54:17 +0000
commitef66522a21b8420b27a9fb9887d856706c188b2d (patch)
tree8cec06901d3233b66f39a31fbeba75d6e8a2c62c /editors/lpe/patches
parent6cf3c423b4f2a15bb259766e1383c45796c574a1 (diff)
downloadpkgsrc-ef66522a21b8420b27a9fb9887d856706c188b2d.tar.gz
DESTDIR support
Diffstat (limited to 'editors/lpe/patches')
-rw-r--r--editors/lpe/patches/patch-aa20
-rw-r--r--editors/lpe/patches/patch-am25
2 files changed, 41 insertions, 4 deletions
diff --git a/editors/lpe/patches/patch-aa b/editors/lpe/patches/patch-aa
index 84718b12a44..6fb8622de0c 100644
--- a/editors/lpe/patches/patch-aa
+++ b/editors/lpe/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/05/15 21:02:16 salo Exp $
+$NetBSD: patch-aa,v 1.2 2010/01/29 19:54:17 joerg Exp $
---- man/Makefile.in.orig 2003-05-15 13:48:14.000000000 +0200
-+++ man/Makefile.in 2003-05-15 14:01:51.000000000 +0200
-@@ -102,7 +102,7 @@
+--- man/Makefile.in.orig 2001-06-20 10:22:30.000000000 +0000
++++ man/Makefile.in
+@@ -102,7 +102,7 @@ MAINTAINERCLEANFILES = lpe.1 Makefile.in
man_MANS = lpe.1
@@ -11,3 +11,15 @@ $NetBSD: patch-aa,v 1.1.1.1 2003/05/15 21:02:16 salo Exp $
EXTRA_DIST = $(EXTRA_MANPAGES) lpe.1.en
+@@ -261,9 +261,9 @@ clean-local:
+
+ install-data-hook:
+ for m in $(EXTRA_MANPAGES); do \
+- $(mkinstalldirs) $(mandir)/`echo $$m | sed -e "s,^.*\.1\.\(.*\)$$,\1/man1,"`; \
++ $(mkinstalldirs) ${DESTDIR}$(mandir)/`echo $$m | sed -e "s,^.*\.1\.\(.*\)$$,\1/man1,"`; \
+ $(INSTALL_DATA) $(top_srcdir)/man/$$m \
+- $(mandir)/`echo $$m | sed -e "s,^\(.*\)\.1\.\(.*\)$$,\2/man1/\1.1,"`; \
++ ${DESTDIR}$(mandir)/`echo $$m | sed -e "s,^\(.*\)\.1\.\(.*\)$$,\2/man1/\1.1,"`; \
+ done
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/editors/lpe/patches/patch-am b/editors/lpe/patches/patch-am
new file mode 100644
index 00000000000..610f20e726c
--- /dev/null
+++ b/editors/lpe/patches/patch-am
@@ -0,0 +1,25 @@
+$NetBSD: patch-am,v 1.1 2010/01/29 19:54:17 joerg Exp $
+
+--- po/Makefile.in.in.orig 2010-01-29 19:48:37.000000000 +0000
++++ po/Makefile.in.in
+@@ -111,16 +111,16 @@ install-data: install-data-@USE_NLS@
+ install-data-no: all
+ install-data-yes: all
+ if test -r "$(MKINSTALLDIRS)"; then \
+- $(MKINSTALLDIRS) $(datadir); \
++ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
+ else \
+- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
++ $(SHELL) $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
+ fi
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ case "$$cat" in \
+- *.gmo) destdir=$(gnulocaledir);; \
+- *) destdir=$(localedir);; \
++ *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \
++ *) destdir=${DESTDIR}$(localedir);; \
+ esac; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ dir=$$destdir/$$lang/LC_MESSAGES; \