diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-07-12 20:56:26 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-07-12 20:56:26 +0900 |
commit | 2936adc6b49facca2bdc15bd2b47b1927af135dc (patch) | |
tree | a93b744e34cbdccbc0520c8e787addb5b15f6a58 /eclass/cannadic.eclass | |
parent | cannadic.eclass: use einstalldocs (diff) | |
download | gentoo-2936adc6b49facca2bdc15bd2b47b1927af135dc.tar.gz gentoo-2936adc6b49facca2bdc15bd2b47b1927af135dc.tar.bz2 gentoo-2936adc6b49facca2bdc15bd2b47b1927af135dc.zip |
cannadic.eclass: replace ROOT → EROOT
Diffstat (limited to 'eclass/cannadic.eclass')
-rw-r--r-- | eclass/cannadic.eclass | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/eclass/cannadic.eclass b/eclass/cannadic.eclass index ac15bb73ac50..1a0d71e15125 100644 --- a/eclass/cannadic.eclass +++ b/eclass/cannadic.eclass @@ -22,23 +22,23 @@ DICSDIRFILE="${FILESDIR}/*.dics.dir" CANNADICS="${CANNADICS}" # (optional) # You don't need to modify these -cannadir="${ROOT}/var/lib/canna/dic/canna" -dicsdir="${ROOT}/var/lib/canna/dic/dics.d" +cannadir="${EROOT:-${ROOT}}"var/lib/canna/dic/canna +dicsdir="${EROOT:-${ROOT}}"var/lib/canna/dic/dics.d # @FUNCTION: cannadic_pkg_setup # @DESCRIPTION: # Sets up cannadic dir cannadic_pkg_setup() { - keepdir ${cannadir} - fowners bin:bin ${cannadir} - fperms 0775 ${cannadir} + keepdir "${cannadir}" + fowners bin:bin "${cannadir}" + fperms 0775 "${cannadir}" } # @FUNCTION: cannadic-install # @DESCRIPTION: # Installs dictionaries to cannadir cannadic-install() { - insinto ${cannadir} + insinto "${cannadir}" insopts -m 0664 -o bin -g bin doins "${@}" } @@ -47,8 +47,8 @@ cannadic-install() { # @DESCRIPTION: # Installs dics.dir from ${DICSDIRFILE} dicsdir-install() { - insinto ${dicsdir} - doins ${DICSDIRFILE} + insinto "${dicsdir}" + doins "${DICSDIRFILE}" } # @FUNCTION: cannadic_src_install @@ -58,7 +58,7 @@ dicsdir-install() { cannadic_src_install() { local f for f in *.c[btl]d *.t; do - cannadic-install ${f} + cannadic-install "${f}" done 2> /dev/null dicsdir-install || die @@ -80,19 +80,19 @@ update-cannadic-dir() { einfo # write new dics.dir file in case we are interrupted - cat <<-EOF > ${cannadir}/dics.dir.update-new + cat <<-EOF > "${cannadir}"/dics.dir.update-new # dics.dir -- automatically generated file by Portage. # DO NOT EDIT BY HAND. EOF local f - for f in ${dicsdir}/*.dics.dir; do - echo "# ${f}" >> ${cannadir}/dics.dir.update-new - cat ${f} >> ${cannadir}/dics.dir.update-new + for f in "${dicsdir}"/*.dics.dir; do + echo "# ${f}" >> "${cannadir}"/dics.dir.update-new + cat "${f}" >> "${cannadir}"/dics.dir.update-new einfo "Added ${f}." done - mv ${cannadir}/dics.dir.update-new ${cannadir}/dics.dir + mv "${cannadir}"/dics.dir.update-new "${cannadir}"/dics.dir einfo einfo "Done." |