blob: 1444e4df22991fe7f3d339fe9923ce487ea5e531 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/pal/pal-0.4.3-r1.ebuild,v 1.3 2012/11/12 12:44:59 blueness Exp $
EAPI=4
inherit toolchain-funcs eutils prefix
DESCRIPTION="pal command-line calendar program"
HOMEPAGE="http://palcal.sourceforge.net/"
SRC_URI="mirror://sourceforge/palcal/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~hppa ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos"
IUSE="nls unicode"
RDEPEND=">=dev-libs/glib-2.0
sys-libs/readline
sys-libs/ncurses[unicode?]
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${P}/src
src_prepare() {
epatch "${FILESDIR}"/${PV}-strip.patch
epatch "${FILESDIR}"/${PV}-ldflags.patch
if use unicode; then
sed -i "/^LIBS/s/-lncurses/&w/" "${S}"/Makefile || die
fi
epatch "${FILESDIR}"/${P}-prefix.patch
eprefixify Makefile.defs input.c Makefile
sed -i -e 's/ -o root//g' {.,convert}/Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}"
}
src_install() {
emake DESTDIR="${D}" install-man install-bin install-share
if use nls; then
emake DESTDIR="${D}" install-mo
fi
dodoc "${WORKDIR}"/${P}/{ChangeLog,doc/example.css}
}
|