/[gentoo-x86]/sys-power/powersoftplus/powersoftplus-0.1.8-r1.ebuild
Gentoo

Contents of /sys-power/powersoftplus/powersoftplus-0.1.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 18 12:20:21 2012 UTC (7 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removal , bug #298594.

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/powersoftplus/powersoftplus-0.1.8-r1.ebuild,v 1.2 2009/02/15 21:56:29 loki_val Exp $
4
5 inherit autotools eutils
6
7 DESCRIPTION="Ever UPS daemon"
8 HOMEPAGE="http://www.ever.com.pl"
9 SRC_URI="http://www.ever.com.pl/pl/pliki/${P}-x86.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86"
14 IUSE=""
15
16 DEPEND="dev-embedded/libftd2xx
17 =dev-embedded/powersoftplus-libftdi-${PV}*"
18 RDEPEND="${DEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22 cd ${S}
23
24 # Remove libftdi because we moved it to another package
25 # Remove scripts because we provide our own startup scripts
26 sed -i -e 's#^SUBDIRS = libftdi \(.*\) scripts#SUBDIRS = \1#' \
27 Makefile.am \
28 || die "sed failed"
29
30 # Fix libftd2xx header reference
31 sed -i \
32 -e 's@^#include "libftdi/ftd2xx.h$@#include <ftd2xx.h>@' \
33 src/ftccomm.h \
34 -e 's#-I$(top_srcdir)/libftdi##' \
35 Makefile.am \
36 || die "sed failed"
37
38 # Fix access violations
39 sed -i -e \
40 's#^CONFPATH = @CONFIG_PATH@$#CONFPATH = ${DESTDIR}/@CONFIG_PATH@#' \
41 conf/Makefile.in \
42 || die "sed failed"
43
44 # Fix access violations
45 sed -i -e \
46 's#^PIXPATH = @PIX_PATH@$#PIXPATH = ${DESTDIR}/@PIX_PATH@#' \
47 pix/Makefile.in \
48 || die "sed failed"
49
50 eautoreconf
51
52 epatch ${FILESDIR}/${P}-gcc43.patch
53 epatch ${FILESDIR}/${P}-reduceverbosity.patch
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die "install failed"
58
59 doinitd ${FILESDIR}/powersoftplus
60 dodoc AUTHORS COPYING INSTALL README TODO Pomoc.pdf
61 }
62
63 pkg_postinst() {
64 elog "Remeber that if you want to communicate with USB devices you"
65 elog "have to edit /etc/fstab so that it contains the following entry"
66 elog " none /proc/bus/usb usbfs defaults,devmode=0666 0 0"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20