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.
gentoo-overlay/net-libs/balde/balde-0.1.1.ebuild

58 lines
1.0 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
if [[ ${PV} = *9999* ]]; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
inherit git-r3 autotools
fi
DESCRIPTION="A microframework for C based on GLib and bad intentions"
HOMEPAGE="https://balde.rgm.io/"
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
if [[ ${PV} = *9999* ]]; then
SRC_URI=""
fi
LICENSE="LGPL-2"
SLOT="0"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-libs/glib-2.34
dev-libs/fcgi
x11-misc/shared-mime-info"
if [[ ${PV} = *9999* ]]; then
RDEPEND="${RDEPEND}
dev-util/peg"
fi
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_prepare() {
[[ ${PV} = *9999* ]] && eautoreconf
default
}
src_configure() {
econf \
$(use_with doc doxygen) \
--disable-examples \
--without-valgrind
}
src_compile() {
default
use doc && emake doxygen
}
src_install() {
default
use doc && dohtml -r doc/build/html/.
}