mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-cpp/libcutl: use build2 eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -5,57 +5,14 @@ EAPI=8
|
|||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)-b.$(ver_cut 5)"
|
MY_P="${PN}-$(ver_cut 1-3)-b.$(ver_cut 5)"
|
||||||
|
|
||||||
inherit edo multiprocessing
|
inherit build2
|
||||||
|
|
||||||
SRC_URI="https://pkg.cppget.org/1/beta/${PN}/${MY_P}.tar.gz"
|
SRC_URI="https://pkg.cppget.org/1/beta/${PN}/${MY_P}.tar.gz"
|
||||||
KEYWORDS='~amd64 ~x86'
|
DESCRIPTION="C++ utility library"
|
||||||
DESCRIPTION='C++ utility library'
|
HOMEPAGE="https://www.codesynthesis.com/projects/libcutl/"
|
||||||
HOMEPAGE='https://www.codesynthesis.com/projects/libcutl/'
|
|
||||||
LICENSE='MIT'
|
|
||||||
|
|
||||||
SLOT='0'
|
SLOT="0"
|
||||||
IUSE='test'
|
KEYWORDS="~amd64 ~x86"
|
||||||
RESTRICT='!test? ( test )'
|
LICENSE="MIT"
|
||||||
|
|
||||||
BDEPEND='dev-util/build2'
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
edo b configure \
|
|
||||||
config.cc.coptions="${CFLAGS}" \
|
|
||||||
config.cc.loptions="${LDFLAGS}" \
|
|
||||||
config.cxx.coptions="${CXXFLAGS}" \
|
|
||||||
config.cxx.loptions="${LDFLAGS}" \
|
|
||||||
--jobs $(makeopts_jobs) \
|
|
||||||
--no-progress \
|
|
||||||
--verbose 2
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
edo b update-for-install \
|
|
||||||
config.install.root="${EPREFIX}"/usr \
|
|
||||||
--jobs $(makeopts_jobs) \
|
|
||||||
--no-progress \
|
|
||||||
--verbose 2
|
|
||||||
use test && edo b update-for-test \
|
|
||||||
--jobs $(makeopts_jobs) \
|
|
||||||
--no-progress \
|
|
||||||
--verbose 2
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
edo b test \
|
|
||||||
--jobs $(makeopts_jobs) \
|
|
||||||
--no-progress \
|
|
||||||
--verbose 2
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
edo b install \
|
|
||||||
config.install.chroot="${D}" \
|
|
||||||
config.install.root="${EPREFIX}"/usr \
|
|
||||||
config.install.lib="${EPREFIX}"/usr/$(get_libdir) \
|
|
||||||
config.install.doc="${EPREFIX}"/usr/share/doc/${PF} \
|
|
||||||
--no-progress
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user