blob: 49c887071abed20d95d47621bc6a50a0ab364b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-themes/wm-icons/wm-icons-0.4.0_pre1-r1.ebuild,v 1.2 2004/05/06 19:30:08 taviso Exp $
inherit gnuconfig
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="x86 alpha ppc"
IUSE=""
RDEPEND="sys-apps/gawk dev-lang/perl"
DEPEND="${RDEPEND} sys-devel/autoconf sys-devel/automake sys-apps/sed"
S=${WORKDIR}/wm-icons
src_unpack() {
unpack ${A}
sed -i 's#$(bindir)/wm-icons-config#true#g' ${S}/Makefile.am
use alpha && gnuconfig_update
}
src_compile() {
ebegin "Generating configure script, Please wait..."
( aclocal
autoheader
automake --add-missing
autoreconf ) 2>/dev/null
eend $?
econf --enable-all-sets --enable-icondir=/usr/share/icons/wm-icons || die "econf failed"
emake
}
src_install() {
# strange makefile...
einstall icondir=${D}/usr/share/icons/wm-icons DESTDIR=${D}
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 COPYING INSTALL 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
}
|