You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
3 years ago
|
inherit autotools flag-o-matic
|
||
7 years ago
|
|
||
|
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"
|
||
4 years ago
|
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
|
||
7 years ago
|
IUSE="nls"
|
||
|
|
||
|
RDEPEND="
|
||
3 years ago
|
sys-libs/ncurses:=
|
||
|
sys-libs/readline:=
|
||
7 years ago
|
dev-libs/libvformat
|
||
|
nls? ( virtual/libintl )"
|
||
3 years ago
|
DEPEND="${RDEPEND}
|
||
|
nls? ( sys-devel/gettext )"
|
||
|
BDEPEND="
|
||
3 years ago
|
sys-devel/autoconf-archive
|
||
|
virtual/pkgconfig
|
||
|
nls? ( sys-devel/gettext )
|
||
|
"
|
||
7 years ago
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
DOCS=( BUGS ChangeLog FAQ README TODO sample.abookrc )
|
||
3 years ago
|
|
||
7 years ago
|
PATCHES=(
|
||
3 years ago
|
"${FILESDIR}"/${PN}-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch
|
||
|
"${FILESDIR}"/${PN}-0.6.1-use-newer-macro-for-readline.patch
|
||
4 years ago
|
"${FILESDIR}"/${PN}-0.6.1-vformat.patch
|
||
7 years ago
|
)
|
||
7 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--enable-vformat \
|
||
|
$(use_enable nls)
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
3 years ago
|
# bug #570428
|
||
|
append-cflags -std=gnu89
|
||
7 years ago
|
|
||
3 years ago
|
emake CFLAGS="${CFLAGS}"
|
||
7 years ago
|
}
|