# $Header: /magellan-cvs/smage/openbox/openbox-3.4.7.2-r1.smage2,v 1.1 2008/08/15 11:29:21 niro Exp $ PNAME="openbox" PVER="3.4.7.2" PBUILD="r1" PCATEGORIE="x11-wm" STATE="unstable" DESCRIPTION="Openbox is a standards compliant, fast, light-weight, extensible window manager." HOMEPAGE="http://icculus.org/openbox/" DEPEND=">= x11-libs/libXft-2 >= x11-libs/libXrandr-1 >= x11-libs/libXt-1 >= x11-libs/libXinerama-1 >= dev-libs/glib2-2.16 >= x11-libs/pango-1.20 >= media-libs/fontconfig-2 >= dev-libs/libxml2-2.0 >= x11-libs/startup-notification-0.9" SDEPEND=">= dev-util/pkgconfig-0.23 >= sys-dev/gettext-0.17 >= x11-proto/xextproto-7 >= x11-proto/xf86vidmodeproto-2 >= x11-proto/xineramaproto-1" SRCFILE="${PNAME}-${PVER/_/-}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" sminclude mbuild mtools SRC_URI=( http://icculus.org/${PNAME}/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) ## ## todo:: Validate XDG_CONFIG_DIRS and XDG_DATA_DIRS !!! ## If not set, openbox will not start ## export XDG_CONFIG_DIRS=/etc/xdg ## export XDG_DATA_DIRS=/usr/share ## src_compile() { cd ${SRCDIR} mconfigure \ --docdir=/usr/share/doc/${PNAME}-${PVER} \ --enable-startup-notification \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/share/xsessions || die mmake DESTDIR=${BINDIR} install || die # create a gnome xsession file echo "[Desktop Entry] Encoding=UTF-8 Name=Openbox Comment=This session logs you into Openbox-${PVER} Exec=openbox TryExec=openbox Icon= Type=Application" > ${BINDIR}/usr/share/xsessions/openbox.desktop || die minstalldocs ABOUT-NLS AUTHORS README CHANGELOG \ TODO COMPLIANCE COPYING || die }