blob: 1c383ef6435c784087e59f4653c1582ca1434bf7 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic
MY_P="${P/_/}"
DESCRIPTION="Abook is a text-based addressbook program designed to use with mutt mail client"
HOMEPAGE="http://abook.sourceforge.net/"
SRC_URI="http://abook.sourceforge.net/devel/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
IUSE="nls"
RDEPEND="
sys-libs/ncurses:=
sys-libs/readline:=
dev-libs/libvformat
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
BDEPEND="
dev-build/autoconf-archive
virtual/pkgconfig
nls? ( sys-devel/gettext )
"
S="${WORKDIR}/${MY_P}"
DOCS=( BUGS ChangeLog FAQ README TODO sample.abookrc )
PATCHES=(
"${FILESDIR}"/${PN}-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch
"${FILESDIR}"/${PN}-0.6.1-use-newer-macro-for-readline.patch
"${FILESDIR}"/${PN}-0.6.1-vformat.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--enable-vformat \
$(use_enable nls)
}
src_compile() {
# bug #570428
append-cflags -std=gnu89
emake CFLAGS="${CFLAGS}"
}
|