diff options
Diffstat (limited to 'dev-libs/libhandy/libhandy-0.0.6.ebuild')
-rw-r--r-- | dev-libs/libhandy/libhandy-0.0.6.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/libhandy/libhandy-0.0.6.ebuild b/dev-libs/libhandy/libhandy-0.0.6.ebuild new file mode 100644 index 0000000..f694b6b --- /dev/null +++ b/dev-libs/libhandy/libhandy-0.0.6.ebuild @@ -0,0 +1,44 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson vala + +DESCRIPTION="A library full of GTK+ widgets for mobile phones" +HOMEPAGE="https://source.puri.sm/Librem5/libhandy" + + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + + SRC_URI="" + EGIT_REPO_URI="https://source.puri.sm/Librem5/${PN}.git" +else + SRC_URI="https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" + + PATCHES=("${FILESDIR}/g-enum-no-auto-ptr.patch") +fi + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="dev-util/meson + dev-lang/vala + dev-util/glade + dev-libs/gobject-introspection + gnome-base/gnome-desktop" + +VALA_USE_DEPEND=vapigen +BUILD_DIR="${S}/build" + +src_prepare() { + default + + vala_src_prepare --vala-api-version $(vala_best_api_version) +} |