diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-06-26 08:53:19 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-06-26 08:53:19 +0000 |
| commit | aed9a91e2a8f77f5edbffd306411e3c1c10ba9c0 (patch) | |
| tree | 5c47deccb26bceff27cbbc84b3737262b4c27732 /media-libs/lvtk | |
| parent | 1a11cc54ab3034c6f0aa7c80251ddc6ec43421a7 (diff) | |
| download | baldeagleos-repo-aed9a91e2a8f77f5edbffd306411e3c1c10ba9c0.tar.gz baldeagleos-repo-aed9a91e2a8f77f5edbffd306411e3c1c10ba9c0.tar.xz baldeagleos-repo-aed9a91e2a8f77f5edbffd306411e3c1c10ba9c0.zip | |
Adding metadata
Diffstat (limited to 'media-libs/lvtk')
| -rw-r--r-- | media-libs/lvtk/lvtk-1.2.0-r2.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/media-libs/lvtk/lvtk-1.2.0-r2.ebuild b/media-libs/lvtk/lvtk-1.2.0-r2.ebuild new file mode 100644 index 000000000000..aa6972aea1b9 --- /dev/null +++ b/media-libs/lvtk/lvtk-1.2.0-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +inherit python-single-r1 waf-utils + +WAF_VER=2.0.20 + +DESCRIPTION="A set of C++ wrappers around the LV2 C API" +HOMEPAGE="https://lvtk.org/" +SRC_URI="https://github.com/lvtk/lvtk/archive/${PV}.tar.gz -> ${P}.tar.gz + https://waf.io/waf-${WAF_VER}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples +gtk2 +tools" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="media-libs/lv2 + dev-libs/boost + ${PYTHON_DEPS} + gtk2? ( dev-cpp/gtkmm:2.4 )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen + media-gfx/graphviz ) + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-boost-system-underlinking.patch" + "${FILESDIR}/${P}-py3.patch" +) + +src_unpack() { + unpack ${P}.tar.gz || die + + # we need newer version of waf to work with py3 + cp "${DISTDIR}/waf-${WAF_VER}" "${S}/waf" || die +} + +src_configure() { + local mywafconfargs=( + "--docdir=${EPREFIX}/usr/share/doc/${PF}" + "--lv2dir=${EPREFIX}/usr/$(get_libdir)/lv2" + ) + use debug && mywafconfargs+=( "--debug" ) + use doc && mywafconfargs+=( "--docs" ) + use examples || mywafconfargs+=( "--disable-examples" ) + use tools || mywafconfargs+=( "--disable-tools" ) + use gtk2 || mywafconfargs+=( "--disable-ui" ) + waf-utils_src_configure ${mywafconfargs[@]} +} + +src_install() { + waf-utils_src_install + + # It does not respect docdir properly, reported upstream + if use doc; then + mv "${ED}/usr/share/doc/${PF}/lvtk-1/html" "${ED}/usr/share/doc/${PF}/html" || die + rmdir "${ED}/usr/share/doc/${PF}/lvtk-1" || die + fi +} |
