diff options
Diffstat (limited to 'x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild')
-rw-r--r-- | x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild b/x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild new file mode 100644 index 000000000000..4c8a6b5a4bbb --- /dev/null +++ b/x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools + +DESCRIPTION="A Large Assortment of Beutiful Themed Icons, Created with FVWM in mind" + +HOMEPAGE="http://wm-icons.sourceforge.net/" +SRC_URI="mirror://gentoo/wm-icons-${PV}-cvs-01092003.tar.bz2" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 x86" + +IUSE="" +RDEPEND="virtual/awk dev-lang/perl" + +S=${WORKDIR}/wm-icons + +src_unpack() { + unpack ${A} + + sed -i 's#$(bindir)/wm-icons-config#true#g' "${S}"/Makefile.am + # duplication of bin/Makefile in configure.in #91764 + sed -i '132s/bin\/Makefile//' "${S}"/configure.in + # non-portable comment bombs automake. + sed -i 's/\t#/#/' "${S}"/Makefile.am + + cd "${S}" + eautoreconf +} + +src_compile() { + econf --enable-all-sets --enable-icondir=/usr/share/icons/wm-icons || die "econf failed" + emake || die "emake failed" +} + +src_install() { + # strange makefile... + einstall icondir="${D}/usr/share/icons/wm-icons" DESTDIR="${D}" || die + + dodir /usr/bin + mv "${D}"/"${D}"/usr/bin/wm-icons-config "${D}"/usr/bin/wm-icons-config + rm -rf "${D}"/var + + einfo "Setting default aliases..." + "${D}"/usr/bin/wm-icons-config --user-dir="${D}/usr/share/icons/wm-icons" --defaults + + dodoc AUTHORS ChangeLog NEWS README +} + +pkg_postinst() { + einfo "Users can use the wm-icons-config utility to create aliases in their" + einfo "home directory, FVWM users can then set this in their ImagePath" + einfo + einfo "Sample configurations for fvwm1, fvwm2, fvwm95 and scwm are available in" + einfo "/usr/share/wm-icons" + einfo +} |