diff options
author | asau <asau@pkgsrc.org> | 2011-03-30 22:17:48 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2011-03-30 22:17:48 +0000 |
commit | aa733c22d2dc791fd7bf9206fe2859879fd6f343 (patch) | |
tree | 9b00f6e819ddc0528a59895532a33399906593c1 /lang/onyx/patches | |
parent | bd08927d0b2f3b40ed4e6a56236ec80ad3bf45b4 (diff) | |
download | pkgsrc-aa733c22d2dc791fd7bf9206fe2859879fd6f343.tar.gz |
Support staged installation.
Diffstat (limited to 'lang/onyx/patches')
-rw-r--r-- | lang/onyx/patches/patch-Cookfile.in | 11 | ||||
-rw-r--r-- | lang/onyx/patches/patch-bin_onyx_Cookfile.inc.in | 46 | ||||
-rw-r--r-- | lang/onyx/patches/patch-bin_onyx__config_Cookfile.inc.in | 36 | ||||
-rw-r--r-- | lang/onyx/patches/patch-doc_latex_onyx_Cookfile.inc.in | 45 | ||||
-rw-r--r-- | lang/onyx/patches/patch-lib_libonyx_Cookfile.inc.in | 65 | ||||
-rw-r--r-- | lang/onyx/patches/patch-mod_modclopt_Cookfile.inc.in | 27 | ||||
-rw-r--r-- | lang/onyx/patches/patch-mod_modprompt_Cookfile.inc.in | 31 |
7 files changed, 261 insertions, 0 deletions
diff --git a/lang/onyx/patches/patch-Cookfile.in b/lang/onyx/patches/patch-Cookfile.in new file mode 100644 index 00000000000..3374fce9577 --- /dev/null +++ b/lang/onyx/patches/patch-Cookfile.in @@ -0,0 +1,11 @@ +$NetBSD: patch-Cookfile.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- Cookfile.in.orig 2005-03-17 07:54:57.000000000 +0000 ++++ Cookfile.in +@@ -37,4 +37,6 @@ + * + ******************************************************************************/ + ++DESTDIR = [getenv DESTDIR]; ++ + #include-cooked @objroot@/Cookfile.inc diff --git a/lang/onyx/patches/patch-bin_onyx_Cookfile.inc.in b/lang/onyx/patches/patch-bin_onyx_Cookfile.inc.in new file mode 100644 index 00000000000..432d085c1a0 --- /dev/null +++ b/lang/onyx/patches/patch-bin_onyx_Cookfile.inc.in @@ -0,0 +1,46 @@ +$NetBSD: patch-bin_onyx_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- bin/onyx/Cookfile.inc.in.orig 2005-03-17 07:54:59.000000000 +0000 ++++ bin/onyx/Cookfile.inc.in +@@ -428,26 +428,26 @@ onyx_bins_check_update : onyx_bins_tests + onyx_bins_install : [ONYX] mods_install + libonyx_libs_install_s + { +- @INSTALL@ -d [BINDIR]; ++ @INSTALL@ -d [DESTDIR][BINDIR]; + +- @INSTALL@ -m 0755 [ONYX] [BINDIR]/onyx-@onyx_version@; +- rm -f [BINDIR]/onyx; +- ln -s onyx-@onyx_version@ [BINDIR]/onyx; +- +- @INSTALL@ -d [MANDIR]/man1; +- @INSTALL@ -m 0444 @objroot@/bin/onyx/man/man1/onyx.1 [MANDIR]/man1; +- +- @INSTALL@ -d [DATADIR]; +- rm -f [DATADIR]/onyx; +- ln -s onyx-@onyx_version@ [DATADIR]/onyx; ++ @INSTALL@ -m 0755 [ONYX] [DESTDIR][BINDIR]/onyx-@onyx_version@; ++ rm -f [DESTDIR][BINDIR]/onyx; ++ ln -s onyx-@onyx_version@ [DESTDIR][BINDIR]/onyx; ++ ++ @INSTALL@ -d [DESTDIR][MANDIR]/man1; ++ @INSTALL@ -m 0444 @objroot@/bin/onyx/man/man1/onyx.1 [DESTDIR][MANDIR]/man1; ++ ++ @INSTALL@ -d [DESTDIR][DATADIR]; ++ rm -f [DESTDIR][DATADIR]/onyx; ++ ln -s onyx-@onyx_version@ [DESTDIR][DATADIR]/onyx; + } + + onyx_bins_uninstall : + { +- rm -f [BINDIR]/onyx-@onyx_version@; +- rm -f [BINDIR]/onyx; +- rm -f [MANDIR]/man1/onyx.1; +- rm -f [DATADIR]/onyx; ++ rm -f [DESTDIR][BINDIR]/onyx-@onyx_version@; ++ rm -f [DESTDIR][BINDIR]/onyx; ++ rm -f [DESTDIR][MANDIR]/man1/onyx.1; ++ rm -f [DESTDIR][DATADIR]/onyx; + } + + onyx_bins_clean : diff --git a/lang/onyx/patches/patch-bin_onyx__config_Cookfile.inc.in b/lang/onyx/patches/patch-bin_onyx__config_Cookfile.inc.in new file mode 100644 index 00000000000..c8287047521 --- /dev/null +++ b/lang/onyx/patches/patch-bin_onyx__config_Cookfile.inc.in @@ -0,0 +1,36 @@ +$NetBSD: patch-bin_onyx__config_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- bin/onyx_config/Cookfile.inc.in.orig 2005-03-17 07:55:08.000000000 +0000 ++++ bin/onyx_config/Cookfile.inc.in +@@ -72,22 +72,22 @@ onyx_config_bins_install : [ONYX_CONFIG] + mods_install + onyx_bins_install + { +- @INSTALL@ -d [BINDIR]; ++ @INSTALL@ -d [DESTDIR][BINDIR]; + +- @INSTALL@ -m 0755 [ONYX_CONFIG] [BINDIR]/onyx_config-@onyx_version@; +- rm -f [BINDIR]/onyx_config; +- ln -s onyx_config-@onyx_version@ [BINDIR]/onyx_config; ++ @INSTALL@ -m 0755 [ONYX_CONFIG] [DESTDIR][BINDIR]/onyx_config-@onyx_version@; ++ rm -f [DESTDIR][BINDIR]/onyx_config; ++ ln -s onyx_config-@onyx_version@ [DESTDIR][BINDIR]/onyx_config; + +- @INSTALL@ -d [MANDIR]/man1; ++ @INSTALL@ -d [DESTDIR][MANDIR]/man1; + @INSTALL@ -m 0444 @objroot@/bin/onyx_config/man/man1/onyx_config.1 +- [MANDIR]/man1; ++ [DESTDIR][MANDIR]/man1; + } + + onyx_config_bins_uninstall : + { +- rm -f [BINDIR]/onyx_config-@onyx_version@; +- rm -f [BINDIR]/onyx_config; +- rm -f [MANDIR]/man1/onyx_config.1; ++ rm -f [DESTDIR][BINDIR]/onyx_config-@onyx_version@; ++ rm -f [DESTDIR][BINDIR]/onyx_config; ++ rm -f [DESTDIR][MANDIR]/man1/onyx_config.1; + } + + onyx_config_bins_clean : diff --git a/lang/onyx/patches/patch-doc_latex_onyx_Cookfile.inc.in b/lang/onyx/patches/patch-doc_latex_onyx_Cookfile.inc.in new file mode 100644 index 00000000000..1a61dd905c7 --- /dev/null +++ b/lang/onyx/patches/patch-doc_latex_onyx_Cookfile.inc.in @@ -0,0 +1,45 @@ +$NetBSD: patch-doc_latex_onyx_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- doc/latex/onyx/Cookfile.inc.in.orig 2005-03-17 07:54:59.000000000 +0000 ++++ doc/latex/onyx/Cookfile.inc.in +@@ -82,31 +82,31 @@ onyx_docs_html : + + onyx_docs_install_pdf : onyx_docs_pdf onyx_docs_install + { +- @INSTALL@ -d [DATADIR]/doc/onyx-@onyx_version@/pdf; +- @INSTALL@ -m 0444 [ONYX_PDF] [DATADIR]/doc/onyx-@onyx_version@/pdf; ++ @INSTALL@ -d [DESTDIR][DATADIR]/doc/onyx-@onyx_version@/pdf; ++ @INSTALL@ -m 0444 [ONYX_PDF] [DESTDIR][DATADIR]/doc/onyx-@onyx_version@/pdf; + } + + onyx_docs_install_html : onyx_docs_html onyx_docs_install + { +- @INSTALL@ -d [DATADIR]/doc/onyx-@onyx_version@/html; ++ @INSTALL@ -d [DESTDIR][DATADIR]/doc/onyx-@onyx_version@/html; + + loop local f = [glob [dirname [ONYX_HTML]]"/*"] + { +- @INSTALL@ -m 0444 [f] [DATADIR]/doc/onyx-@onyx_version@/html; ++ @INSTALL@ -m 0444 [f] [DESTDIR][DATADIR]/doc/onyx-@onyx_version@/html; + } + } + + onyx_docs_install : + { +- @INSTALL@ -d [DATADIR]/doc; +- rm -f [DATADIR]/doc/onyx; +- ln -s onyx-@onyx_version@ [DATADIR]/doc/onyx; ++ @INSTALL@ -d [DESTDIR][DATADIR]/doc; ++ rm -f [DESTDIR][DATADIR]/doc/onyx; ++ ln -s onyx-@onyx_version@ [DESTDIR][DATADIR]/doc/onyx; + } + + onyx_docs_uninstall : + { +- rm -rf [DATADIR]/doc/onyx-@onyx_version@; +- rm -f [DATADIR]/doc/onyx; ++ rm -rf [DESTDIR][DATADIR]/doc/onyx-@onyx_version@; ++ rm -f [DESTDIR][DATADIR]/doc/onyx; + } + + onyx_docs_clean : diff --git a/lang/onyx/patches/patch-lib_libonyx_Cookfile.inc.in b/lang/onyx/patches/patch-lib_libonyx_Cookfile.inc.in new file mode 100644 index 00000000000..c34961de903 --- /dev/null +++ b/lang/onyx/patches/patch-lib_libonyx_Cookfile.inc.in @@ -0,0 +1,65 @@ +$NetBSD: patch-lib_libonyx_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- lib/libonyx/Cookfile.inc.in.orig 2005-03-17 07:54:57.000000000 +0000 ++++ lib/libonyx/Cookfile.inc.in +@@ -235,10 +235,10 @@ libonyx_libs_install : libonyx_libs_inst + + libonyx_libs_uninstall : + { +- rm -f [glob [LIBDIR]/libonyx*]; +- rm -rf [INCLUDEDIR]/libonyx; ++ rm -f [glob [DESTDIR][LIBDIR]/libonyx*]; ++ rm -rf [DESTDIR][INCLUDEDIR]/libonyx; + #if @enable_posix@ +- rm -rf [DATADIR]/onyx-@onyx_version@/libonyx; ++ rm -rf [DESTDIR][DATADIR]/onyx-@onyx_version@/libonyx; + #endif + } + +@@ -303,37 +303,37 @@ libonyx_libs_install_i : + [LIBONYX_INIT] + #endif + { +- @INSTALL@ -d [INCLUDEDIR]/libonyx; ++ @INSTALL@ -d [DESTDIR][INCLUDEDIR]/libonyx; + + loop local f = [LIBONYX_INCS] + { +- @INSTALL@ -m 0644 [f] [INCLUDEDIR]/libonyx/; ++ @INSTALL@ -m 0644 [f] [DESTDIR][INCLUDEDIR]/libonyx/; + } + + #if @enable_posix@ +- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/libonyx; ++ @INSTALL@ -d [DESTDIR][DATADIR]/onyx-@onyx_version@/libonyx; + +- @INSTALL@ -m 0644 [LIBONYX_INIT] [DATADIR]/onyx-@onyx_version@/libonyx/; ++ @INSTALL@ -m 0644 [LIBONYX_INIT] [DESTDIR][DATADIR]/onyx-@onyx_version@/libonyx/; + #endif + } + + libonyx_libs_install_common : + { +- @INSTALL@ -d [LIBDIR]; ++ @INSTALL@ -d [DESTDIR][LIBDIR]; + } + + libonyx_libs_install_a : [LIBONYX_A] libonyx_libs_install_common + { +- @INSTALL@ -m 0444 [LIBONYX_A] [LIBDIR]; ++ @INSTALL@ -m 0444 [LIBONYX_A] [DESTDIR][LIBDIR]; + } + + libonyx_libs_install_s : [LIBONYX_S] libonyx_libs_install_common + { +- @INSTALL@ -m 0444 [LIBONYX_S] [LIBDIR]; ++ @INSTALL@ -m 0444 [LIBONYX_S] [DESTDIR][LIBDIR]; + + #if [count [LIBONYX_LNAME]] +- rm -f [LIBDIR]/[LIBONYX_LNAME]; +- ln -s [LIBONYX_SNAME] [LIBDIR]/[LIBONYX_LNAME]; ++ rm -f [DESTDIR][LIBDIR]/[LIBONYX_LNAME]; ++ ln -s [LIBONYX_SNAME] [DESTDIR][LIBDIR]/[LIBONYX_LNAME]; + #endif + } + diff --git a/lang/onyx/patches/patch-mod_modclopt_Cookfile.inc.in b/lang/onyx/patches/patch-mod_modclopt_Cookfile.inc.in new file mode 100644 index 00000000000..af3e8460fc6 --- /dev/null +++ b/lang/onyx/patches/patch-mod_modclopt_Cookfile.inc.in @@ -0,0 +1,27 @@ +$NetBSD: patch-mod_modclopt_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- mod/modclopt/Cookfile.inc.in.orig 2005-03-17 07:54:59.000000000 +0000 ++++ mod/modclopt/Cookfile.inc.in +@@ -92,18 +92,18 @@ modclopt_mods_check_update : modclopt_mo + + modclopt_mods_install : + { +- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nx/modclopt; ++ @INSTALL@ -d [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modclopt; + + loop local f = [MODCLOPT_NX] [MODCLOPT_NX_GEN] + { +- @INSTALL@ -m 0644 [f] [DATADIR]/onyx-@onyx_version@/nx/modclopt/; ++ @INSTALL@ -m 0644 [f] [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modclopt/; + } + } + + modclopt_mods_uninstall : + { +- rm -f [DATADIR]/onyx-@onyx_version@/nxm/modclopt.nxm; +- rm -rf [DATADIR]/onyx-@onyx_version@/nx/modclopt; ++ rm -f [DESTDIR][DATADIR]/onyx-@onyx_version@/nxm/modclopt.nxm; ++ rm -rf [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modclopt; + } + + modclopt_mods_clean : diff --git a/lang/onyx/patches/patch-mod_modprompt_Cookfile.inc.in b/lang/onyx/patches/patch-mod_modprompt_Cookfile.inc.in new file mode 100644 index 00000000000..862b3331296 --- /dev/null +++ b/lang/onyx/patches/patch-mod_modprompt_Cookfile.inc.in @@ -0,0 +1,31 @@ +$NetBSD: patch-mod_modprompt_Cookfile.inc.in,v 1.1 2011/03/30 22:17:49 asau Exp $ + +--- mod/modprompt/Cookfile.inc.in.orig 2005-03-17 07:54:59.000000000 +0000 ++++ mod/modprompt/Cookfile.inc.in +@@ -73,20 +73,20 @@ modprompt_mods_check_update : ; + + modprompt_mods_install : [MODPROMPT] + { +- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nxm; +- @INSTALL@ -m 0444 [MODPROMPT] [DATADIR]/onyx-@onyx_version@/nxm; +- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nx/modprompt; ++ @INSTALL@ -d [DESTDIR][DATADIR]/onyx-@onyx_version@/nxm; ++ @INSTALL@ -m 0444 [MODPROMPT] [DESTDIR][DATADIR]/onyx-@onyx_version@/nxm; ++ @INSTALL@ -d [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modprompt; + + loop local f = [MODPROMPT_NX] [MODPROMPT_NX_GEN] + { +- @INSTALL@ -m 0644 [f] [DATADIR]/onyx-@onyx_version@/nx/modprompt/; ++ @INSTALL@ -m 0644 [f] [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modprompt/; + } + } + + modprompt_mods_uninstall : + { +- rm -f [DATADIR]/onyx-@onyx_version@/nxm/modprompt.nxm; +- rm -rf [DATADIR]/onyx-@onyx_version@/nx/modprompt; ++ rm -f [DESTDIR][DATADIR]/onyx-@onyx_version@/nxm/modprompt.nxm; ++ rm -rf [DESTDIR][DATADIR]/onyx-@onyx_version@/nx/modprompt; + } + + modprompt_mods_clean : |