2012-02-09 14:42:47 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-10-25 09:21:44 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xbae/xbae-4.60.4.ebuild,v 1.18 2012/10/24 19:47:25 ulm Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-05-26 11:27:29 +04:00
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
inherit autotools-utils
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Motif-based widget to display a grid of cells as a spreadsheet"
|
|
|
|
HOMEPAGE="http://xbae.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
2012-02-09 14:42:47 +04:00
|
|
|
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
|
2012-02-06 16:39:49 +04:00
|
|
|
SLOT="0"
|
2012-05-26 11:27:29 +04:00
|
|
|
IUSE="doc examples static-libs"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-05-26 11:27:29 +04:00
|
|
|
RDEPEND="
|
2012-10-25 09:21:44 +04:00
|
|
|
x11-libs/motif:0
|
2012-02-06 16:39:49 +04:00
|
|
|
x11-libs/libXau
|
|
|
|
x11-libs/libXdmcp
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXmu
|
|
|
|
x11-libs/libXpm
|
|
|
|
x11-libs/libXt"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
2012-08-16 10:11:59 +04:00
|
|
|
# tests need X display
|
|
|
|
# and are interactive so virtualx will not help
|
|
|
|
RESTRICT=test
|
|
|
|
|
2012-05-26 11:27:29 +04:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${P}-tmpl.patch
|
|
|
|
"${FILESDIR}"/${P}-lxmp.patch
|
|
|
|
"${FILESDIR}"/${P}-Makefile.in.patch
|
|
|
|
)
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
src_configure() {
|
2012-05-26 11:27:29 +04:00
|
|
|
local myeconfargs=( --enable-production )
|
|
|
|
autotools-utils_src_configure
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
2012-08-16 10:11:59 +04:00
|
|
|
cd ${AUTOTOOLS_BUILD_DIR}/examples
|
2012-05-26 11:27:29 +04:00
|
|
|
emake
|
2012-08-16 10:11:59 +04:00
|
|
|
"${S}"/examples/testall
|
2012-05-26 11:27:29 +04:00
|
|
|
emake clean
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-05-26 11:27:29 +04:00
|
|
|
autotools-utils_src_install
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
insinto /usr/share/aclocal
|
2012-05-26 11:27:29 +04:00
|
|
|
doins ac_find_xbae.m4
|
|
|
|
|
|
|
|
use doc && dohtml -r doc/*
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
if use examples; then
|
2012-05-26 11:27:29 +04:00
|
|
|
find examples -name '*akefile*' -delete || die
|
2012-08-16 10:11:59 +04:00
|
|
|
rm examples/{testall,extest} || die
|
2012-02-06 16:39:49 +04:00
|
|
|
insinto /usr/share/doc/${PF}
|
2012-05-26 11:27:29 +04:00
|
|
|
doins -r examples
|
2012-02-06 16:39:49 +04:00
|
|
|
fi
|
|
|
|
}
|