app-text/calibre: fix gentoo-ci lint
authorZac Medico <zmedico@gentoo.org>
Thu, 15 Aug 2019 19:47:12 +0000 (12:47 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 15 Aug 2019 19:48:33 +0000 (12:48 -0700)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Zac Medico <zmedico@gentoo.org>
app-text/calibre/calibre-3.26.1-r1.ebuild
app-text/calibre/calibre-3.44.0.ebuild
app-text/calibre/calibre-3.46.0-r1.ebuild

index 5fb25df4b35efa158fd3df71bf58e8c7ff1e4ee4..c92715c1e5f5b1fd84f32521b57fec02d5309bcc 100644 (file)
@@ -206,8 +206,6 @@ src_install() {
                [[ -e ${x} ]] && addpredict ${x}
        done
 
-       #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
-       #dodir $(python_get_sitedir)
        PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
        "${PYTHON}" setup.py install \
                --root="${D}" \
index 2459339e259567148e0a5c9f3df466664b83a98d..9b8c29fcc23b31ac292a10b6572dd4140dc5fcac 100644 (file)
@@ -196,8 +196,6 @@ src_install() {
 
        addpredict /dev/dri #665310
 
-       #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
-       #dodir $(python_get_sitedir)
        PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
        "${PYTHON}" setup.py install \
                --root="${D}" \
@@ -252,7 +250,7 @@ pkg_preinst() {
 pkg_postinst() {
        [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
        local x
-       for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do
+       for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
                if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
                        elog "Purging '${x}'"
                        rm -rf "${x}"
index 2459339e259567148e0a5c9f3df466664b83a98d..9b8c29fcc23b31ac292a10b6572dd4140dc5fcac 100644 (file)
@@ -196,8 +196,6 @@ src_install() {
 
        addpredict /dev/dri #665310
 
-       #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
-       #dodir $(python_get_sitedir)
        PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
        "${PYTHON}" setup.py install \
                --root="${D}" \
@@ -252,7 +250,7 @@ pkg_preinst() {
 pkg_postinst() {
        [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
        local x
-       for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do
+       for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
                if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
                        elog "Purging '${x}'"
                        rm -rf "${x}"