# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils # # epatch ${FILESDIR}/patch-name-here # # eclasses tend to list descriptions of how to use their functions properly. # take a look at /usr/portage/eclasses/ for more examples. DESCRIPTION="KScannerButtons is a daemon plus a KDE application for monitoring your scanner buttons" HOMEPAGE="http://jice.free.fr/" SRC_URI="http://jice.free.fr/KScannerButtons/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" # Comprehensive list of any and all USE flags leveraged in the ebuild, # with the exception of any ARCH specific flags, i.e. "ppc", "sparc", # "x86" and "alpha". This is a required variable. If the ebuild doesn't # use any USE flags, set to "". IUSE="kde" # A space delimited list of portage features to restrict. man 5 ebuild # for details. Usually not needed. #RESTRICT="strip" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND="kde? ( >=kde-base/kdebase-startkde ) >=kde-base/kommander-3.5.5 >=kde-base/ksystraycmd-3.5.5 >=media-gfx/sane-backends-1.0.18-r2" # Run-time dependencies. Must be defined to whatever this depends on to run. # The below is valid if the same run-time depends are required to compile. RDEPEND="${DEPEND}" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} # If you don't need to change it, leave the S= line out of the ebuild # to keep it tidy. #S="${WORKDIR}/${P}" S="${WORKDIR}/KScannerButtons" src_unpack() { unpack ${A} cd "${S}" rm -f sanebuttonsd sane-nb-buttons sane-list-scanners # epatch "${FILESDIR}"/${P}-localemakefile.patch } src_compile() { emake || die "emake failed" } src_install() { dobin sanebuttonsd dobin sane-list-scanners dobin sane-nb-buttons dobin sanebuttonsd-test.sh dobin kscannerbuttons.sh insinto /usr/local/bin doins KScannerButtons.kmdr exeinto /usr/share/apps/kscannerbuttons doexe sanebuttonsd.sh insinto /usr/share/applnk/Graphics doins KScannerButtons.desktop insinto /usr/share/kscannerbutton newins src/button_ok.png KScannerButtons_ok.png newins src/button_cancel.png KScannerButtons_ko.png dodoc README insinto /usr/share/locale/fr/LC_MESSAGES doins locale/fr/KScannerButtons.mo }