commit:     aa7954f2eed1aa85f1266e31c0c483a4c774eb17
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 31 22:16:23 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 31 22:16:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa7954f2

app-misc/abook: fix DEPEND, simplify ebuild

- 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 <soap <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{abook-0.6.1-r3.ebuild => abook-0.6.1-r4.ebuild}      | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/app-misc/abook/abook-0.6.1-r3.ebuild 
b/app-misc/abook/abook-0.6.1-r4.ebuild
similarity index 86%
rename from app-misc/abook/abook-0.6.1-r3.ebuild
rename to app-misc/abook/abook-0.6.1-r4.ebuild
index d0229f26585..f6e46075e42 100644
--- a/app-misc/abook/abook-0.6.1-r3.ebuild
+++ b/app-misc/abook/abook-0.6.1-r4.ebuild
@@ -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"
@@ -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 )
@@ -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}"
 }

Reply via email to