# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-power/powersoftplus/powersoftplus-0.1.8-r1.ebuild,v 1.1 2007/09/02 19:12:49 jurek Exp $ inherit autotools eutils DESCRIPTION="Ever UPS daemon" HOMEPAGE="http://www.ever.com.pl" SRC_URI="http://www.ever.com.pl/pl/pliki/${P}-x86.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-embedded/libftd2xx =dev-embedded/powersoftplus-libftdi-${PV}*" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd ${S} # Remove libftdi because we moved it to another package # Remove scripts because we provide our own startup scripts sed -i -e 's#^SUBDIRS = libftdi \(.*\) scripts#SUBDIRS = \1#' \ Makefile.am \ || die "sed failed" # Fix libftd2xx header reference sed -i \ -e 's@^#include "libftdi/ftd2xx.h$@#include @' \ src/ftccomm.h \ -e 's#-I$(top_srcdir)/libftdi##' \ Makefile.am \ || die "sed failed" # Fix access violations sed -i -e \ 's#^CONFPATH = @CONFIG_PATH@$#CONFPATH = ${DESTDIR}/@CONFIG_PATH@#' \ conf/Makefile.in \ || die "sed failed" # Fix access violations sed -i -e \ 's#^PIXPATH = @PIX_PATH@$#PIXPATH = ${DESTDIR}/@PIX_PATH@#' \ pix/Makefile.in \ || die "sed failed" eautoreconf epatch ${FILESDIR}/${P}-gcc43.patch epatch ${FILESDIR}/${P}-reduceverbosity.patch } src_install() { emake DESTDIR="${D}" install || die "install failed" doinitd ${FILESDIR}/powersoftplus dodoc AUTHORS COPYING INSTALL README TODO Pomoc.pdf } pkg_postinst() { elog "Remeber that if you want to communicate with USB devices you" elog "have to edit /etc/fstab so that it contains the following entry" elog " none /proc/bus/usb usbfs defaults,devmode=0666 0 0" }