| 1 |
# Copyright 1999-2013 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/suil/suil-0.6.4.ebuild,v 1.1 2012/07/20 02:05:42 aballier Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit base waf-utils |
| 8 |
|
| 9 |
DESCRIPTION="Lightweight C library for loading and wrapping LV2 plugin UIs" |
| 10 |
HOMEPAGE="http://drobilla.net/software/suil/" |
| 11 |
SRC_URI="http://download.drobilla.net/${P}.tar.bz2" |
| 12 |
|
| 13 |
LICENSE="ISC" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~x86" |
| 16 |
IUSE="doc gtk qt4" |
| 17 |
|
| 18 |
RDEPEND="media-libs/lv2 |
| 19 |
gtk? ( x11-libs/gtk+:2 ) |
| 20 |
qt4? ( dev-qt/qtgui:4 )" |
| 21 |
DEPEND="${RDEPEND} |
| 22 |
doc? ( app-doc/doxygen ) |
| 23 |
virtual/pkgconfig" |
| 24 |
|
| 25 |
PATCHES=( "${FILESDIR}/ldconfig.patch" ) |
| 26 |
DOCS=( "AUTHORS" "NEWS" "README" ) |
| 27 |
|
| 28 |
src_configure() { |
| 29 |
# otherwise automagic |
| 30 |
use gtk || sed -i -e 's/gtk+-2.0/DiSaBlEd/' wscript |
| 31 |
use qt4 || sed -i -e 's/QtGui/DiSaBlEd/' wscript |
| 32 |
waf-utils_src_configure \ |
| 33 |
"--mandir=${EPREFIX}/usr/share/man" \ |
| 34 |
"--docdir=${EPREFIX}/usr/share/doc/${PF}" \ |
| 35 |
$(use doc && echo "--docs") |
| 36 |
} |