diff options
Diffstat (limited to 'x11-apps/ccsm/ccsm-0.8.4-r5.ebuild')
-rw-r--r-- | x11-apps/ccsm/ccsm-0.8.4-r5.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/x11-apps/ccsm/ccsm-0.8.4-r5.ebuild b/x11-apps/ccsm/ccsm-0.8.4-r5.ebuild new file mode 100644 index 000000000000..8bfe76d903d7 --- /dev/null +++ b/x11-apps/ccsm/ccsm-0.8.4-r5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-apps/ccsm/ccsm-0.8.4-r5.ebuild,v 1.1 2014/01/23 08:08:38 pinkbyte Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python2_{6,7} ) +DISTUTILS_IN_SOURCE_BUILD=1 +inherit distutils-r1 + +DESCRIPTION="Compizconfig Settings Manager" +HOMEPAGE="http://www.compiz.org/" +SRC_URI="http://releases.compiz.org/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND=" + >=dev-python/compizconfig-python-${PV}[${PYTHON_USEDEP}] + >=dev-python/pygtk-2.12:2[${PYTHON_USEDEP}] + gnome-base/librsvg +" + +# missing icons and text fix, bug #487106 +PATCHES=( "${FILESDIR}/${P}-pygobject-glib-fix.patch" ) + +DOCS=( AUTHORS ) + +python_prepare_all() { + # return error if wrong arguments passed to setup.py + sed -i -e 's/raise SystemExit/\0(1)/' setup.py || die 'sed on setup.py failed' + # fix desktop file + sed -i \ + -e '/Categories/s/Compiz/X-\0/' \ + -e '/Encoding/d' \ + ccsm.desktop.in || die 'sed on ccsm.desktop.in failed' + + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + for i in $(cd po ; echo *po | sed 's/\.po//g') ; do + if ! has ${i} ${LINGUAS} ; then + rm po/${i}.po || die + fi + done + fi + + distutils-r1_python_prepare_all +} + +python_configure_all() { + #set prefix + mydistutilsargs=( build --prefix=/usr ) +} |