diff options
Diffstat (limited to 'meta/packages/ncurses/ncurses.inc')
-rw-r--r-- | meta/packages/ncurses/ncurses.inc | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/meta/packages/ncurses/ncurses.inc b/meta/packages/ncurses/ncurses.inc index 60cc9db66b..fd0885356b 100644 --- a/meta/packages/ncurses/ncurses.inc +++ b/meta/packages/ncurses/ncurses.inc | |||
@@ -19,6 +19,8 @@ FILES_${PN} = "${bindir}/tput ${bindir}/tset ${libdir}/lib*.so.* usr/share/tabse | |||
19 | 19 | ||
20 | PARALLEL_MAKE="" | 20 | PARALLEL_MAKE="" |
21 | 21 | ||
22 | FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}" | ||
23 | |||
22 | EXTRA_OECONF = "--with-shared \ | 24 | EXTRA_OECONF = "--with-shared \ |
23 | --with-libtool \ | 25 | --with-libtool \ |
24 | --without-profile \ | 26 | --without-profile \ |
@@ -74,18 +76,24 @@ do_install() { | |||
74 | ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm | 76 | ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm |
75 | fi | 77 | fi |
76 | 78 | ||
77 | mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN} | 79 | if [ "${PN}" = "ncurses" ]; then |
78 | mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN} | 80 | mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN} |
81 | mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN} | ||
82 | fi | ||
79 | } | 83 | } |
80 | 84 | ||
81 | 85 | ||
82 | pkg_postinst_ncurses-tools () { | 86 | pkg_postinst_ncurses-tools () { |
83 | update-alternatives --install ${bindir}/clear clear clear.${PN} 100 | 87 | if [ "${PN}" = "ncurses" ]; then |
84 | update-alternatives --install ${bindir}/reset reset reset.${PN} 100 | 88 | update-alternatives --install ${bindir}/clear clear clear.${PN} 100 |
89 | update-alternatives --install ${bindir}/reset reset reset.${PN} 100 | ||
90 | fi | ||
85 | } | 91 | } |
86 | 92 | ||
87 | 93 | ||
88 | pkg_prerm_ncurses-tools () { | 94 | pkg_prerm_ncurses-tools () { |
89 | update-alternatives --remove clear clear.${PN} | 95 | if [ "${PN}" = "ncurses" ]; then |
90 | update-alternatives --remove reset reset.${PN} | 96 | update-alternatives --remove clear clear.${PN} |
97 | update-alternatives --remove reset reset.${PN} | ||
98 | fi | ||
91 | } | 99 | } |