/[gentoo-x86]/sys-apps/tuxonice-userui/tuxonice-userui-1.1-r2.ebuild
Gentoo

Contents of /sys-apps/tuxonice-userui/tuxonice-userui-1.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 15 19:21:32 2012 UTC (2 years, 1 month ago) by pacho
Branch: MAIN
Changes since 1.1: +10 -7 lines
Add missing dep, bug #443280 by Joost Ruis; drop old.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/tuxonice-userui/tuxonice-userui-1.1-r2.ebuild,v 1.1 2012/11/07 18:05:22 pacho Exp $
4
5 EAPI=4
6 inherit toolchain-funcs eutils
7
8 DESCRIPTION="User Interface for TuxOnIce"
9 HOMEPAGE="http://www.tuxonice.net"
10 SRC_URI="http://tuxonice.net/files/${P}.tar.gz -> ${P}.tar
11 mirror://debian/pool/main/t/${PN}/${PN}_${PV}-2~exp1.debian.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16
17 IUSE="fbsplash"
18 DEPEND="fbsplash? (
19 >=media-gfx/splashutils-1.5.2.1
20 media-libs/libmng[lcms]
21 >=media-libs/libpng-1.4.8[static-libs]
22 media-libs/freetype[static-libs]
23 || ( <app-arch/bzip2-1.0.6-r3[static] >=app-arch/bzip2-1.0.6-r3[static-libs] )
24 media-libs/lcms:0[static-libs]
25 virtual/jpeg
26 )"
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}/${PN}"
30
31 src_prepare() {
32 local d=${WORKDIR}/debian/patches
33 EPATCH_SOURCE=${d} epatch $(<"${d}"/series)
34 sed -i -e 's/make/$(MAKE)/' Makefile || die
35 }
36
37 src_compile() {
38 # Package contain binaries
39 emake clean || die "emake clean failed"
40
41 use fbsplash && export USE_FBSPLASH=1
42 emake CC="$(tc-getCC)" tuxoniceui || die "emake tuxoniceui failed"
43 }
44
45 src_install() {
46 into /
47 dosbin tuxoniceui
48 dodoc AUTHORS ChangeLog KERNEL_API README TODO USERUI_API
49 }
50
51 pkg_postinst() {
52 if use fbsplash; then
53 einfo
54 elog "You must create a symlink from /etc/splash/tuxonice"
55 elog "to the theme you want tuxonice to use, e.g.:"
56 elog
57 elog " # ln -sfn /etc/splash/emergence /etc/splash/tuxonice"
58 if [[ ${REPLACING_VERSIONS} < 1.1 ]]; then
59 einfo
60 elog "You must refer to '/sbin/tuxoniceui -f' instead of /sbin/tuxoniceui_fbsplash'"
61 elog "in all places you set it."
62 fi
63 fi
64 einfo
65 einfo "Please see /usr/share/doc/${PF}/README.* for further"
66 einfo "instructions."
67 einfo
68 }

  ViewVC Help
Powered by ViewVC 1.1.20