summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-23 22:49:59 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-23 22:52:36 +0900
commitbce4e9e5b4aa14217370b2344157ab3cdc735f74 (patch)
tree2a84b3b102501fa553d0c14be616a4a87ec36594 /x11-libs
parentx11-libs/libgxim: drop doc USE flag (diff)
downloadgentoo-bce4e9e5b4aa14217370b2344157ab3cdc735f74.tar.gz
gentoo-bce4e9e5b4aa14217370b2344157ab3cdc735f74.tar.bz2
gentoo-bce4e9e5b4aa14217370b2344157ab3cdc735f74.zip
x11-libs/libgxim: add test USE flag
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/libgxim/libgxim-0.5.0.ebuild24
1 files changed, 20 insertions, 4 deletions
diff --git a/x11-libs/libgxim/libgxim-0.5.0.ebuild b/x11-libs/libgxim/libgxim-0.5.0.ebuild
index 26a9156725b5..a9bd005eae5f 100644
--- a/x11-libs/libgxim/libgxim-0.5.0.ebuild
+++ b/x11-libs/libgxim/libgxim-0.5.0.ebuild
@@ -3,7 +3,7 @@
EAPI="6"
-inherit ltprune
+inherit autotools ltprune
DESCRIPTION="GObject-based XIM protocol library"
HOMEPAGE="https://tagoh.bitbucket.io/libgxim"
@@ -12,7 +12,7 @@ SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="static-libs"
+IUSE="static-libs test"
RDEPEND="dev-libs/dbus-glib
dev-libs/glib:2
@@ -20,11 +20,27 @@ RDEPEND="dev-libs/dbus-glib
virtual/libintl
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
- dev-libs/check
dev-lang/ruby
dev-util/intltool
+ sys-devel/autoconf-archive
sys-devel/gettext
- virtual/pkgconfig"
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+
+AT_M4DIR="m4macros"
+
+src_prepare() {
+ sed -i \
+ -e "/PKG_CHECK_MODULES/s/\(check\)/$(usex test '\1' _)/" \
+ -e "/^GNOME_/d" \
+ -e "/^CFLAGS/s/\$WARN_CFLAGS/-Wall -Wmissing-prototypes/" \
+ configure.ac
+
+ sed -i "/^ACLOCAL_AMFLAGS/,/^$/d" Makefile.am
+
+ default
+ eautoreconf
+}
src_configure() {
econf $(use_enable static-libs static)