/[gentoo-x86]/x11-plugins/asclock/asclock-2.0.12-r1.ebuild
Gentoo

Contents of /x11-plugins/asclock/asclock-2.0.12-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Jun 12 13:32:15 2012 UTC (22 months, 1 week ago) by ago
Branch: MAIN
Changes since 1.9: +3 -3 lines
Stable for amd64, wrt bug #418669

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/asclock/asclock-2.0.12-r1.ebuild,v 1.9 2010/08/25 15:41:16 darkside Exp $
4
5 EAPI=3
6 inherit eutils toolchain-funcs
7
8 IUSE=""
9 DESCRIPTION="Clock applet for AfterStep"
10 SRC_URI="http://www.tigr.net/afterstep/download/asclock/${P}.tar.gz"
11 HOMEPAGE="http://www.tigr.net/afterstep/list.pl"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
15
16 DEPEND="x11-libs/libXpm"
17 RDEPEND="${DEPEND}
18 x11-proto/xextproto
19 x11-proto/xproto"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${PN}-gcc41.patch
23 ln -s themes/classic default_theme
24 }
25
26 src_configure() { :; }
27
28 src_compile() {
29 local x
30 # will break Solaris
31 [[ ${CHOST} == *-linux-gnu ]] && CFLAGS="${CFLAGS} \
32 -Dlinux \
33 -D_POSIX_C_SOURCE=199309L \
34 -D_POSIX_SOURCE \
35 -D_XOPEN_SOURCE"
36 for x in asclock parser symbols config
37 do
38 $(tc-getCC) \
39 ${CPPFLAGS} ${CFLAGS} ${ASFLAGS} \
40 -I"${EPREFIX}"/usr/include \
41 -D_BSD_SOURCE \
42 -D_SVID_SOURCE \
43 -DFUNCPROTO=15 \
44 -DNARROWPROTO \
45 -c -o ${x}.o ${x}.c || die "compile asclock failed"
46 done
47 $(tc-getCC) \
48 ${LDFLAGS} \
49 -o asclock \
50 asclock.o parser.o symbols.o config.o \
51 -L"${EPREFIX}"/usr/lib \
52 -L"${EPREFIX}"/usr/lib/X11 \
53 -lXpm -lXext -lX11 || die "link asclock failed"
54 }
55
56 src_install() {
57 dobin asclock
58 local themesdir="/usr/share/${PN}/themes"
59 insinto ${themesdir}
60 doins -r themes/*
61 dodoc README README.THEMES TODO
62 cd "${D}"/${themesdir}
63 rm -f Freeamp/Makefile{,.*}
64 ln -s classic default_theme
65 }

  ViewVC Help
Powered by ViewVC 1.1.20