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

Contents of /sys-apps/tuxonice-userui/tuxonice-userui-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Oct 16 17:01:25 2011 UTC (2 years, 10 months ago) by pacho
Branch: MAIN
Changes since 1.9: +2 -2 lines
Fix dependency on bzip2 static for future versions as reported by Arfrever.

(Portage version: 2.1.10.27/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.0.ebuild,v 1.9 2011/09/26 15:34:41 hwoarang Exp $
4
5 EAPI="2"
6
7 inherit toolchain-funcs eutils
8
9 DESCRIPTION="User Interface for TuxOnIce"
10 HOMEPAGE="http://www.tuxonice.net"
11 SRC_URI="http://www.tuxonice.net/downloads/all/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16
17 IUSE="fbsplash"
18 DEPEND="fbsplash? ( >=media-gfx/splashutils-1.5.2.1
19 media-libs/libmng[lcms]
20 >=media-libs/libpng-1.4.8[static-libs]
21 media-libs/freetype[static-libs]
22 || ( <app-arch/bzip2-1.0.6-r3[static] >=app-arch/bzip2-1.0.6-r3[static-libs] )
23 media-libs/lcms:0[static-libs] )"
24 RDEPEND="${DEPEND}"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${P}-Makefiles.patch" \
28 "${FILESDIR}"/${P}-libpng15.patch
29
30 sed -i -e 's/-lfreetype/-lfreetype -lbz2/' "${S}/Makefile" || die
31 }
32
33 src_compile() {
34 # Package contain binaries
35 emake clean
36
37 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
38 tuxoniceui_text || die "emake tuxoniceui_text failed"
39
40 if use fbsplash; then
41 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
42 tuxoniceui_fbsplash || die "emake tuxoniceui_fbsplash failed"
43 fi
44 }
45
46 src_install() {
47 into /
48 dosbin tuxoniceui_text
49 use fbsplash && dosbin tuxoniceui_fbsplash
50 dodoc AUTHORS ChangeLog KERNEL_API README TODO USERUI_API
51 }
52
53 pkg_postinst() {
54 if use fbsplash; then
55 einfo
56 einfo "You must create a symlink from /etc/splash/tuxonice"
57 einfo "to the theme you want tuxonice to use, e.g.:"
58 einfo
59 einfo " # ln -sfn /etc/splash/emergence /etc/splash/tuxonice"
60 fi
61 einfo
62 einfo "Please see /usr/share/doc/${PF}/README.* for further"
63 einfo "instructions."
64 einfo
65 }

  ViewVC Help
Powered by ViewVC 1.1.20