# # ~~~ dev-libs/smooth # # ~~~ a C++ class library # # # ~~~ metadata # portage info EAPI=8 SLOT=0 KEYWORDS="amd64" IUSE="cairo" # info HOMEPAGE="https://smooth-project.org/" DESCRIPTION="The smooth C++ class library" LICENSE="Artistic-2" # package data SRC_URI="https://github.com/enzo1982/smooth/releases/download/v${PV}/${P}.tar.gz" # # ~~~ dependencies # build-time dependencies BDEPEND=" app-arch/bzip2 dev-libs/fribidi dev-libs/libxml2 media-libs/libjpeg-turbo net-misc/curl x11-libs/gtk+:3[X]" # # ~~~ steps # compile src_compile() { if use cairo ; then emake DESTDIR="${D}" BUILD_CAIRO="True" || die "emake failed" else emake DESTDIR="${D}" BUILD_CAIRO="False" || die "emake failed" fi }