mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
app-admin/ananicy-cpp: add rules from ananicy
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
55
app-admin/ananicy-cpp/ananicy-cpp-1.0.0_rc6-r1.ebuild
Normal file
55
app-admin/ananicy-cpp/ananicy-cpp-1.0.0_rc6-r1.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ANANICY_COMMIT="9180bb4511e2de5229428303df1a4954b0c516d9" # for rules
|
||||
MYPV="${PV/_rc/-rc}"
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Ananicy rewritten in C++ for much lower CPU and memory usage"
|
||||
HOMEPAGE="https://gitlab.com/ananicy-cpp/ananicy-cpp"
|
||||
SRC_URI="
|
||||
https://gitlab.com/ananicy-cpp/ananicy-cpp/-/archive/v${MYPV}/${PN}-v${MYPV}.tar.bz2
|
||||
https://github.com/kuche1/minq-ananicy/archive/${ANANICY_COMMIT}.tar.gz -> minq-ananicy-${ANANICY_COMMIT}.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-v${MYPV}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/nlohmann_json
|
||||
dev-libs/libfmt
|
||||
dev-libs/spdlog
|
||||
systemd? ( sys-apps/systemd )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-cpp/std-format
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-system-std-format.patch"
|
||||
"${FILESDIR}/${P}-respect-flags.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_SYSTEMD=$(usex systemd)
|
||||
-DUSE_EXTERNAL_FMTLIB=ON
|
||||
-DUSE_EXTERNAL_JSON=ON
|
||||
-DUSE_EXTERNAL_SPDLOG=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
doinitd "${FILESDIR}/${PN}.initd"
|
||||
insinto /etc
|
||||
doins -r "${WORKDIR}/minq-ananicy-${ANANICY_COMMIT}/ananicy.d"
|
||||
}
|
||||
Reference in New Issue
Block a user