# $Header: /magellan-cvs/smage/fluxspace/fluxspace-0.0.3-r5.smage2,v 1.5 2007-11-10 14:03:22 niro Exp $ PNAME="fluxspace" PVER="0.0.3" PBUILD="r5" PCATEGORIE="x11-misc" STATE="stable" DESCRIPTION="Fluxspace blends Fluxbox's window management with new desktop management capabilities." HOMEPAGE="http://fluxspace.sourceforge.net/" DEPEND=">= x11-wm/fluxbox-0.1.14 >= dev-lang/python-2.3 >= dev-python/pyxml-0.8.3 >= media-libs/imlib2-1.1.0" SDEPEND=">= dev-lang/swig-1.3.21 >= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} ) # get python version -> ex 2.4 sminclude python mbuild # link against libstc++; required to run with linux export LDFLAGS="-lstdc++" src_install() { cd ${SRCDIR} local PYVER="$(get_python_version)" minstall \ pyexecdir='${exec_prefix}'/$(mlibdir)/python${PYVER}/site-packages \ pythondir='${prefix}'/$(mlibdir)/python${PYVER}/site-packages || die # needed symlinks ln -snf /usr/$(mlibdir)/python${PYVER}/site-packages/fluxspace.py \ ${BINDIR}/usr/$(mlibdir)/python${PYVER}/site-packages/fluxspace/__init__.py || die ln -snf /usr/$(mlibdir)/libfluxspace.so \ ${BINDIR}/usr/$(mlibdir)/python${PYVER}/site-packages/_fluxspace.so || die # installs the docs minstalldocs README COPYING AUTHORS ChangeLog NEWS TODO || die # fixes a bad typo in fluxspace.xml sed -i -e "s/no\"\\\/no\"\//g" ${BINDIR}/usr/share/fluxspace/examples/fluxspace.xml || die } postinstall(){ echo -e "To use all optinal features of this package," echo -e "you can install idesk and rox separately." echo echo -e "Setup:" echo -e "Copy /usr/share/fluxspace/examples/fluxspace.xml to" echo -e "~/.fluxbox and edit the file according to your needs." echo echo -e "Enable fluxspace:" echo -e "Edit ~/.fluxbox/init and change 'session.screen0.rootCommand:'" echo -e "to 'session.screen0.rootCommand: fluxspace'" echo }