Skip to content

Commit

Permalink
app-misc/abook: fix DEPEND, simplify ebuild
Browse files Browse the repository at this point in the history
- Fix DEPEND to include RDEPEND
- Note that gettext is used as a header too, so DEPEND as well
- Simplify src_compile / use flag-o-matic
- Drop src_install

Thanks-to: David Seifert <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jul 31, 2021
1 parent cd52c6a commit aa7954f
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

inherit autotools
inherit autotools flag-o-matic

MY_P="${P/_/}"
DESCRIPTION="Abook is a text-based addressbook program designed to use with mutt mail client"
Expand All @@ -20,8 +20,9 @@ RDEPEND="
sys-libs/readline:=
dev-libs/libvformat
nls? ( virtual/libintl )"

DEPEND="
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
BDEPEND="
sys-devel/autoconf-archive
virtual/pkgconfig
nls? ( sys-devel/gettext )
Expand Down Expand Up @@ -49,10 +50,8 @@ src_configure() {
}

src_compile() {
# bug 570428
emake CFLAGS="${CFLAGS} -std=gnu89"
}
# bug #570428
append-cflags -std=gnu89

src_install() {
default
emake CFLAGS="${CFLAGS}"
}

0 comments on commit aa7954f

Please sign in to comment.