overlay/x11-libs/libui/libui-0.4.1.ebuild

54 lines
886 B
Bash
Raw Permalink Normal View History

2021-02-07 21:10:54 -06:00
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2021-02-07 22:46:28 -06:00
DESCRIPTION="A cross platform UI library in C"
2021-02-07 21:10:54 -06:00
2021-02-07 22:46:28 -06:00
HOMEPAGE="https://github.com/andlabs/libui"
2021-02-07 21:10:54 -06:00
2021-02-07 22:46:28 -06:00
SRC_URI="https://github.com/andlabs/libui/archive/alpha4.1.tar.gz"
2021-02-07 21:10:54 -06:00
2021-02-07 22:46:28 -06:00
LICENSE="MIT"
2021-02-07 21:10:54 -06:00
SLOT="0"
KEYWORDS="~amd64"
2021-02-07 22:46:28 -06:00
DEPEND="
>=x11-libs/gtk+-3.0.0
x11-libs/libX11
x11-libs/libxcb
virtual/libffi
2021-02-07 21:10:54 -06:00
"
BDEPEND="
2021-02-07 22:46:28 -06:00
${DEPEND}
sys-devel/make
sys-devel/gcc
dev-util/cmake
dev-util/meson
dev-util/ninja
2021-02-07 21:10:54 -06:00
"
2021-02-07 22:46:28 -06:00
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
fi
mv libui-alpha4.1 libui-0.4.1 || die "rename source dir failed"
}
src_compile() {
mkdir -p build || die "could not make build dir"
cd build
cmake .. || die "cmake failed"
make || die "make failed"
}
src_install() {
dolib.so build/out/libui.so
dolib.so build/out/libui.so.0
doheader ui.h
doheader ui_unix.h
}