diff options
author | joerg <joerg> | 2010-07-07 00:29:32 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-07-07 00:29:32 +0000 |
commit | ea200054de9a8c0781829c78ddf8a5a39fc0a8bc (patch) | |
tree | 6af573e777c018500819a1468b28a27d558051a8 /textproc/xml2doc/patches | |
parent | decf616d08e757406c468b88c28d81231bb5b95b (diff) | |
download | pkgsrc-ea200054de9a8c0781829c78ddf8a5a39fc0a8bc.tar.gz |
DESTDIR support
Diffstat (limited to 'textproc/xml2doc/patches')
-rw-r--r-- | textproc/xml2doc/patches/patch-aa | 31 | ||||
-rw-r--r-- | textproc/xml2doc/patches/patch-ab | 15 | ||||
-rw-r--r-- | textproc/xml2doc/patches/patch-ac | 15 |
3 files changed, 47 insertions, 14 deletions
diff --git a/textproc/xml2doc/patches/patch-aa b/textproc/xml2doc/patches/patch-aa index decd3503b31..ff68aae3c93 100644 --- a/textproc/xml2doc/patches/patch-aa +++ b/textproc/xml2doc/patches/patch-aa @@ -1,27 +1,34 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/02/23 08:39:00 xtraeme Exp $ +$NetBSD: patch-aa,v 1.2 2010/07/07 00:29:32 joerg Exp $ ---- doc/Makefile.in.orig 2004-02-23 09:26:44.000000000 +0100 -+++ doc/Makefile.in 2004-02-23 09:31:00.000000000 +0100 -@@ -9,7 +9,6 @@ - export PATH=$(PATH):$(PWD)/src/ ; - for A in *.xml; do xml2doc -oP $$A $$A.pdf ; done ; - xml2doc -oM manpage.xml manpage.man ; +--- doc/Makefile.in.orig 2003-05-10 14:44:26.000000000 +0000 ++++ doc/Makefile.in +@@ -6,10 +6,8 @@ all: + + build: + @printf "\e[32mBuilding documentation...\e[0m\n" +- export PATH=$(PATH):$(PWD)/src/ ; +- for A in *.xml; do xml2doc -oP $$A $$A.pdf ; done ; +- xml2doc -oM manpage.xml manpage.man ; - gzip manpage.man ; ++ for A in *.xml; do ../src/xml2doc -oP $$A $$A.pdf ; done ; ++ ../src/xml2doc -oM manpage.xml manpage.man; @printf "\e[32mDONE\e[0m\n" mrproper: clean -@@ -21,10 +20,10 @@ +@@ -20,11 +18,11 @@ clean: + install: build @printf "\e[32mInstalling documentation...\e[0m\n" - @mkdir -p $(PREFIX)/share/man/man1 +- @mkdir -p $(PREFIX)/share/man/man1 - cp -f manpage.man.gz $(PREFIX)/share/man/man1/xml2doc.1.gz - gzip -f $(PREFIX)/share/man/man1/xml2doc.1 - @mkdir -p $(PREFIX)/share/doc/xml2doc - for A in $(DOCS); do cp -f $$A $(PREFIX)/share/doc/xml2doc/ ;done -+ $(BSD_INSTALL_MAN) manpage.man $(PREFIX)/man/man1/xml2doc.1 -+ @$(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/doc/xml2doc ++ @mkdir -p ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1 ++ $(BSD_INSTALL_MAN) manpage.man ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/xml2doc.1 ++ @$(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/doc/xml2doc + for A in $(DOCS); do $(BSD_INSTALL_DATA) $$A \ -+ $(PREFIX)/share/doc/xml2doc/ ;done ++ ${DESTDIR}$(PREFIX)/share/doc/xml2doc/ ;done remove: @printf "\e[32mDeinstalling documentation...\e[0m\n" diff --git a/textproc/xml2doc/patches/patch-ab b/textproc/xml2doc/patches/patch-ab index 3e0f3871fdb..daf6b92d291 100644 --- a/textproc/xml2doc/patches/patch-ab +++ b/textproc/xml2doc/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1 2004/09/10 08:40:51 jmmv Exp $ +$NetBSD: patch-ab,v 1.2 2010/07/07 00:29:32 joerg Exp $ ---- src/Makefile.in.orig 2003-05-03 03:37:38.000000000 +0200 +--- src/Makefile.in.orig 2003-05-03 01:37:38.000000000 +0000 +++ src/Makefile.in @@ -11,13 +11,9 @@ PREFIX=@PREFIX@ @@ -19,3 +19,14 @@ $NetBSD: patch-ab,v 1.1 2004/09/10 08:40:51 jmmv Exp $ BIN=xml2doc all: +@@ -25,8 +21,8 @@ all: + + install: build + @printf "\e[32mInstalling binaries...\e[0m\n" +- mkdir -p $(PREFIX)/bin +- install -m 0755 ./$(BIN) $(PREFIX)/bin/$(BIN) ++ mkdir -p ${DESTDIR}$(PREFIX)/bin ++ install -m 0755 ./$(BIN) ${DESTDIR}$(PREFIX)/bin/$(BIN) + + remove: + @printf "\e[32mDeinstalling binaries...\e[0m\n" diff --git a/textproc/xml2doc/patches/patch-ac b/textproc/xml2doc/patches/patch-ac new file mode 100644 index 00000000000..437e8e0e2ec --- /dev/null +++ b/textproc/xml2doc/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.1 2010/07/07 00:29:32 joerg Exp $ + +--- examples/Makefile.in.orig 2010-07-07 00:27:14.000000000 +0000 ++++ examples/Makefile.in +@@ -15,8 +15,8 @@ clean: + + install: + @printf "\e[32mInstalling examples...\e[0m\n" +- mkdir -p $(PREFIX)/share/doc/xml2doc/examples +- cp -f *.xml $(PREFIX)/share/doc/xml2doc/examples ++ mkdir -p ${DESTDIR}$(PREFIX)/share/doc/xml2doc/examples ++ cp -f *.xml ${DESTDIR}$(PREFIX)/share/doc/xml2doc/examples + + remove: + @printf "\e[32mDeinstalling examples...\e[0m\n" |