blob: 73d4bde4bf60161f28456cb3926dc28e9f7e00c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/gcal/gcal-3.01-r3.ebuild,v 1.1 2009/02/26 21:41:23 ulm Exp $
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="The GNU Calendar - a replacement for cal"
HOMEPAGE="http://www.gnu.org/software/gcal/gcal.html"
SRC_URI="mirror://gnu/gcal/${P}.tar.gz
mirror://gentoo/${P}-iso3166.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
IUSE="ncurses nls"
DEPEND="nls? ( >=sys-devel/gettext-0.17 )"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-mandir.diff
epatch "${FILESDIR}"/${P}-gettext-charset.patch
epatch "${WORKDIR}"/${P}-iso3166.patch
find -name Makefile.in -print0 | \
xargs -0 -n1 sed -i "s:\(^CC = \).*:\1$(tc-getCC):"
}
src_compile() {
append-flags -D_GNU_SOURCE
econf $(use_enable nls) $(use_enable ncurses)
emake || die
}
src_install() {
einstall || die
rm -f "${D}"/usr/share/locale/locale.alias
dodoc ATTENTION BUGS DISCLAIM HISTORY LIMITATIONS MANIFEST NEWS README \
SYMBOLS THANKS TODO
# Need to fix up paths for scripts in misc directory
# that are automatically created by the makefile
for miscfile in "${D}"/usr/share/gcal/misc/*/*
do
dosed "s:${D%/}::g" "${miscfile/${D}}"
done
# Rebuild the symlinks that makefile created into the image /usr/bin
# directory during make install
dosym /usr/share/gcal/misc/daily/daily /usr/bin/gcal-daily
dosym /usr/share/gcal/misc/ddiff/ddiff /usr/bin/gcal-ddiff
dosym /usr/share/gcal/misc/ddiff/ddiffdrv /usr/bin/gcal-ddiffdrv
dosym /usr/share/gcal/misc/dst/dst /usr/bin/gcal-dst
dosym /usr/share/gcal/misc/gcalltx/gcalltx /usr/bin/gcal-gcalltx
dosym /usr/share/gcal/misc/gcalltx/gcalltx.pl /usr/bin/gcal-gcalltx.pl
dosym /usr/share/gcal/misc/moon/moon /usr/bin/gcal-moon
dosym /usr/share/gcal/misc/mrms/mrms /usr/bin/gcal-mrms
dosym /usr/share/gcal/misc/srss/srss /usr/bin/gcal-srss
dosym /usr/share/gcal/misc/wloc/wlocdrv /usr/bin/gcal-wlocdrv
}
|