blob: 7888ad30de9867c0b9de40e1ac754b1f280bede4 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/asapm/asapm-2.11.ebuild,v 1.2 2002/12/09 04:41:55 manson Exp $
IUSE="jpeg"
S=${WORKDIR}/${P}
DESCRIPTION="APM monitor for AfterStep"
SRC_URI="http://www.tigr.net/afterstep/download/asapm/${P}.tar.gz"
HOMEPAGE="http://www.tigr.net/afterstep/list.pl"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc "
DEPEND="virtual/x11
jpeg? ( media-libs/jpeg )"
src_compile() {
local myconf
use jpeg \
&& myconf="${myconf} --enable-jpeg" \
|| myconf="${myconf} --disable-jpeg"
./configure \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--prefix=/usr \
--host=${CHOST} \
${myconf} || die
patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
emake || die
}
src_install () {
dodir usr/bin
dodir usr/share/man/man1
make \
AFTER_BIN_DIR=${D}/usr/bin \
AFTER_MAN_DIR=${D}/usr/share/man/man1 \
install || die
}
|