blob: a37cbc2531bb218a083dc1828074058f93293a63 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdockapp/libdockapp-0.6.1.ebuild,v 1.11 2009/05/05 08:04:42 ssuominen Exp $
WANT_AUTOMAKE="1.5"
inherit eutils autotools
IUSE=""
DESCRIPTION="Window Maker Dock Applet Library"
SRC_URI="http://solfertje.student.utwente.nl/~dalroi/libdockapp/files/${P}.tar.bz2"
HOMEPAGE="http://solfertje.student.utwente.nl/~dalroi/libdockapp/"
LICENSE="as-is"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
RDEPEND="x11-libs/libX11
x11-libs/libXt
x11-libs/libXext
x11-libs/libXpm"
DEPEND="${RDEPEND}
x11-proto/xextproto
x11-proto/xproto"
S=${WORKDIR}/${P/lib/}
FONTDIR="/usr/share/fonts/${PN}-fonts"
src_unpack()
{
unpack ${A}
cd "${S}"
# sanitize fonts installation path
epatch "${FILESDIR}/install-paths.patch-${PV}"
# add legacy support for older dockapps
epatch "${FILESDIR}/legacy.patch-${PV}"
eautoreconf
}
src_compile()
{
econf || die "configure failed"
emake || die "parallel make failed"
}
src_install()
{
make \
DESTDIR="${D}" \
SHAREDIR="${D}/usr/share/doc/${PF}/examples/" \
install || die "make install failed"
dodoc README ChangeLog NEWS AUTHORS
}
pkg_postinst()
{
einfo
einfo "You need to add following line into 'Section \"Files\"' in"
einfo "/etc/X11/xorg.conf (or /etc/X11/XF86Config if you are still using XFree86)"
einfo "and reboot X Window System, to use these fonts."
einfo
einfo "\t FontPath \"${FONTDIR}\""
einfo
einfo "You also need to add the following line to /etc/fonts/local.conf"
einfo
einfo "\t <dir>${FONTDIR}</dir>"
einfo
}
pkg_postrm()
{
einfo
einfo "You need to remove following line from 'Section \"Files\"' in"
einfo "/etc/X11/xorg.conf (or /etc/X11/XF86Config if you are still using XFree86)"
einfo "to unmerge this package completely."
einfo
einfo "\t FontPath \"${FONTDIR}\""
einfo
einfo "You also need to remove the following line from /etc/fonts/local.conf"
einfo
einfo "\t <dir>${FONTDIR}</dir>"
einfo
}
|