Personal gentoo overlay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
overlay/x11-libs/libui/libui-0.4.1.ebuild

54 lines
886 B

3 years ago
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
3 years ago
DESCRIPTION="A cross platform UI library in C"
3 years ago
3 years ago
HOMEPAGE="https://github.com/andlabs/libui"
3 years ago
3 years ago
SRC_URI="https://github.com/andlabs/libui/archive/alpha4.1.tar.gz"
3 years ago
3 years ago
LICENSE="MIT"
3 years ago
SLOT="0"
KEYWORDS="~amd64"
3 years ago
DEPEND="
>=x11-libs/gtk+-3.0.0
x11-libs/libX11
x11-libs/libxcb
virtual/libffi
3 years ago
"
BDEPEND="
3 years ago
${DEPEND}
sys-devel/make
sys-devel/gcc
dev-util/cmake
dev-util/meson
dev-util/ninja
3 years ago
"
3 years ago
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
}