wm-icons-0.4.0.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. DESCRIPTION="A Large Assortment of Beutiful Themed Icons, Created with FVWM in mind"
  4. HOMEPAGE="http://wm-icons.sourceforge.net/"
  5. SRC_URI="mirror://sourceforge/wm-icons/wm-icons-${PV}.tar.bz2"
  6. LICENSE="GPL-2"
  7. SLOT="0"
  8. KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
  9. IUSE=""
  10. RDEPEND="virtual/awk dev-lang/perl"
  11. DEPEND="${RDEPEND} sys-devel/autoconf sys-devel/automake sys-apps/sed"
  12. src_compile() {
  13. econf --enable-all-sets --enable-icondir=/usr/share/icons/wm-icons || die "econf failed"
  14. emake || die
  15. }
  16. src_install() {
  17. make icondir="${D}/usr/share/icons/wm-icons" DESTDIR="${D}" install
  18. einfo "Setting default aliases..."
  19. "${D}"/usr/bin/wm-icons-config --force --user-dir="${D}/usr/share/icons/wm-icons" --defaults
  20. dodoc AUTHORS ChangeLog NEWS README
  21. }
  22. pkg_postinst() {
  23. einfo "Users can use the wm-icons-config utility to create aliases in their"
  24. einfo "home directory, FVWM users can then set this in their ImagePath"
  25. einfo
  26. einfo "Sample configurations for fvwm1, fvwm2, fvwm95 and scwm are available in"
  27. einfo "/usr/share/wm-icons"
  28. einfo
  29. }