--- /usr/portage/x11-wm/pekwm/pekwm-0.1.15.ebuild 2012-08-23 18:10:19.000000000 +0200 +++ attachment.cgi?id=329560 2012-11-14 22:01:32.696698172 +0100 @@ -1,12 +1,12 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/pekwm/pekwm-0.1.15.ebuild,v 1.1 2012/08/23 16:10:19 xarthisius Exp $ +# $Header: $ EAPI=4 inherit eutils -DESCRIPTION="A small window mananger based on aewm++" +DESCRIPTION="A lightweight window mananger initially based on aewm++" HOMEPAGE="http://pekwm.org/" SRC_URI="http://pekwm.org/projects/pekwm/files/${P}.tar.bz2 mirror://gentoo/${PN}-themes.tar.bz2" @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" -IUSE="debug truetype xinerama" +IUSE="debug truetype xinerama contrib" RDEPEND="virtual/jpeg media-libs/libpng @@ -22,10 +22,16 @@ x11-libs/libXrandr x11-libs/libXrender truetype? ( x11-libs/libXft ) - xinerama? ( x11-libs/libXinerama )" + xinerama? ( x11-libs/libXinerama ) + contrib? ( + dev-lang/perl + gnome-extra/zenity + )" DEPEND="${RDEPEND} virtual/pkgconfig" +DOCS="README ChangeLog* AUTHORS NEWS" + src_configure() { econf \ $(use_enable debug) \ @@ -41,6 +47,33 @@ src_install() { default - rm "${WORKDIR}/themes/Ace/.theme.swp" - mv "${WORKDIR}/themes/"* "${D}/usr/share/${PN}/themes/" + rm "${WORKDIR}"/themes/Ace/.theme.swp + mv "${WORKDIR}"/themes/* "${D}/usr/share/${PN}/themes/" + + # Insert an Xsession + echo -e "#!/bin/sh\n\n/usr/bin/${PN}" > "${T}"/${PN} + exeinto /etc/X11/Sessions + doexe "${T}"/${PN} + + # Insert a GDM/KDM xsession file + make_session_desktop ${PN} ${PN} + + # Install contributor scripts into doc folder + if use contrib ; then + rm contrib/lobo/Makefile* + + docompress -x /usr/share/doc/${PF}/contrib + + exeinto /usr/share/doc/${PF}/contrib + doexe contrib/lobo/*.pl + rm contrib/lobo/*.pl + + docinto contrib + dodoc contrib/lobo/* + fi +} + +pkg_postinst() { + elog " User contributed scripts had been installed into: /usr/share/doc/${PF}/contrib" + elog " You may find more info about them and their usage in: /usr/share/doc/${PF}/contrib/README" }