summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-office/scribus/scribus-9999.ebuild')
-rw-r--r--app-office/scribus/scribus-9999.ebuild28
1 files changed, 14 insertions, 14 deletions
diff --git a/app-office/scribus/scribus-9999.ebuild b/app-office/scribus/scribus-9999.ebuild
index ed64087a32c9..3911b24e548d 100644
--- a/app-office/scribus/scribus-9999.ebuild
+++ b/app-office/scribus/scribus-9999.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-9999.ebuild,v 1.16 2015/05/29 09:37:12 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-9999.ebuild,v 1.17 2015/06/15 19:30:04 jlec Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="tk?"
+CMAKE_MAKEFILE_GENERATOR=ninja
inherit cmake-utils fdo-mime flag-o-matic multilib python-single-r1 subversion
@@ -168,7 +169,7 @@ src_install() {
EOF
dodoc "${T}"/COPYING
docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING}
- doicon resources/icons/scribus.png
+ doicon resources/iconsets/*/scribus.png
domenu scribus.desktop
}
@@ -183,22 +184,21 @@ pkg_postrm() {
}
safe_delete () {
- case $1 in
- dir)
- if [[ -d "${2}" ]]; then
+ if path_exists $2; then
+ case $1 in
+ dir)
ebegin "Deleting ${2} recursively"
rm -r "${2}" || die
eend $?
- fi
- ;;
- file)
- if [[ -f "${2}" ]]; then
+ ;;
+ file)
ebegin "Deleting ${2}"
rm "${2}" || die
eend $?
- fi
- ;;
- *)
- die "Wrong usage"
- esac
+ ;;
+ *)
+ die "Wrong usage"
+ ;;
+ esac
+ fi
}