/[gentoo-x86]/app-laptop/tpctl/tpctl-4.4-r1.ebuild
Gentoo

Contents of /app-laptop/tpctl/tpctl-4.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Mar 18 12:24:41 2012 UTC (8 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Removal, bug #381263

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-4.4-r1.ebuild,v 1.7 2010/01/01 21:12:27 ssuominen Exp $
4
5 inherit eutils
6
7 #transform P to match tarball versioning
8 MYPV=${PV/_beta/beta}
9 MYP="${PN}_${MYPV}"
10
11 DESCRIPTION="Thinkpad system control user space programs"
12 HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
13 SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="-* x86"
18 IUSE="ncurses tpctlir perl"
19
20 DEPEND=">=app-laptop/thinkpad-4.3
21 ncurses? ( sys-libs/ncurses )"
22 RDEPEND="${DEPEND}
23 perl? ( dev-lang/perl )"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 epatch "${FILESDIR}"/tpctlir-cli-4.4-r1.diff
29 }
30
31 src_compile() {
32 emake -C lib || die "lib make failed"
33 emake -C tpctl || die "tpctl make failed"
34 if use ncurses ; then
35 emake -C ntpctl || die "ntpctl make failed"
36 fi
37
38 # Only for thinkpad models 760 and 765
39 # build with:
40 # $ USE=tpctlir emerge tpctl
41 if use tpctlir; then
42 emake -C tpctlir || die "tpctlir make failed"
43 fi
44 }
45
46 src_install() {
47 dodoc AUTHORS ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING VGA-MODES
48 dolib lib/libsmapidev.so.2.0
49 dobin tpctl/tpctl
50 [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
51 if use tpctlir && [ -e tpctlir/tpctlir ]; then
52 mv tpctlir/README README.tpctlir
53 dodoc README.tpctlir
54 dobin tpctlir/tpctlir
55 fi
56 if use perl ; then
57 mv apmiser/README README.apmiser
58 dodoc README.apmiser
59 dosbin apmiser/apmiser
60 newinitd "${FILESDIR}"/apmiser.rc apmiser
61 fi
62 doman man/{ntpctl,tpctl}.1 man/apmiser.8
63 }

  ViewVC Help
Powered by ViewVC 1.1.20