summaryrefslogtreecommitdiff
blob: 2004bf4293dbaf614feb7bad191b560e460de0b3 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# /home/cvsroot/gentoo-x86/app-admin/powerteak/powertweak-0.99.1.ebuild
# $Header: /var/cvsroot/gentoo-x86/incoming/powertweak-0.99.1.ebuild,v 1.6 2001/10/06 17:22:51 azarah Exp $


A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Powertweak"
SRC_URI="http://download.sourceforge.net/powertweak/${A}"
HOMEPAGE="http://powertweak.sourceforge.net"

DEPEND=">=x11-libs/gtk+-1.2.10-r4
	>=dev-libs/libxml-1.8.15"

src_compile() {
# fix minor bug in textmode/Makefile.am with no -L<path> to libxml.so
  sed -e "s:GPML = -lgpm:GPML = -L/usr/lib -lgpm:" < src/textmode/Makefile.am > src/textmode/Makefile.am_fix
  mv src/textmode/Makefile.am_fix src/textmode/Makefile.am
  ./autogen.sh

  try ./configure --host=${CHOST} --prefix=/usr --with-xml-prefix=/usr
  try make
}

src_install() {
  cd ${S}
  try make install prefix=${D}/usr
  dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
  docinto Documentation
  dodoc Documentation/* 
}