SwordArMor-gentoo-overlay/dev-cpp/libxsd-frontend/libxsd-frontend-2.0.0_p20211005.ebuild
Alarig Le Lay 285e686c9a
dev-cpp/libxsd-frontend: New package from nest
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
2022-04-28 14:41:24 +02:00

55 lines
1.3 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multiprocessing toolchain-funcs vcs-snapshot
MY_PV="1cc4abe"
DESCRIPTION="A compiler frontend for the W3C XML Schema definition language"
HOMEPAGE="https://www.codesynthesis.com/projects/libxsd-frontend/"
SRC_URI="https://git.codesynthesis.com/cgit/${PN}/${PN}/snapshot/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
RDEPEND="dev-cpp/libcutl
dev-libs/boost:=
dev-libs/xerces-c"
DEPEND="${RDEPEND}"
BDEPEND="dev-util/build2"
src_configure() {
local myconfigargs=(
config.cxx="$(tc-getCXX)"
config.cxx.coptions="${CXXFLAGS}"
config.cxx.loptions="${LDFLAGS}"
config.bin.ar="$(tc-getAR)"
config.bin.ranlib="$(tc-getRANLIB)"
config.bin.lib="$(usex static-libs both shared)"
config.install.lib="exec_root/$(get_libdir)"
config.install.doc="data_root/share/doc/${PF}"
)
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
emake "${myconfigargs[@]}" configure
}
src_compile() {
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
emake
}
src_test() {
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
emake test
}
src_install() {
einstalldocs
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
emake config.install.root="${ED}/usr" install
}